Réf. : RE: struts 1.1-b2 struts-blank bug????

2002-12-02 Thread christophe . godel


same here only for resources bundle files. in fact, all properties files
need the server to be restarted (I believe BEA can do it on the fly), but I
don't have this problem with the JSP.



Extranet
[EMAIL PROTECTED] - 02/12/2002 15:56


Veuillez répondre à [EMAIL PROTECTED]
Pour : struts-user

cc :


Objet : RE: struts 1.1-b2  struts-blank bug


I'm having a similar problem.  I'm using WebSphere 4.0.3 with the Struts
blank.  My changes to the ApplicationResources file or JSPs don't show up
until I bring WebSphere down and restart.  I've been told that WebSphere
has
a cache directory of compiled JSP pages and I need to clean it out on my
build.   I haven't figured out how to do this yet.  Oddly, I don't have
this
problem in the Struts tutorial application.

-Original Message-
From: Hanasaki JiJi [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 02, 2002 1:08 AM
To: Struts Users Mailing List
Subject: Re: struts 1.1-b2 struts-blank bug


I added that entry and still ahve the same error.

Dinesh Samson J wrote:
> Hi
>
> The entry for welcome.title in your ApplicationResources.properties file
> is missing.
>
> regards,
>
> Dinesh Samson J
> IT Support
> ([EMAIL PROTECTED])
> UAE Exchange Centre LLC
> POBox 170, Hamdan Street
> Abu Dhabi, United Arab Emirates
> Mobile: +971-50-6682136
> Phone: +971-2-6322166,6394342
> Fax: +971-2-6340713
>
> -Original Message-
> From: Hanasaki JiJi [mailto:[EMAIL PROTECTED]]
> Sent: 02 December 2002 09:59
> To: [EMAIL PROTECTED]
> Subject: struts 1.1-b2 struts-blank bug
>
> anyone getting the below error from the blank file?
>
> struts-blank/index.jsp
>
>
> type Exception report
>
> message
>
> description The server encountered an internal error () that prevented
> it from fulfilling this request.
>
> exception
>
> org.apache.jasper.JasperException: Missing message for key welcome.title
> at
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja
> va:248)
> at
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289)
> at
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
> org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatc
> her.java:684)
> at
> org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDisp
> atcher.java:432)
> at
> org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispat
> cher.java:356)
> at
> org.apache.struts.actions.ForwardAction.execute(ForwardAction.java:158)
> at
> org.apache.struts.action.RequestProcessor.processActionPerform(RequestPr
> ocessor.java:446)
> at
> org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:
> 266)
> at
> org.apache.struts.action.ActionServlet.process(ActionServlet.java:129

--
=
= Management is doing things right; leadership is doing the =
=   right things.- Peter Drucker=
=___=
= http://www.sun.com/service/sunps/jdc/javacenter.pdf   =
=  www.sun.com | www.javasoft.com | http://wwws.sun.com/sunone  =
=


--
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:   
For additional commands, e-mail: 




Réf. : Initalize input form with data from thedatabase

2002-12-02 Thread christophe . godel


I'm little bit new to Struts, but I understood that the procedure is the
following:
Your Action must populate your ActionForm Bean, then your JSP will display
the right values...

You have an example of that in the Struts-example included in the release
(Edit Registration).

Tof




Extranet
[EMAIL PROTECTED] - 02/12/2002 15:09


Veuillez répondre à [EMAIL PROTECTED]
Pour : struts-user

cc :


Objet : Initalize input form with data from the database


 Hi there,

Im having problems calling an action to fetch data from the Database and
prepopulate an input form.
Basically I have 1 Action, 1 ActionForm and 1 JSP. The ActionForm extends
LookupDispatchAction to cope with multiple buttons on the JSP. What I want
to do is to call the Action to initalize the JSP with data from the
database
and resue the same action for all other buttons on the page. Can anybody
point me in the right direction.

Ta




" This message contains information that may be privileged or confidential
and
is the property of the Cap Gemini Ernst & Young Group. It is intended only
for
the person to whom it is addressed. If you are not the intended recipient,
you
are not authorized to read, print, retain, copy, disseminate, distribute,
or use
this message or any part thereof. If you receive this message in error,
please
notify the sender immediately and delete all copies of this message ".




--
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:   
For additional commands, e-mail: 




RE: Forwards and Frames

2002-12-02 Thread christophe . godel


Hi,

I take this thread and ask for a different question. I searched all around to find 
some answers.
What if I don't use a form and call directly an action from a link in my frame. The 
action, in some case, must display a page
over the frameset (_parent target) or relaunch the frameset (after a logout action for 
example)...

It seems I can't put a target parameter in a forward in the struts-config.
Have I to use an intermediary page that loads the frameset in a _parent target via 
Javascript to do that. ?

I know the better way will be to avoid frame based web app... but right now, it's not 
possible :)

