Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

logic:present & html:errors

 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there a possibility to print out only this part of my JSP if I added an error with key �sucheKunden�?
I tried it like below but it doesn�t work.
<logic resent name="org.apache.struts.action.ERROR" property="XXX" scope="request">
�blabla�
<html:errors property="XXX" />
�blabla�
</logic resent>
Thanks for good ideas
Andr�
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18094
48
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
logic:errors is designed to display a collection of messages created by the Form Bean. I'm unclear as to what you want to happen.
If you're trying to test for something and display a message, use logic resent + bean:message.
If you're trying to test for errors and display a message, the easiest way to do it is to take advantage of the error headers and footers keys in the error collection.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic