我只知道struts-config.xml中input属性是和validate="true"一起用的,当验证失败时转到input中的url
现在维护的项目中碰见个配置是:
<action
input="/list.jsp"
path="/List"
name="ListForm"
type="net.test.ListAction"
scope="request"
parameter="proCat"
validate="false"
roles="t001">
</action>
不知道有人可以帮我解释下吗
现在维护的项目中碰见个配置是:
<action
input="/list.jsp"
path="/List"
name="ListForm"
type="net.test.ListAction"
scope="request"
parameter="proCat"
validate="false"
roles="t001">
</action>
不知道有人可以帮我解释下吗
解决方案 »
- java线程
- axis调用webservice接口的问题!~~急
- jsp实现在线聊天(jsp+ajax)
- struts的html:text怎么加入css?
- 判断传过来的参数是否为空的时候出错
- struts高手请进,棘手的问题,求思路
- struts配置数据源出现org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory ([Microsoft][SQLServer 2
- 急啊!socket编程的问题!
- ***100分难题:如何在不重启tomcat的情况下替换javabean?****
- to:buick555 && wjmmml 请看我这个问题如何解决
- 大家看看这段代码为什么不能把文件内容插到Oracle Blob类型的列中?
- jar包(大分值求答案)
input:指定包含输入表单的URL路径。当表单验证失败时,将把请求转发到该URL.
if(验证成功){
return mapping.findForward("success");
}else{
return mapping.findForward("fail");
}
roles:权限设置
input="/list.jsp",失败指向input指定的页面。path="/List",页面中action="/List.do?method=proCat"指定此处。name="ListForm",struts中的actionForm指定。type="net.test.ListAction",指向实现类ListAction.java。 scope="request",是作用域,作用域包括request,ression,appliction等。parameter="proCat",jsp页面指定执行ListAction.java中的proCat方法。roles="t001",权限设置。
input="/list.jsp",失败指向input指定的页面。path="/List",页面中action="/List.do?method=proCat"指定此处。name="ListForm",struts中的actionForm指定。type="net.test.ListAction",指向实现类ListAction.java。 scope="request",是作用域,作用域包括request,ression,appliction等。parameter="proCat",jsp页面指定执行ListAction.java中的proCat方法。roles="t001",权限设置。