Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

JSP fmt:message tag. problem with properties

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • 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.
 
Marshal
Posts: 67430
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • 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
  • 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.
 
We can walk to school together. And we can both read this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic