This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Struts and the fly likes using fmt:message instead of bean:message Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Frameworks » Struts
Reply Bookmark "using fmt:message instead of bean:message" Watch "using fmt:message instead of bean:message" New topic
Author

using fmt:message instead of bean:message

poornima balagopal
Ranch Hand

Joined: Dec 02, 2003
Posts: 83
Hi
I have a customized MessageResources class and corresponding factory class. If I want to use this customized class as my message resources class for the struts application , I can give an entry in struts-config.xml .(in the message resource element , I will set the factory attribute).
What�s the problem I am facing now is, I want to use fmt:message instead of bean:message in my application. If I am not using the customized class it will work. But I want to use this coustomized class instead of default message resource class.
Can anybody help me ?

regards
Poornima
alan do
Ranch Hand

Joined: Apr 14, 2005
Posts: 354
fmt:message doesn't care about where your message resource is as long as you 'tell' it where it is in your app. inside you web.xml simply add:


-/a<br />certified slacker...yes, my last name is 'do' - <a href="http://www.luckycouple.com" target="_blank" rel="nofollow">luckycouple.com</a>
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: using fmt:message instead of bean:message
 
Similar Threads
c:out value not working
Using fmt:message in place of bean:message with modules
JSP fmt:message tag. problem with properties
internationalization in jsp
Exception:500 org.apache.jasper.JasperException: java.lang.NullPointerException