mapping.getInputForward();获取action当中input中的值对应的地址
<action path="/test"
type="org.apache.struts.webapp.example.TestAction"
name="testForm"
scope="request"
input="testInput">
<forward name="testInput" path="/testInput.jsp"/>
</action>
getInputForward();获取的就是action中input里的testinput,通过testinput又找到forward里这个别名对应的path/testInput.jsp
mapping.getInput()获取的是action中input里的testinput字符串
mapping.getInputForward()与mapping.getInput
最新推荐文章于 2016-08-30 13:08:00 发布
本文介绍了Struts框架中如何通过mapping.getInputForward()方法获取action配置中的input属性及其对应的转发路径,并解释了如何通过该方法定位到具体的页面路径。
169

被折叠的 条评论
为什么被折叠?



