This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android 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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Application Resources
 
Similar Threads
Resource Bundles
browser stopping at .do page
Internationalization of Struts program
bean:message - existing key value not found
Struts Application not running