Meaningless Drivel is fun!*
The moose likes Struts and the fly likes Property values not retrieved through property files 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 "Property values not retrieved through property files" Watch "Property values not retrieved through property files" New topic
Author

Property values not retrieved through property files

nilesh jainn
Greenhorn

Joined: Nov 27, 2009
Posts: 3
Hi
I am working on a web application which is not developed by me. This application is working fine on production server, however when i am deploying the same on a different environment, it is not working appropriately.

The web-application is using Struts, struts tiles, Struts bean etc tag-library.

The problem which I am reffering to:
JSP page is using the 'struts bean' tag library hence I am specifying the tag lib on the top as:
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
which is retrieveing the value by passing key as:
<bean:message key="key1"/>

When I am reffering the same jps it is throwing an error:
[ServletException in:layout.jsp] Missing message for key "key1"'

However when I am looking at the ApplicationResources.properties it is containing the key and value.

I understand that this is a very generic way of explaining the problem. I urge if someone, Could someone look at the problem suggest the pointer or at least revert and suggest more information if I am missing something.

Thanks.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60800
    
  65

Please be sure to ask Struts questions in the Struts forum. I have moved this post there for you.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Property values not retrieved through property files
 
Similar Threads
No tag "form" defined in tag library imported with prefix "html"
Problem in JSP page is using the 'struts bean' tag library
how to set the <bean:message key="abc.xyz" /> into jsp:setProperty parameter
Properties values not retrieved from property file.
Problem regarding Struts+Spring+hibernate