struts-config.xml文件中的form-bean和action-bean关系
来源:互联网 发布:莹恋乒乓球总会淘宝店 编辑:程序博客网 时间:2024/05/18 02:16
<form-beans>
<form-bean name="loginForm" type="com.text.LoginForm"/>
</form-beans>
用来设置Model的指向,这个例子意思是页面里的loginForm需要调用com.text.LoginForm 这个bean
如:
<action path="/login"
type="com.test.LoginAction"
name="loginForm"
scope="request"
input="/Login.jsp">
<forward name="logsuccess" path="/LoginSuccess.jsp"/>
</action>
用来设置Control的指向,
path表示调用Action的路径
type表示指向ActionBean
name表示用来查找form-bean对应的配置信息,所以要与form-bean里设置的名字一致
scope是ActionBean的使用范围
input表示提交页面
<forward> 则表示页面转向信息
<form-bean name="loginForm" type="com.text.LoginForm"/>
</form-beans>
用来设置Model的指向,这个例子意思是页面里的loginForm需要调用com.text.LoginForm 这个bean
如:
<action path="/login"
type="com.test.LoginAction"
name="loginForm"
scope="request"
input="/Login.jsp">
<forward name="logsuccess" path="/LoginSuccess.jsp"/>
</action>
用来设置Control的指向,
path表示调用Action的路径
type表示指向ActionBean
name表示用来查找form-bean对应的配置信息,所以要与form-bean里设置的名字一致
scope是ActionBean的使用范围
input表示提交页面
<forward> 则表示页面转向信息
0 0
- struts-config.xml文件中的form-bean和action-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中form表单中的请求action路径和struts-config.xml中响应路径的注意点
- struts标签库:bean:write struts-config.xml
- Struts action类和form bean的几种不同组合方式以及各自的用处
- struts.xml文件之Bean的配置
- struts.xml文件之Bean的配置
- [Struts]Error creating form bean
- Struts Form Bean 日期问题
- struts-config.xml文件中的action标签中的attributr属性详解
- spring引用另一xml文件中的bean
- spring引用另一xml文件中的bean
- struts-config.xml文件中的contextRelative
- 标签不能放在声明之前;
- 定义协议规范收集
- Android 实现m3u8视频缓存
- php面向对象之-抽象类-131
- [置顶] 回到梦想开始的地方——致我的ACM
- struts-config.xml文件中的form-bean和action-bean关系
- java Socket API 详解 .没有实例只能自己取理解了
- 2.2.2 使用不可变数据结构
- 在指定目录下的文件中查找关键字
- 关于协方差矩阵的概念及意义
- 使用ADF-BC开发业务服务
- hdu 4970
- 巧数之471
- edward_mj退役经验帖(浙大2届Final队员陈伟杰的退役贴)