struts2 - Struts won't pass parameter to jsp file -


i have action (depending on result) redirects suitable file:

<!-- /web/addaccount --> <action name="addaccount" class="com.x.y.z.webcreateaccountaction">         <result name="invalidlogin">/delete/confirm.jsp?err=signin</result>   <result name="error">/delete/error.html</result> </action> 

for reason, when redirecting delete/confirm.jsp, parameter erris not passed in. i'm @ loss why happening. incorrect way of passing params jsp via struts?

was missing a:

type="redirect"

<result name="invalidlogin" type="redirect">/delete/confirm.jsp?err=signin</result> 

note: advised against, redirect directly jsp, considered s2 anti-pattern. see comments below.


Comments

Popular posts from this blog

javascript - Thinglink image not visible until browser resize -

firebird - Error "invalid transaction handle (expecting explicit transaction start)" executing script from Delphi -

mongodb - How to keep track of users making Stripe Payments -