struts-config.xml中action、forward、form-bean属性含义
2008-09-01 11:12
417 查看
1>Action属性及含义:
[path] Action类的相对路径
[name] 与本操作关联的Action bean的名称(ActionForm)
[type] 连接到本映射的Action类的全称(可有包名)
[scope] ActionForm bean的作用域(request或session)
[Prefix]
[Suffix]
[className] ActionMapping对象的类的完全限定名默认的类是org.apache.struts.action.ActionMapping
[input] 输入表单的路径,指向bean发生输入错误必须返回的控制
[unknown] 默认为false。该属性设置为true,就是声明这个Action将处理整个应用中所有未找相应处理Action的请求,当然,一个应用系统中也只能一个unknown属性可以设为true
[validate] 设置为true,则在调用Action对象上的perform()方法前,ActionServlet将调用ActionForm bean的validate()方法来进行输入检查
2>forward属性及含义:
[id]
[className] ActionForward类的完全限定名,默认是org.apache.struts.action.ActionForward
[name] 操作类访问ActionForward时所用的逻辑名
[path] 响应转发的目标资源的路径
[redirect] 若设置为true,则ActionServlet使用sendRedirect()方法来转发资源
3>form-bean属性及含义:
[id]
[classname] ActionForm bean的完全限定名,默认值是org.apache.struts.action.ActionFormBean
[name] 表单bean在相关作用域的名称,这个属性用来将bean与ActionMapping进行关联
[type] 类的完全限定名formbean类全称(可有包名)
转自:http://hi.baidu.com/answer512/blog/item/78765d952824b1097bf480b5.html
[path] Action类的相对路径
[name] 与本操作关联的Action bean的名称(ActionForm)
[type] 连接到本映射的Action类的全称(可有包名)
[scope] ActionForm bean的作用域(request或session)
[Prefix]
[Suffix]
[className] ActionMapping对象的类的完全限定名默认的类是org.apache.struts.action.ActionMapping
[input] 输入表单的路径,指向bean发生输入错误必须返回的控制
[unknown] 默认为false。该属性设置为true,就是声明这个Action将处理整个应用中所有未找相应处理Action的请求,当然,一个应用系统中也只能一个unknown属性可以设为true
[validate] 设置为true,则在调用Action对象上的perform()方法前,ActionServlet将调用ActionForm bean的validate()方法来进行输入检查
2>forward属性及含义:
[id]
[className] ActionForward类的完全限定名,默认是org.apache.struts.action.ActionForward
[name] 操作类访问ActionForward时所用的逻辑名
[path] 响应转发的目标资源的路径
[redirect] 若设置为true,则ActionServlet使用sendRedirect()方法来转发资源
3>form-bean属性及含义:
[id]
[classname] ActionForm bean的完全限定名,默认值是org.apache.struts.action.ActionFormBean
[name] 表单bean在相关作用域的名称,这个属性用来将bean与ActionMapping进行关联
[type] 类的完全限定名formbean类全称(可有包名)
转自:http://hi.baidu.com/answer512/blog/item/78765d952824b1097bf480b5.html
相关文章推荐
- struts-config.xml中action、forward、form-bean属性含义
- struts-config.xml中action、forward、form-bean属性含义
- struts-config.xml中action、forward、form-bean属性含义
- struts-config.xml中action、forward、form-bean属性含义
- struts-config.xml中action、forward、form-bean属性含义
- struts-config.xml中action、forward、form-bean属性含义
- struts-config.xml中action、forward、form-bean属性含义
- struts-config.xml中action、forward、form-bean
- struts-config.xml文件中的form-bean和action-bean关系
- struts-config.xml文件中的action标签中的attributr属性详解
- Action的mapping.findFoward(forwardName)必须要在struts-config.xml中的对应的action节点配置一个forward节点
- 2.Struts的<action forward="/login.jsp"></action>:struts-config.xml
- struts-config.xml中 action 的attribute属性与name属性
- struts-config.xml中 action 的attribute属性与name属性
- struts-config.xml中action元素的attribute属性的意义
- 2.Struts之ForwardAction:struts-config.xml web.xml
- struts中form表单中的请求action路径和struts-config.xml中响应路径的注意点
- 阿翔编程学-struts-config.xml中action元素的attribute属性的意义
- 保持struts-config.xml不变,将动态Form org.apache.struts.action.DynaActionForm转化成ActionForm的例子
- Struts基础:struts-config.xml中action的scope属性