• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

If Validation Fails , the redirect from that JSP not happens correctly

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This is my SignupAction

<action name="signup"
class="example.SignupAction"
method="execute">
<result name="success" >/example/welcome.jsp</result>
<result name="error">/example/error.jsp</result>
<result name="input">/example/sign_up.jsp</result>
</action>

A redirect in sign_up.jsp

<li><a href="login.jsp">Login</a></li>

Action defined in Signup.jsp

<s:form align="center" action="signup">

I have a lot of validation in sign_up.jsp if the validations fails more than one time on that page , i am not able to redirect it to any other page , for example

<li><a href="login.jsp">Login</a></li>

Below error is received :


type Status report

message /struts2-blank_login_validation_instruts/login.jsp

description The requested resource (/struts2-blank_login_validation_instruts/login.jsp) is not available.



IF i do not click submit button on sign_up.jsp or no validation is failed , it redirects properly on login.page
Let me know if you need any other information regarding the same.
 
reply
    Bookmark Topic Watch Topic
  • New Topic