struts-config.xml中action、forward、form-bean属性含义
来源:互联网 发布:mac怎么查看java版本 编辑:程序博客网 时间:2024/05/22 09:50
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类全称(可有包名)
- 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.xml中action与forward的重要属性
- struts-config.xml文件中的form-bean和action-bean关系
- Struts基础:struts-config.xml中action的scope属性
- struts-config.xml 中action 属性配置中的scope问题
- struts-config.xml中action元素的parameter属性
- 2.Struts的<action forward="/login.jsp"></action>:struts-config.xml
- Struts的配置文件struts-config.xml中action元素的parameter属性作用
- struts-config.xml中 action 的attribute属性与name属性
- struts-config.xml中 action 的attribute属性与name属性
- struts中form表单中的请求action路径和struts-config.xml中响应路径的注意点
- struts-config.xml中action元素的attribute属性的意义
- 阿翔编程学-struts-config.xml中action元素的attribute属性的意义
- Uva 10392
- hdu2524矩形A + B
- java.util包
- ubuntu下新增一个用户以及拥有sudo权限方法
- 谁做的好事
- struts-config.xml中action、forward、form-bean属性含义
- 一种排序
- Ubuntu 10.04 下载android4.2 源码
- Myeclipse快捷键
- UITableViewCell点击两次才跳转解决办法
- Struts2标签——关于List<Object[]>的操作
- [认证] 丢掉盔甲,我们依然是骄傲的骑士——Secooler“三问四看”话认证培训
- MFC下遇到的字符集和中文乱码问题
- 让程序跨进网络时代——使用C语言获取百度源代码