You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Adolfo Miguelez <pe...@hotmail.com> on 2002/06/11 18:35:03 UTC
Struts book bug?
I read in chapter 4, in <message-resources> element definition of parameters
that the parameter "parameter" is required. I think this is not rtue, since
I am able to leave it blank and Struts assigns the default one
org.apache.struts.action.MESSAGE/mi_subapplication as key in the
ServletContext for this bundle.
Adolfo.
_________________________________________________________________
Join the worlds largest e-mail service with MSN Hotmail.
http://www.hotmail.com
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Struts book bug?
Posted by Chuck Cavaness <ch...@attbi.com>.
Adolfo,
It is required according to the DTD and the source code, because there
is not default specified. However, I think I may know how it's working for
you. I'm just guessing here however. Do you have the properties file
specified in the web.xml? Version 1.1 supports backwards-compatibility with
1.X and it will still load the message resources from the web.xml for the
default application. It may be getting the message resources for the
default application from there. Take a look at the
defaultMessageResourcesConfig() method in the ActionServlet class. There's
a note that this will be removed in a later release.
This might be how it's not breaking for you, I'm not really sure. I didn't
see anywhere a default message bundle name is being set. Maybe we're
looking at different versions?
Chuck
At 04:35 PM 6/11/2002 +0000, you wrote:
>I read in chapter 4, in <message-resources> element definition of
>parameters that the parameter "parameter" is required. I think this is not
>rtue, since I am able to leave it blank and Struts assigns the default one
>org.apache.struts.action.MESSAGE/mi_subapplication as key in the
>ServletContext for this bundle.
>
>Adolfo.
>
>
>
>_________________________________________________________________
>Join the world's largest e-mail service with MSN Hotmail.
>http://www.hotmail.com
>
>
>--
>To unsubscribe, e-mail: <ma...@jakarta.apache.org>
>For additional commands, e-mail: <ma...@jakarta.apache.org>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>