Win a copy of Java EE 8 High Performance this week in the Java/Jakarta EE forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

problem with fmt:message tag  RSS feed

Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
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
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!