• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

html in bean message

 
Alkesh Badshah
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic