struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "walkrustin" <walkrus...@yahoo.com>
Subject Re: .properties file
Date Thu, 01 Apr 2004 20:36:31 GMT
While debugging this problem it's easy to overlook the fact that 
struts-config.xml is loaded when the web server boots for the first 
time. I have come across many cases where the fix is put into 
struts-config.xml file but the server is not restarted; hence the old 
result shows up and the user believes that the solution didn't work. 
All I am saying is while testing do restart the web server.

- walk rustin.


--- In struts@yahoogroups.com, Mario St-Gelais <legrimpeur@s...> 
wrote:
> Ramil Mirhasanov wrote:
> 
> >I have chosen the problem like this, after surfing net  a little 
bit,
> >I added :
> >
> ><servlet>
> >  <servlet-name>action</servlet-name>
> >  <servlet-class>org.apache.struts.action.
ActionServlet</servlet-class>
> >     <init-param>
> >       <param-name>application</param-name>
> >       <param-value>mypackage.ApplicationResources</param-value>
> >     </init-param>
> >  <.../>
> ></servlet>
> >to web.xml
> >
> >And created  mypackage.ApplicationResources.properties file.
> >  
> >
> >
> 
>---------------------------------------------------------------------
> >To unsubscribe, e-mail: user-unsubscribe@s...
> >For additional commands, e-mail: user-help@s...
> >
> >
> >  
> >
> I have the exact same problem.  In my web.xml, I use :
>   <servlet>
>     <servlet-name>action</servlet-name>
>     <servlet-class>org.apache.struts.action.
ActionServlet</servlet-class>
>     <init-param>
>       <param-name>config</param-name>
>       <param-value>/WEB-INF/config/struts-config.xml</param-value>
>     </init-param>
>     <init-param>
>         <param-name>application</param-name>
>         
> <param-value>ca.ulaval.fsa.drdb.struts12.resources.
ApplicationResources</param-value>
>     </init-param>
> 
> And in struts-config.xml I got :
> 
> <message-resources
>     parameter="ca.ulaval.fsa.drdb.struts12.resources.
ApplicationResources"/>
> 
> But still I get the same error messge.  The file exists in the above 
> parameter definition.  I am puzzled!!!!!
> 
> -- 
> _________________
> Mario St-Gelais
> www.gestionti.com
> "Good judgment comes from
> experience- usually experience
> which was the result of poor judgment"
> Bill Putnam
> 
> 
> 
> 
---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@s...
> For additional commands, e-mail: user-help@s...


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message