Struts2中从一个action内部跳转到另一个action,怎么配置xml呀?

2025-02-01 08:05:30
推荐回答(4个)
回答1:

nextAction

type="chain"即可
然后配置要跳转的Action

回答2:

这个要看你的两个action是不是在通一个package下了



index.jsp
stuList!isList





index.jsp

stuList!isList

index.jsp


如果还有问题 可以百度HI 我。。我在线帮你。

回答3:

在action标签里写

/user.do?method=login

name属性没什么特别的,主要是type="redirect"这就标识要内部跳转,在标签内写你要跳转的action的动作

回答4:

Struts2 Action内部跳转:


/xxx
xxx
xxx