Regards,
Christophe


From: Kristian Duske
Subject: RE: Forwards and Frames
Date: Mon, 25 Nov 2002 10:32:38 -0800



Hi,

> Background information: I have a page split into two frames, top
> and bottom.
> I have a form in the top part, that displays a list of messages.  The user
> then selects the messages they want displayed and they press a button and
> the button forwards the information to the bottom form? How do I
> do this in
> the Action Class? Or what should I search under? I have "Mastering Jakarta
> Struts" and "Struts in Action" to look into this, I just don't
> know what it
> is called.

This is more an HTML question than a Struts question. You have to specify
the target-Attribute for the html:form tag, very much like in HTML:


...


The value of this attribute is the name of the bottom frame, as specified in
your frameset:






Regards
Kristian







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:   
For additional commands, e-mail: 




Réf. : RE: Running Struts on Wepshere 4.0

2002-11-27 Thread christophe . godel

Doesn't WSAD use the 8080 port ?
http://localhost:8080/BR/login.do



Extranet
[EMAIL PROTECTED] - 27/11/2002 16:43


Veuillez répondre à [EMAIL PROTECTED]
Pour : struts-user

cc :


Objet : RE: Running Struts on Wepshere 4.0



Thanks Jack
But it doesnt work for me .
My problem i slike this:
If I am caaling http://localhost/BR/login.do from URL I am gettin 404 error
but if I am calling welcome.do from forward tag inside the
struts-config.xml file I am able to get the things work for me.

Pls suggest wat can be doen for this. did u also face same problem?

abhishek







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:   
For additional commands, e-mail: 




Réf. : RE: Does an html:link could use a titleparameter from a resource file??? (struts 1.0.2)

2002-11-26 Thread christophe . godel

it seems it's not available on 1.0.2 :)
I will face every problem in the world as the courageous Struts newbies we
are in the team lol

Thanks for all your answers...




Extranet
[EMAIL PROTECTED] - 26/11/2002 17:00


Veuillez répondre à [EMAIL PROTECTED]
Pour : struts-user

cc :


Objet : RE: Does an html:link could use a title parameter from a
   resource file??? (struts 1.0.2)


Much as I'd like to see Struts-EL solve every problem in the world :) ,
you can just use the "titleKey" attribute of "html:link", like this:

  

However, I don't know whether this was available in Struts 1.0.2.

> >From: [EMAIL PROTECTED]
> >Reply-To: "Struts Users Mailing List"
> <[EMAIL PROTECTED]>
> >To: [EMAIL PROTECTED]
> >Subject: Does an html:link could use a title parameter from
> a resource
> >file??? (struts 1.0.2)
> >Date: Tue, 26 Nov 2002 16:24:58 +0100
> >
> >
> >I'm using struts for i18n and I try to get the title parameter from a
> >resource file. Is it allowed to use a taglib into a taglib
> like in the
> >following example (which doesn't works of course)?
> >
> >"/>
> >
> >If not, is there another solution??

--
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:   
For additional commands, e-mail: 




Réf. : Re: Does an html:link could use a titleparameter from a resource file??? (struts 1.0.2)

2002-11-26 Thread christophe . godel


I though struts-el was in the 1.1 version (I'm on 1.0.2) ?




Extranet
[EMAIL PROTECTED] - 26/11/2002 16:47


Veuillez répondre à [EMAIL PROTECTED]
Pour : struts-user

cc :


Objet : Re: Does an html:link could use a title parameter from a
   resource file??? (struts 1.0.2)


You can't use a tag as another tag's attribute value.  You can use the
struts-el taglib or jstl to solve this easily.

David






>From: [EMAIL PROTECTED]
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Does an html:link could use a title parameter from a resource
>file??? (struts 1.0.2)
>Date: Tue, 26 Nov 2002 16:24:58 +0100
>
>
>I'm using struts for i18n and I try to get the title parameter from a
>resource file. Is it allowed to use a taglib into a taglib like in the
>following example (which doesn't works of course)?
>
>"/>
>
>
>
>If not, is there another solution??
>
>
>
>Thanks
>
>
>
>Christophe
>
>
>
>
>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:
>
>For additional commands, e-mail:
>


_
The new MSN 8: advanced junk mail protection and 2 months FREE*
http://join.msn.com/?page=features/junkmail


--
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:   
For additional commands, e-mail: 




Does an html:link could use a title parameter from a resource file??? (struts1.0.2)

2002-11-26 Thread christophe . godel

I'm using struts for i18n and I try to get the title parameter from a
resource file. Is it allowed to use a taglib into a taglib like in the
following example (which doesn't works of course)?

"/>



If not, is there another solution??



Thanks



Christophe




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:   
For additional commands, e-mail: 




Get ServletContext from Action (Struts 1.0.2)

2002-11-22 Thread christophe . godel

Hello,
Can you tell me how to obtain the ServletContext in a Struts 1.0.2 Action.
Is the getServlet().getServletContext() call on my action the good way to
do that ?

Thanks.









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:   
For additional commands, e-mail: 




Réf. : Re: I18N - redisplaying a page in an otherLocale

2002-11-22 Thread christophe . godel


Thank you Marcus for your answer. I do appreciate.

I have one more :)
About the  with the request parameter, I think you are talking
about a tag like that:

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  tag to replace it ?
If I'm in a french page, the value will be 'en' in my resource file. It will looks 
like:
 />

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:   
For additional commands, e-mail: 




I18N - redisplaying a page in an other Locale

2002-11-19 Thread christophe . godel

Hi everyone,

I'm pretty new to Struts (1.0.2) and like many others I got some problems
with the I18n stuff :)
I know that because I guess I read so much thing about this issue in the
mail archive and different sites, but I still
got a weird problem. So I decide to write and ask you for some help.
Environment: WSAD 4.03 - Struts 1.0.2
2 properties files for the translation, the default one
(ApplicationResources.properties) and an other one for french for example
(sorry for english mistakes if it occurs :) )
(ApplicationResources_fr.properties).

The thing I want to do is actually simple. A page with an image (a flag for
example :) ). When you click on it, it displays the same page with in the
right language.
I have no problem with the image, the redisplaying of it, the resources and
all those stuff.

The page is first displayed in the language regarding the browser
configuration . This is ok.
But when I click on the flag, I want to change the session with the new
locale.
Right now, I implemented that:
  - in my ApplicationsResources files I put a key: logon.flag.value=en
when I'm on the french translated page, logon.flag.value=fr when I'm the
default one.
  - in my ActionForward perform method, I tried this:

-
   public ActionForward perform(ActionMapping mapping,
 ActionForm form,
 HttpServletRequest request,
 HttpServletResponse response)
  throws IOException, ServletException {

  // Extract attributes we will need
  MessageResources messages = getResources();

  // Validate the request parameters specified by the user
  ActionErrors errors = new ActionErrors();

  //get the right language code
  String flag = messages.getMessage("logon.flag.value");

  //Tof - Setting the new locale regarding the choice of the user if he
clicked on the flag
  Locale localeNew = new java.util.Locale("flag", "");
  request.getSession
().setAttribute(org.apache.struts.action.Action.LOCALE_KEY, localeNew);

  // Report any errors we have discovered back to the original form
  if (!errors.empty()) {
  saveErrors(request, errors);
  return (new ActionForward(mapping.getInput()));
  }


// Remove the obsolete form bean
  if (mapping.getAttribute() != null) {
if ("request".equals(mapping.getScope()))
request.removeAttribute(mapping.getAttribute());

}

  // Forward control to the specified success URI
  return (mapping.findForward("logLocale"));

}
-

And the Locale still remain "fr" instead of switching to the default one.
So I looked around and I finally understood that my default resources is
not the "fr" one but the default one ! So, the flag variable is "fr" and
not "en".
Why is that possible as I thought like I see it on some threads that the
first time the session was initialized with the Locale returning by the
 tag?!

So I tried to force to create a session modification in the JSP like I saw
in the mail archive:

-

<%
   String language = null;
String localeValue = request.getParameter("locale");

if(localeValue != null) {
language = localeValue.substring(0, 2);
Locale localeNew = new java.util.Locale(language, "");
session.setAttribute(org.apache.struts.action.Action.LOCALE_KEY, localeNew, 
newLocale);
}
%>
-

But this changed nothing :)

Then I planned to use a hidden tag with the value of the resources
logon.flag.value. But I understood that I can't set a value of a hidden tag
from the Resources.
I suppose I need to create a Bean and use an html:bean tag or modify the
setter in my Form class (I didn't succeeded in that -> the getResources is
never found), and I get this hidden field in my action class and test it
and pass it as a parameter of my setAttribute.
.
But I think this must not work as well regarding the previous problem.

So anyone has a good idea ? :))

Anyway, thanks for having read this too long mail :)

Christophe





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. 

-