Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts Error Message

 
raj sekar
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
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 application.properties

error.changePwd=Click the link to change the password <a href\="http://localhost/app/changepwd.do> 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>
</c:forEach>

Any help is appreciated.

Thanks,
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try specifying escapeXml="false" inside your <cut /> tag.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic