permaculture playing cards*
The moose likes Struts and the fly likes Application Resources Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Application Resources" Watch "Application Resources" New topic
Author

Application Resources

Cesar Olavo
Greenhorn

Joined: Nov 19, 2004
Posts: 17
Hi,

Can anyone explain why we need the ApplicationResources declared twice, i.e. in the web.xml and in the struts-config?

web.xml:

<init-param>
<param-name>application</param-name>
<param-value>ApplicationResources</param-value>
</init-param>

struts-config:

<message-resources
parameter="ApplicationResources"
null="false" />

Thank you,

Cesar
sreenath reddy
Ranch Hand

Joined: Sep 21, 2003
Posts: 415
There is no need to mention in 2 places...in 1.0 it was in web.xml and 1.1. they moved that to struts-config.xml and 1.1 has backward compatibility so no issues
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Application Resources