This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
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


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts Error Message" Watch "Struts Error Message" New topic
Author

Struts Error Message

raj sekar
Ranch Hand

Joined: Mar 11, 2002
Posts: 79
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,


Thanks,
RajN - (SCJP,SCWCD,SCBCD,SCSA,IBM XML 142 )
http://www.geocities.com/n_rajasekar/index.html
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.


Merrill
Consultant, Sima Solutions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Struts Error Message