菜鸟,请教各位大神

baidu_29299003 baidu_29299003 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
jsp页面这样跳转 <td align="center"><a
href="userAction!gengxin.action?userId=<s:property value='#user.userId'/>">更新</a>
struts配置
<action name="userAction" class="userAction">
<result name="retirve">/jsp/listUser.jsp</result>
<result name="delete">/jsp/delete.jsp</result>
<result name="gengxin">/jsp/gengxin.jsp</result>
</action>

action层进行接收
public String gengxin(){
String userId=ServletActionContext.getRequest().getParameter("userId");
List<User> userList1 = new ArrayList<User>();
userList1 = userService.users(userId);
return "gengxin";
}
为神魔当跳转时会报错,
...全文

相关推荐

评论
收藏 已收藏
分享
返回顶部
baidu_29299003
Web 开发 81,108 成员 341,721 内容