user manually changing local

2002-11-13 Thread Marcus Biel
I want to give the user the ability to manually change the language of the aplication by selecting a local value from a selectbox. Has someone got an appropiate example to achieve this ? thx in advance, marcus -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For

RE: user manually changing local

2002-11-13 Thread Alireza Fattahi
To: [EMAIL PROTECTED] Subject: user manually changing local I want to give the user the ability to manually change the language of the aplication by selecting a local value from a selectbox. Has someone got an appropiate example to achieve this ? thx in advance, marcus -- To unsubscribe, e-mail

RE: user manually changing local

2002-11-13 Thread Michael Delamere
PROTECTED] Subject: user manually changing local I want to give the user the ability to manually change the language of the aplication by selecting a local value from a selectbox. Has someone got an appropiate example to achieve this ? thx in advance, marcus -- To unsubscribe, e-mail

RE: user manually changing local

2002-11-13 Thread Andrew Hill
17:44 To: 'Struts Users Mailing List' Subject: RE: user manually changing local Marcus, If you are using struts1.1 you can use your own version of the RequestProcessor by extending it and defining it in your struts-config. You can then manage the locale stuff manually by overriding the method

Re: user manually changing local

2002-11-13 Thread Marcus Biel
- From: Marcus Biel [mailto:Marcus.Biel;bmw.de] Sent: Mittwoch, 13. November 2002 10:32 To: [EMAIL PROTECTED] Subject: user manually changing local I want to give the user the ability to manually change the language of the aplication by selecting a local value from a selectbox. Has

Re: user manually changing local

2002-11-13 Thread Marcus Biel
Did that, but when compiling, I get thrown this error: SetLocalAction.java:18: cannot resolve symbol symbol : variable LOCAL_KEY location: class org.apache.struts.action.Action request.getSession().setAttribute(Action.LOCAL_KEY, local); ^ Am using

RE: user manually changing local

2002-11-13 Thread Michael Delamere
Pity, you´re missing out on a lot of goodies :-) -Original Message- From: Marcus Biel [mailto:Marcus.Biel;bmw.de] Sent: Mittwoch, 13. November 2002 11:06 To: [EMAIL PROTECTED] Subject: Re: user manually changing local Unfortunately I am forced to use Struts 1.02 marcus [EMAIL

Re: user manually changing local

2002-11-13 Thread Gemes Tibor
2002. november 13. 11:06 dátummal Marcus Biel ezt írtad: Unfortunately I am forced to use Struts 1.02 bad for you. however the session.setAttribute(Action.LOCALE_KEY, newLocale) still works, I use it in a couple of projects. Hth, Tib -- To unsubscribe, e-mail:

Re: user manually changing local

2002-11-13 Thread Gemes Tibor
2002. november 13. 11:05 dátummal Marcus Biel ezt írtad: Did that, but when compiling, I get thrown this error: SetLocalAction.java:18: cannot resolve symbol symbol : variable LOCAL_KEY location: class org.apache.struts.action.Action request.getSession().setAttribute(Action.LOCAL_KEY,

Re: user manually changing local

2002-11-13 Thread Marcus Biel
Nope! You missed an 'E'. This applies to the subject of this thread too. Action.LOCALE_KEY Hth, Tib thx! Would have never found it! :-) marcus -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail:

RE: user manually changing local

2002-11-13 Thread Alireza Fattahi
, ); } session.setAttribute(Action.LOCALE_KEY, locale); return mapping.findForward(success); } } -Original Message- From: Marcus Biel [mailto:Marcus.Biel;bmw.de] Sent: Wednesday, November 13, 2002 2:21 PM To: [EMAIL PROTECTED] Subject: Re: user manually changing local

Re: user manually changing local

2002-11-13 Thread Gemes Tibor
2002. november 13. 12:01 dátummal Alireza Fattahi ezt írtad: public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { This is struts1.1. He is

Re: user manually changing local

2002-11-13 Thread Marcus Biel
Thanks everyone! Finally it works! marcus -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org

Re: user manually changing local

2002-11-13 Thread David Graham
PROTECTED] Subject: user manually changing local Date: Wed, 13 Nov 2002 10:31:32 +0100 I want to give the user the ability to manually change the language of the aplication by selecting a local value from a selectbox. Has someone got an appropiate example to achieve this ? thx in advance, marcus

OT: Re: user manually changing local

2002-11-13 Thread Marcus Biel
ARG! What the hell is wrong here ??? import java.util.Locale; import java.lang.*; import java.sql.*; import javax.servlet.http.*; import org.apache.struts.action.*; public class SetLocalAction extends Action { public ActionForward perform(ActionMapping mapping, ActionForm form,

Re: OT: Re: user manually changing local

2002-11-13 Thread David Graham
You have mispelled Locale. Any IDE will pick up this error for you. David From: Marcus Biel [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: OT: Re: user manually changing local Date: Wed, 13 Nov 2002 12:25:44 +0100 ARG! What the hell

RE: user manually changing local

2002-11-13 Thread Sri Sankaran
Intermixed... -Original Message- From: Marcus Biel [mailto:Marcus.Biel;bmw.de] Sent: Wednesday, November 13, 2002 6:26 AM To: [EMAIL PROTECTED] Subject: OT: user manually changing local ARG! What the hell is wrong here ??? import java.util.Locale; import java.lang.*; import

RE: Re: user manually changing local

2002-11-13 Thread Karr, David
, you have several name changes you need to make. -Original Message- From: Marcus Biel [mailto:Marcus.Biel;bmw.de] Sent: Wednesday, November 13, 2002 3:26 AM To: [EMAIL PROTECTED] Subject: OT: Re: user manually changing local ARG! What the hell is wrong here ??? import

Re: OT: Re: user manually changing local

2002-11-13 Thread Gemes Tibor
2002-11-13, sze keltezssel Marcus Biel ezt rta: ARG! What the hell is wrong here ??? import java.util.Locale; import java.lang.*; import java.sql.*; import javax.servlet.http.*; import org.apache.struts.action.*; public class SetLocalAction extends Action { public ActionForward

Re: Re: user manually changing local

2002-11-13 Thread Brian Hickey
and clear. HTH Brian - Original Message - From: Marcus Biel [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, November 13, 2002 6:25 AM Subject: OT: Re: user manually changing local ARG! What the hell is wrong here ??? import java.util.Locale; import java.lang.*; import

Re: user manually changing local

2002-11-13 Thread Marcus Biel
that's just the way I did it, and it works nicely! :-) [EMAIL PROTECTED] schrieb: Marcus, What datatype does getLocal() return? I would likely write: SetLocalForm myForm = (SetLocalForm)form first and then: String localString = myForm.getLocal(); or: String