jQuery in Action, 3rd edition
The moose likes JSP and the fly likes problem with fmt:message tag Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "problem with fmt:message tag" Watch "problem with fmt:message tag" New topic

problem with fmt:message tag

Sonu Kaur

Joined: Sep 30, 2004
Posts: 9
I'm facing a problem with a jsp page
i have a property file
in which
i have defined some keys for the messages on the jsp
text.equipment_comparative_features=comparative features

and i have created an interface OSAppConstants.java
into which ihave

public staic final String EQUIPMENT_COMPARATIVE_FEATURES="

now in the jsp i'm importingn this java interface

and if i use the following

<fmt:bundle basename ='ApplicationResources' >
<fmt:message key= '<%=OSAppConstants.EQUIPMENT_COMPARATIVE_FEATURES%>' />

i get ??? displayed on th e page
where as if i use

<fmt:bundle basename ='ApplicationResources' >
<fmt:message key= 'text.equipment_comparative_features' />

i get the comparative features displayed

what cud be the reason
can anybody help plz
I agree. Here's the link: http://aspose.com/file-tools
subject: problem with fmt:message tag
It's not a secret anymore!