On 8/30/06, Thomas Hamacher <[EMAIL PROTECTED]> wrote:
Dear everyone,
after spending a lot of time with googling and multiple tries with different
approaches and also my questions to the struts-user-mailinglist didn´t come
to a solution, I would like to as you guys if there is a way or not. So I´m
sorry, if I use the developers-list for a stupid user-question, but I don´t
know any place else I might find a solution to this problem:
My question is: Does the struts-framework provide a possibility to forward
back to the page you came from?
I can´t believe, that I´m the only one, who has this problem and I don´t think
there is no struts-conform solution. Let me give you the following scenarios
so that you know what I´m talking about.
- I wanna show a login-box on every page. If the user logs into the webpage,
the login-action executes and afterwards the user is redirected to the page
he has been before, but the userMenu is displayed instead the login-box. If
the authorization fails, he´ll be redirected to the same page, showing im an
error-message
- On top of every page is a possibility to change the language through
clicking on a button with a language-flag. After changing the locale, the
user will be redirected back to the page he came from, but using a different
language.
See here: http://wiki.apache.org/struts/StrutsManualActionWebComponent
This feature is not (yet?) implemented in Struts, so if something like
this will work for you, chime in and we will try to make it happen ;-)
The page contains an example application. Classes that end with "13"
are supposed to work with Struts 1.3.x, classes that end with "14" are
supposed to work with next version of Struts 1, and some core Struts
classes are modified as well.
Since you need redirection and you don't need Ajax, you can remove all
Javascript stuff from the pages, as well as CSS class="strutsCommand".
It would be great if you tried this stuff and commented on it, does it
look like something that you are looking for.
Michael.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]