Thank you Marcus for your answer. I do appreciate.
I have one more :)
About the <html:img> with the request parameter, I think you are talking
about a tag like that:
<html:img srcKey="logon.flag.src" paramId='Local' paramName='en_GB'/>
right?
As I wanted to display only the locale that are different than the current one, can I
put the value of paramName in a resource file
and use a <bean:message> tag to replace it ?
If I'm in a french page, the value will be 'en' in my resource file. It will looks
like:
<html:img srcKey="logon.flag.src" paramId='Local' paramName=<bean:message
key="logon.flag.value"/> />
I guess it won't work as it didn't work to fix a value to a hidden file in that way.
Christophe
Extranet
[EMAIL PROTECTED] - 20/11/2002 08:55
Veuillez r�pondre � [EMAIL PROTECTED]
Pour : struts-user
cc :
Objet : Re: I18N - redisplaying a page in an other Locale
I had the same problem about a week ago( also using Struts 1.02)
Now I am using a seperate Action to change the local.
public ActionForward perform(ActionMapping mapping,
ActionForm form, HttpServletRequest request,
HttpServletResponse
response){
SetLocalForm setLocalForm = (SetLocalForm)form;
String localString = setLocalForm.getLocal();
Locale local = new Locale(localString, localString);
request.getSession().setAttribute(Action.LOCALE_KEY, local);
return mapping.findForward("setLocalActionDone");
}
and an ActionForm to store to store the local parameter from the jsp.
I guess how to set a parameter on an image should be clear.
(Image Link, link gots "local=lang" parameter)
marcus
--
To unsubscribe, e-mail: <
mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <
mailto:[EMAIL PROTECTED]>
This message and any attachments (the "message") is
intended solely for the addressees and is confidential.
If you receive this message in error, please delete it and
immediately notify the sender. Any use not in accord with
its purpose, any dissemination or disclosure, either whole
or partial, is prohibited except formal approval. The internet
can not guarantee the integrity of this message.
BNP PARIBAS (and its subsidiaries) shall (will) not
therefore be liable for the message if modified.
---------------------------------------------
Ce message et toutes les pieces jointes (ci-apres le
"message") sont etablis a l'intention exclusive de ses
destinataires et sont confidentiels. Si vous recevez ce
message par erreur, merci de le detruire et d'en avertir
immediatement l'expediteur. Toute utilisation de ce
message non conforme a sa destination, toute diffusion
ou toute publication, totale ou partielle, est interdite, sauf
autorisation expresse. L'internet ne permettant pas
d'assurer l'integrite de ce message, BNP PARIBAS (et ses
filiales) decline(nt) toute responsabilite au titre de ce
message, dans l'hypothese ou il aurait ete modifie.
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>