I have a problem forwarding to the same page after a request is submitted by
a form. This could be straightforward until this form is only on the same
page. In this case I would use a "dispatcher" to forward to the appropriate
JSP. But how can I forward to the "same page" if I use the same form on
different pages?
How do I forward to the same page I was coming from? The typical example for
this is to change the language of a website with a "change-language-form".
Someone is on one page and simply wants to change the language and expects
to see the same page with the different language selected. Another case
could be a login-form displayed. No matter when the login is performed, the
user will be returned to the same page he has been before. A similiar case
could be a "search-form" where the user types in a search term. If
validation fails for a non-existing term, the Workflow-Interceptor expects
an "input"-result where to forward. But this "input"-result is different to
all pages including this search-form.
Exists something like a "request"-history (a stack of all forward-requests)
in Struts2?
-- 
View this message in context: 
http://www.nabble.com/S2%3A-Forward-or-Redirect-to-same-page-tp20930597p20930597.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to