wood burning stoves*
The moose likes Struts and the fly likes duplicate Action Messages Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "duplicate Action Messages" Watch "duplicate Action Messages" New topic
Author

duplicate Action Messages

Srilakshmi Vara
Ranch Hand

Joined: Jul 21, 2004
Posts: 169
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

Joined: Feb 05, 2003
Posts: 4727

Both will print out all messages because the html:messages tags do not specify a property attribute.


A good workman is known by his tools.
Srilakshmi Vara
Ranch Hand

Joined: Jul 21, 2004
Posts: 169
Thanks Marc i fixed it.
 
wood burning stoves
 
subject: duplicate Action Messages