aspose file tools*
The moose likes Struts and the fly likes input reult type in Struts2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "input reult type in Struts2" Watch "input reult type in Struts2" New topic
Author

input reult type in Struts2

deep kulkarni
Greenhorn

Joined: Dec 05, 2007
Posts: 18
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

Joined: Sep 29, 2008
Posts: 12617

Not without knowing more--you're not giving enough information to help.
deep kulkarni
Greenhorn

Joined: Dec 05, 2007
Posts: 18
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

Joined: Sep 29, 2008
Posts: 12617

I'm guessing you're hitting a validation issue. If validation fails the "workflow" interceptor will return "input" (by default).
deep kulkarni
Greenhorn

Joined: Dec 05, 2007
Posts: 18
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

Joined: Sep 29, 2008
Posts: 12617

Of course not. Without knowing more information it's impossible to tell you what's going wrong.
 
Consider Paul's rocket mass heater.
 
subject: input reult type in Struts2