File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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
ActionMessage not iterating
How can I have global and specific html:errors?
html:messages ActionMessages Action
Handling Messages (v1.2.9)
Message Resources