wood burning stoves 2.0*
The moose likes Struts and the fly likes html in bean message Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "html in bean message" Watch "html in bean message" New topic
Author

html in bean message

Alkesh Badshah
Greenhorn

Joined: Feb 27, 2004
Posts: 2
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: html in bean message
 
Similar Threads
Message Resources
html:messages ActionMessages Action
ActionMessage not iterating
Handling Messages (v1.2.9)
How can I have global and specific html:errors?