1.在ssh的构架中,如果action中可以获取jsp页面的值,并且使用request进行设置,在另一个页面进行获取
示例:jsp页面1
<body>
<center>请输入用户名:<br><br>
<form action="key.action" method="post">
<input type="text" name="info.name"><br/>
<input type="submit" value="提交">
</form></center>
</body>
action中的处理
private HttpServletRequest request = ServletActionContext.getRequest();
request.setAttribute("info", info);//info是与表单相关的VO
jsp页面的获取
<s:property value="#request.info.question"/><br/>
问题:<input type="text" name="info.question" value="<s:property value='#request.info.question'/>" readonly="true" />
最后
以上就是老实路人最近收集整理的关于ssh中action的各种处理系列一的全部内容,更多相关ssh中action内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复