• Post Reply Bookmark Topic Watch Topic
  • New Topic

JSP fmt:message tag. problem with properties

 
Rahi Sanj
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.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65516
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • 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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!