File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 Storm Applied this week in the Other Open Source APIs forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "html in bean message" Watch "html in bean message" New topic

html in bean message

Alkesh Badshah

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>
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?
I agree. Here's the link:
subject: html in bean message