Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

input reult type in Struts2

 
deep kulkarni
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
In Struts2 application, when result is input then i have provided login.jsp as view.That is working properly but when i am trying to access same JSP again then it is not opening that page instead it is opening login.jsp (As result given for input).

Can you please tell me why this is happening and how to resolve this issue?
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not without knowing more--you're not giving enough information to help.
 
deep kulkarni
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have registration.jsp , when i am submitting by form that time some OGNL exception come and struts forward to view provided for "input" given in struts.xml .If no exception come then it is forwarding to "success" view that is fine.
I have given "input" result view as login.jsp( or any e.g error.jsp) & it is forwarding to that view that is fine but when i am trying to access again registration.jsp it is not opening this jsp instead it is opening login.jsp .
I have to restart my server to get it back to normal working flow such as opening of registration.jsp when i request it.
Can you please help me to know why this is happening for "input" result. kindly let me know If this information is not sufficient then i shall provide practical code.
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm guessing you're hitting a validation issue. If validation fails the "workflow" interceptor will return "input" (by default).
 
deep kulkarni
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes sir that is true, it is giving OGNL exception means validation issue is there but then what is solution, does it means that for once "input" result is come then our earlier URL/JSP will not work.
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Of course not. Without knowing more information it's impossible to tell you what's going wrong.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic