Hi Tim,
  Thank you for your answer.
  Now I see that I was not clear and I apologize for that.
   
  We migrated a project from :
  WSAD 5.0 / J2EE 1.2/ JDK1.3 (Websphere 5)
  to 
  RSA / J2EE 1.4 / JDK 1.4 (Websphere 6)
   
  We discovered the hard way that RSA's migration assistant suck.
  Our ".ear" was both j2ee1.2 and j2ee1.4
   
  So in order to get a j2ee1.4 ear I started a new blank project from RSA. RSA 
has Struts support, and I guess that it is 1.1.
   
  Tim, I solved my first issue before posting (Error 500...).
  It appears that if you do not specify anything about ressource bundle 
(neither in web.xml nor in struts-config.xml) Struts 1.0 is looking for 
"struts.properties" whereas Struts 1.1 is looking for 
ApplicationRessources.properties.
   
  So, yes I have this file "struts.properties" and my error template are 
defined there.
   
  Now here is my issue.
  In the form, if the user forgets a mandatory field, I do something like :
    errors.add (...
    ...
    return errors
  I do not use saveErrors(), because I use it only in the action.
   
  With WSAD/ Struts 1.0 it works fine : stay on same page and display errors.
  With RSA/Struts 1.1 it stay on same page and display nothing.
   
  And it is the same code !
  Same jsp, same form.
  As if the <html:errors/> tag stopped working.
   
  I try debugging, using request.getAttributeNames() from the jsp, but I found 
nothing even on Struts 1.0 where everything works fine. Thus my question of 
where Errors object are stored.

"Slattery, Tim - BLS" <[EMAIL PROTECTED]> a écrit :
  > Hi,
> while migrating my app tu Websphere 6, I choos to migrate 
> from Struts 1.0 to 1.1.
> (According to META-INF/MANIFEST.MF file, because I am not sure).
> 
> First when forgetting a file I had :
> Error 500: Cannot find message resources under key 
> org.apache.struts.action.MESSAGE 
> 
> I solved this issue in adding the following in web.xml:
> 
> 
application

> 
struts

> 

This language is telling Struts that there's a file named
"struts.properties" in your /WEB-INF/classes directory that has the
definitions of the strings referenced in your ActionError classes.

> Now my issue, is that it does not dispaly errors anymore.
> The "form.java" is the same in both version.
> The jsp file is the same.
> But does not display anything.

Does "struts.properties" exist? Have you defined your error template
strings there?

> By the way, where are errors message stored ? I found 
> nothing neither in the request nor in the session.

I'm not sure what you mean. What errors? In Struts 1.1.x, when you call
saveErrors(...) in your Action.perform function, the ActiveErrors object
is stored in the HttpRequest object.

--
Tim Slattery
[EMAIL PROTECTED]
                
---------------------------------
 Nouveau : téléphonez moins cher avec Yahoo! Messenger ! Découvez les tarifs 
exceptionnels pour appeler la France et l'international.Téléchargez la version 
beta.

Reply via email to