• 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

html in bean message

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm having a problem with links within a bean:write tag.
In my jsp, I have the following code:
<html:messages id="message" message="true" bundle="<%=bundle%>">
<bean:write name="message"/><br></span>
</html:messages>
The properties file has the following property:
MESSAGE.MustChangePass = Password has expired.<br>Click <a href="javascript:scriptname();">here</a> to go to change your password.
The message was queued using:
ActionMessages actionMessages = new ActionMessages();
actionMessages.add(ActionMessages.GLOBAL_MESSAGE, new ActionMessage(messageCode));
Now, when the page is rendered, I was hoping for the word "here" to be a link. Instead, the actual html text is displayed - <br>Click <a href=....
Any idea on what I'm doing wrong?
Thanks,
AB
 
reply
    Bookmark Topic Watch Topic
  • New Topic