请教:struts中form传值问题 配置struts-config.xml文件1.多个Action中配置同一个form2.将form的生存范围设置成session级 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 Mark下,请问二楼的两种方法怎么实现刚学Structs,不好意思~ 不是两种方法,是两个步骤配置struts-config.xml,例:<form-beans> <form-bean name="testForm" type="test.TestForm"/></form-beans><action-mappings> <action path="/test1" type="test.Action1" scope="session"//设置form的生存范围,也可以不写,默认为session validate="false" input="/test1.jsp" name="testForm">//设置actionform为testForm <action path="/test2" type="test.Action2" scope="session"//设置form的生存范围,也可以不写,默认为session validate="false" input="/test2.jsp" name="testForm">//设置actionform为testForm</action-mappings> HQL模糊查询后面的 and 条件不起作用。 struts2批量删除的问题 请教:用jntsvc.exe命令将class文件组装成NT服务进程exe文件时遇到下列错误 j2ee容器与框架的区别 为什么ireport1.2.0一打开界面乱码?(中文地方都是方格) 大侠救命,EJB2.0的问题...!! 请各位推荐一本java入门的书, j2ee ----help ,please! URLConnection问题 eclipse无法运行文件 spring和EJB在实际用途广吗? struts的分页问题,100分
刚学Structs,不好意思~
配置struts-config.xml,例:
<form-beans>
<form-bean name="testForm" type="test.TestForm"/>
</form-beans>
<action-mappings>
<action
path="/test1"
type="test.Action1"
scope="session"//设置form的生存范围,也可以不写,默认为session
validate="false"
input="/test1.jsp"
name="testForm">//设置actionform为testForm <action
path="/test2"
type="test.Action2"
scope="session"//设置form的生存范围,也可以不写,默认为session
validate="false"
input="/test2.jsp"
name="testForm">//设置actionform为testForm
</action-mappings>