• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

duplicate Action Messages

 
Srilakshmi Vara
Ranch Hand
Posts: 169
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I had the following in my jsp but irrespective of id the same message is displaying twise can somebody help me please...
Its going through two messages even only second message is not null


<html:messages id="CodeTypeDeleteError" message="true">
<% out.println("in first message"); %>
<li><bean:write name="CodeTypeDeleteError"/>
</html:messages>
<html:messages id="BLCodeTypeDelete" message="true">
<% out.println("in second message"); %>
<li><bean:write name="BLCodeTypeDelete"/>
</html:messages>

Thanks
Srilakshmi
 
Marc Peabody
pie sneak
Sheriff
Posts: 4727
Mac Ruby VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Both will print out all messages because the html:messages tags do not specify a property attribute.
 
Srilakshmi Vara
Ranch Hand
Posts: 169
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Marc i fixed it.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic