• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

Property values not retrieved through property files

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Sheriff
Posts: 67752
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please be sure to ask Struts questions in the Struts forum. I have moved this post there for you.
 
A lot of people cry when they cut onions. The trick is not to form an emotional bond. This tiny ad told me:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic