struts标签里不能嵌套标签
<html:hidden>副值可以在Action里写好,页面里的属性自动扶植
<html:hidden>副值可以在Action里写好,页面里的属性自动扶植
解决方案 »
- struts2 2..3.4.1 spring3.1.2 hibernate4.1.6中用注解dao无法注入service
- WebSphere连接配置问题
- 嘿嘿.............java Sond .
- Map、Cookie、HttpSession这三者的区别?
- 为什么只传的前面2项的值呢????在线等急!!!!!
- transactionManager失败
- 一个多线程的测试 来帮帮忙
- "weblogic.jndi.WLInitialContextFactory问题
- 关于在EJB2.0中的select方法的使用问题
- 页面提交的内容中带有英文单引号,传到后台sql中,sql语句报错问题,有遇到的吗?求解决办法
- jsp页面中的参数调用问题
- hibernate的问题,请大家进来看看!
另外程序中把<html:form>放到<html:logic>的外面
<bean:define name="ind" property="act" id="act" type="java.lang.String"/>
<html:form action="skipPageAction" method="POST">
<html:hidden property="act" value="<%=act%>"/>
<html:submit value="submit"/>
</html:form>
</logic:iterate>
<logic:iterate name='ind' id='ind' type='emp.indexForm' scope='session'>
<html:form action="skipPageAction" method="POST">
<input type="hidden" value="<bean:write name='ind' property='act' />">
<!-- 这里不用html:hidden ,但是能完全达到你的要求
<html:hidden property="act" value="<bean:write name='ind' property='act' />"/>//这里
-->
<html:submit value="submit"/>
</html:form>
</logic:iterate>