File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes Struts Error Message Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts Error Message" Watch "Struts Error Message" New topic

Struts Error Message

raj sekar
Ranch Hand

Joined: Mar 11, 2002
Posts: 79
I want to display a link in the Struts error message.
and tried the below code but it didn't parse the html tag.

In the

error.changePwd=Click the link to change the password <a href\="http://localhost/app/> Password Change </a>

Login page:

<c:forEach var="err" items="${errors}">
<tr><td colspan="2"><font class="error"><c ut value="${err}"/></font></td></tr>

Any help is appreciated.


You do what you love, love what you do and always deliver more than you promise
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
Try specifying escapeXml="false" inside your <cut /> tag.

Consultant, Sima Solutions
I agree. Here's the link:
subject: Struts Error Message
jQuery in Action, 3rd edition