Redirecting without losing request attributes in Struts 2

I would like to redirect for my JSP page in which the URL will be changed to /folder/mypage.jspwithout losing the request attributes.

Is there any way to perform this kind of redirect in Struts 2?

<result type="redirect">/folder/mypage.jsp</result>
+4
source share
1 answer

A dispatchertype of result is what you need. When you redirect to a JSP page using this type of result, the request is sent to the resource, sending a request for a new request. By default, the result type is used dispatcher.

<result>/folder/mypage.jsp</result>

, . Struts JSP , , Struts JSP.

+3

Source: https://habr.com/ru/post/1653751/


All Articles