- 浏览: 18570 次
最新评论
1 .<logic:forward>属于程序内部访问,一次请求
http://localhost:9999/strutsdemo
2 .<logic:redirect>重定向,发生两次请求
http://localhost:9999/strutsdemo/RegUserUI.htm
<global-forwards>
<forward name="reguserui" path="/RegUserUI.htm"></forward>
</global-forwards>
1. index.jsp中包含<logic:forward name="reguserui"/>时,IE地址显示的是http://localhost:9999/strutsdemo,
forward="reguserui"在index.jsp中没有找到最终画面,但直接转发给了RegUserUI.htm,访问成功
2. index.jsp中包含<logic:redirect forward="reguserui"/>时,IE地址显示的是http://localhost:9999/strutsdemo/RegUserUI.htm,
forward="reguserui"在index.jsp中没有找到最终画面,所以再一次请求RegUserUI.htm,访问成功。
<logic:redirect page="/RegUserUI.htm"/>
http://localhost:9999/strutsdemo/RegUserUI.htm
<logic:redirect href="/strutsdemo/RegUserUI.htm"/>
http://localhost:9999/strutsdemo/RegUserUI.htm
http://localhost:9999/strutsdemo
2 .<logic:redirect>重定向,发生两次请求
http://localhost:9999/strutsdemo/RegUserUI.htm
<global-forwards>
<forward name="reguserui" path="/RegUserUI.htm"></forward>
</global-forwards>
1. index.jsp中包含<logic:forward name="reguserui"/>时,IE地址显示的是http://localhost:9999/strutsdemo,
forward="reguserui"在index.jsp中没有找到最终画面,但直接转发给了RegUserUI.htm,访问成功
2. index.jsp中包含<logic:redirect forward="reguserui"/>时,IE地址显示的是http://localhost:9999/strutsdemo/RegUserUI.htm,
forward="reguserui"在index.jsp中没有找到最终画面,所以再一次请求RegUserUI.htm,访问成功。
<logic:redirect page="/RegUserUI.htm"/>
http://localhost:9999/strutsdemo/RegUserUI.htm
<logic:redirect href="/strutsdemo/RegUserUI.htm"/>
http://localhost:9999/strutsdemo/RegUserUI.htm
发表评论
-
<html:link> <html:rewrite>区别
2011-11-20 22:13 883<html:link> 生成的是一个超链接: &l ... -
<htmk:link>的使用
2011-11-20 21:56 740<html:link action="/Reg ... -
struts中的整数转换器问题
2011-10-12 23:13 0画面入力项显示的是"",点击提交按钮后也显 ... -
防止表单重复提交的原理与struts的实现
2011-10-10 06:59 597第一个action: public class RegUser ... -
<html:checkbox>标签使用时要重写reset方法
2011-10-09 22:24 1087<html:checkbox property=&quo ... -
errors参数国际化
2011-10-09 07:21 519prompt.name=(en)username error. ... -
表单校验和业务逻辑校验
2011-10-09 06:53 1001表单校验:请求参数->ActionForm->Ac ... -
html_errors标签单独显示各个错误消息
2011-10-08 22:00 1206public class UserForm extends A ... -
html_errors标签引入国际化资源包
2011-10-07 21:20 918public class UserForm extends A ... -
FormBean使用值对象类型的属性
2011-10-06 20:54 879public class UserForm extends A ... -
<htmk:forward>对应在struts-config.xml中应配置全局的forward
2011-09-29 22:34 714当你想访问http://localhost:9999/stru ... -
<htmk:link>自动生成sessionId,支持url重写
2011-09-29 07:11 714当客户端向服务器发送一请求时,服务器不知道客户端是否支持coo ... -
防止struts-config.xml文件膨胀_OtherActionForm.java
2011-09-29 22:34 560public class OtherActionForm ex ... -
防止struts-config.xml文件膨胀_LoginOtherAction.java
2011-09-27 22:13 613public class LoginOtherAction e ... -
防止struts-config.xml文件膨胀_hello.jsp
2011-09-27 22:12 630<%@ page contentType="t ... -
防止struts-config.xml文件膨胀_struts-config.xml
2011-09-27 22:10 448<?xml version="1.0" ...
相关推荐
jsp脚本和<logic:iterate>标签:实现循环和分支逻辑 jsp脚本和<logic:iterate>标签:实现循环和分支逻辑 jsp脚本和<logic:iterate>标签:实现循环和分支逻辑
1. Map里存放的是bean时<br><br><logic:iterate id="destMap" name="srcMap"><br><br> <bean:define id="bean" name="destMap" property="value" /><br><br> <bean:write name="bean" property="name" /><br><br></...
DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><br><html><br> <head><br> </head><br> <body><br> <table><br> <tr><br> <td><%@ include file="../menu.txt"%><br> </td><br> </tr>...
<logic:equal value="true" name="page" property="hasPrePage"> <a href="getConsultationAUser.do?index=first&msg=${msg }">首页</a> <a href="getConsultationAUser....
</logic:present> <logic:notPresent name="loginFormBean"> <input type="text" name="username"> </logic:notPresent> <html:errors property="username" /></td> </tr> <tr> <td><bean:message key=...
<bean:write name="td" property="value"/></logic:notEqual> <logic:equal name="td" property="value" value=""> </logic:equal> </td> </logic:iterate> </tr> </html:link> </logic:iterate>
<logic:equal name="page" property="hasPreviousPage" value="true"> <html:link page="/list.do?pagetype=previousPage"> <font color=red>上一页</font> </html:link> </...
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %> <HTML> <head> <title>用户登录</title> </head> <body> <h2 align="center"> 队长登陆 </h2> <hr width="100%"> ...
这是一个关于租房信息发布的信息系统<c:...<logic:equal name="fwxx" property="uid" value="${sessionScope.user.uid}"> [<a href="...">编辑</a>] [<a href="...">删除</a>] </logic:equal> ... </c:forEach>
16.3.5、重定向标签:<logic:redirect> 16.4、Html标签 16.4.1、<html:form>标签 16.4.2、<html:text>与<html:password>标签 16.4.3、<html:radio>标签 16.4.5、<...
16.3.5、重定向标签:<logic:redirect> 16.4、Html标签 16.4.1、<html:form>标签 16.4.2、<html:text>与<html:password>标签 16.4.3、<html:radio>标签 16.4.5、<html:textarea>标签 16.4.6、<html:hidden...
16.3.5、重定向标签:<logic:redirect> 16.4、Html标签 16.4.1、<html:form>标签 16.4.2、<html:text>与<html:password>标签 16.4.3、<html:radio>标签 16.4.5、<html:textarea>...
16.3.5、重定向标签:<logic:redirect> 16.4、Html标签 16.4.1、<html:form>标签 16.4.2、<html:text>与<html:password>标签 16.4.3、<html:radio>标签 16.4.5、<html:textarea>...
16.3.5、重定向标签:<logic:redirect> 16.4、Html标签 16.4.1、<html:form>标签 16.4.2、<html:text>与<html:password>标签 16.4.3、<html:radio>标签 16.4.5、<html:textarea>...
16.3.5、重定向标签:<logic:redirect> 16.4、Html标签 16.4.1、<html:form>标签 16.4.2、<html:text>与<html:password>标签 16.4.3、<html:radio>标签 16.4.5、<html:textarea>标签 16.4.6、<html:hidden...
16.3.5、重定向标签:<logic:redirect> 16.4、Html标签 16.4.1、<html:form>标签 16.4.2、<html:text>与<html:password>标签 16.4.3、<html:radio>标签 16.4.5、<...
16.3.5、重定向标签:<logic:redirect> 16.4、Html标签 16.4.1、<html:form>标签 16.4.2、<html:text>与<html:password>标签 16.4.3、<html:radio>标签 16.4.5、<html:textarea>...
可以直接运行 , 可以editplues 也可以看内容
36<br>i18n: 36<br>Resource Bundle Base name 36<br>XML源文件的编码设置: 37<br>5 报表元素 37<br>选择并插入元素到报表中: 37<br>布置和元素顺序 40<br>使用元素树管理元素: 43<br>基本属性: 43<br>线 46...
0-201-77594-8 <br/>Pages : 352 <br/><br/><br/><br/> Copyright <br/> Advance praise for Beyond Software Architecture <br/> The Addison-Wesley Signature Series <br/> Foreword by Martin Fowler <br/> ...