• 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

input reult type in Struts2

 
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Of course not. Without knowing more information it's impossible to tell you what's going wrong.
reply
    Bookmark Topic Watch Topic
  • New Topic