This is effectively unreadable in my email.

At 06:06 PM 3/5/03 +0000, you wrote:

This what I did:

++++++++++++++ In the homepage page:
<%
pageContext.setAttribute("URLPath", request.getRequestURL());
%>

++++++++++++++ or ++++++++++++++ In Struts Config: ++++++++++++++ In the SetLocaleAction: String language = httpServletRequest.getParameter("lg"); String urlInput = httpServletRequest.getParameter("url"); Locale locale = (Locale) httpServletRequest.getSession().getAttribute(org. apache.struts.Globals.LOCALE_KEY); httpServletRequest.getSession(true).setAttribute( org.apache.struts.Globals.LOCALE_KEY, new Locale(language)); Locale newlocale = (Locale) httpServletRequest.getSession().getAttribute(org. apache.struts.Globals.LOCALE_KEY); int index = urlInput.indexOf(httpServletRequest.getContextPath()) + httpServletRequest.getContextPath().length(); return (new ActionForward( urlInput.substring(index), true)); -----Original Message----- > From: James [mailto:[EMAIL PROTECTED] > Sent: 05 March 2003 20:28 > To: [EMAIL PROTECTED] > Subject: Re: Localisation > > i'm not sure at the moment our current ' work around' is to only display > the > flags on the 'home' page which can be accessed via the menu. This way no > data entry is lost.. > > but i would prefer a way of doing it from any page and returning to the > same > page, preferably with no data entry loss (or validation).. > > > > > "Konstantina Stamopoulou" wrote in message > news:[EMAIL PROTECTED] > > > > > > > You could set a group of forwards up, based on the locale ie > > > > > > > > > > > > > > >within > > > > > > Does this mean that someone has to implement a different .jsp for each > > language? I need to implement something similar and I'm not sure that I > > understand the answer. Don't you use the to display text > in > > different languages? I'm I missing something here? > > James what is exactly the solution you are going to follow? > > > > > Cheers > > > > > > Simon > > > > Thank you in advance > > Konstantina > > > > > > > ----- Original Message ----- > > > From: "James" > > > To: > > > Sent: Wednesday, March 05, 2003 8:11 PM > > > Subject: Localisation > > > > > > > > > > I have a LocaleActionClass that sets the locale according to which > wee > > > flag > > > > the user clicks, my question is how in the struts-config.xml do i > > specify > > > it > > > > to forward to the page they changed locale on (i.e their original > page). > > > > > > > > James > > > > > > > > > > > > > > > > > > > > > > > > -------------------------------------------------------------------- > - > > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



LEGAL NOTICE


This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you



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



Reply via email to