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 err
is 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
Post a Comment