如何通过Struts从另一个打开一个jsp
例如,
我有两个JSP,Page1.jsp和Page2.jsp。
any 不包含任何形式的。
Form包含一个表单。
我需要Page1.jsp上的链接,当单击时,会带我到Page2.jsp。
Actionmappings需要什么将添加到struts-config.xml中
更新:
我尝试在Page1.jsp中添加这些行
Page2 2Page2
在struts-config.xml,中,下面的Action-mapping
"href" one可以工作,而带有"html:link“的不带我到Page2.jsp。为什么?
发布于 2010-10-25 15:11:58
使用struts版本1.x (在Page1.jsp中):
<html:link action="/action"> 然后在struts-config.xml中:
<action path="/action" forward="{path to }Page2.jsp"/>https://stackoverflow.com/questions/4015579
复制相似问题