Try putting forward as the same page.

Regards
Rohit





-----Original Message-----
From: Dirk Behrendt [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 06, 2003 5:13 PM
To: [EMAIL PROTECTED]
Subject: How to realize forward to the same page?

Hello!

I want, that the user can switch the language from a drop down menu at
runtime. When he chose a language, an action class is called and sets
the locale.

I want, that there is no forward to another page. The current page
should be maintained. When I do it without the <forward> tag, an empty
page came as a result. But I want the same page. 

example:
The user switches the language

before switch           after switch
/login.jsp                      --> /login.jsp
/someJSP.jsp            --> /someJSP.jsp

What I have to add to the struts-config.xml?

Dirk


struts-config.xml
-----------------

<action    path="/language" 
               type="sample.LanguageAction"
               name="languageForm"
               scope="request">
               
          
</action>


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



*----------
This message and any attachment(s) is intended only for the use of the addressee(s) 
and may contain information that is PRIVILEGED and CONFIDENTIAL. If you are not the 
intended addressee(s), you are hereby notified that any use, distribution, disclosure 
or copying of this communication is strictly prohibited. If you have received this 
communication in error, please erase all copies of the message and its attachment(s) 
and notify the sender or Kanbay postmaster immediately.

Any views expressed in this message are those of the individual sender and not of 
Kanbay.

Although we have taken steps to ensure that this e-mail and any attachment(s) are free 
from any virus, we advise that in keeping with good computing practice the recipient 
should ensure they are actually virus free.


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

Reply via email to