You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Jay Andrews <sc...@yahoo.com> on 2003/01/31 16:40:25 UTC

message-resources

I've just started to learn struts and I cannot seem to
find a good answer to this question.  

What's the difference between specifying property
files in the struts-config.xml file under
<MESSAGE-RESOURCES>  and specifying them as an
<INIT-PARAM> of the struts ActionServlet?  

Thanks!

__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

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


Re: message-resources

Posted by "Craig R. McClanahan" <cr...@apache.org>.

On Fri, 31 Jan 2003, Jay Andrews wrote:

> Date: Fri, 31 Jan 2003 07:40:25 -0800 (PST)
> From: Jay Andrews <sc...@yahoo.com>
> Reply-To: Struts Users Mailing List <st...@jakarta.apache.org>
> To: struts-user@jakarta.apache.org
> Subject: message-resources
>
> I've just started to learn struts and I cannot seem to
> find a good answer to this question.
>
> What's the difference between specifying property
> files in the struts-config.xml file under
> <MESSAGE-RESOURCES>  and specifying them as an
> <INIT-PARAM> of the struts ActionServlet?
>

Using an init parameter is the old way to do it, and remains only for
backwards compatibility with Struts 1.0.

Using a <message-resources> element in struts-config.xml is the new way to
do it, and is required if you ever want to use the multiple-module
support.

> Thanks!
>

Craig

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