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
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
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
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
-
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
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
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
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:
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,
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:
, );
}
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
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
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
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
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,
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
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
, 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
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
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
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
21 matches
Mail list logo