• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JSP fmt:message tag. problem with properties

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,
I am experiencing a wierd problem. I'm using fmt:message tag to display locale specific properties. In a particluar instance when I'm running my application, I dont see values displayed for a property but instead I see "???APPTY_1???". Sometimes it stays like that for that particular session and next time when I login again, I see the value perfectly fine. Any ideas why it is like that?
Usually we see "???.." whenever fmt tag doesnt find value for that particular key. But I have key listed.

I'm also using struts bean:message tag in some places and I dont see such things.
Is there any known issue with fmt:message tag?
I'm using Websphere as app server.

Thank You.
 
Sheriff
Posts: 67747
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
Whose implementation of the JSTL are you using? Does WS have its own?

I've been using the Jakarta implementation with no issues.

The JSTL will emit ??? when the bundle cannot be located, and ???xyz??? when the bundle exists, but property 'xyz' cannot be found.
 
Rahi Sanj
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,
Not quite sure about what you meant by whose implementation.
I have defined the below declaration in my jsp.
<%@ taglib uri="http://java.sun.com/jstl/fmt"prefix="fmt" %>

I dont know if WebSphere has its own implementation. If so, how to find out which implementation it is using?

You are right. "???xyz???" is displayed if key xyz is not found. But, in my case, I have defined the key in my properties file. Not seeing the value happens only once per session and only few times. If I start a new session again, I see the value.

I'm not quite sure if this is to do with fmt:message tag or with app server not loading properly. But, in either case, I should not be seeing the value at any point of time which is not the scenario.

Thanks for the suggestions.
 
Yup, yup, yup. Tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic