File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

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 id="BLCodeTypeDelete" message="true">
<% out.println("in second message"); %>
<li><bean:write name="BLCodeTypeDelete"/>

Marc Peabody
pie sneak

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.
I agree. Here's the link:
subject: duplicate Action Messages
It's not a secret anymore!