File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes display html message on multiple form same action Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "display html message on multiple form same action" Watch "display html message on multiple form same action" New topic
Author

display html message on multiple form same action

Shilpa Tendulkar
Ranch Hand

Joined: Jul 29, 2001
Posts: 75
Hi all

I am having two diffrent forms with diffrent name and diffrent beans but ONE action. Problem is whenever I try to display error message it display on both forms regardless of which form is submitted.

for eg. I have form channels and form zones and channelsGroup action which handles both forms. whenever I submit either form, on validation failed, it displays the error message on both forms.

How can I stop this and display error message on the form which is submitted?
JSP is


This is the whole application structure I have. Can anyone help please?

Thanks
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

That's completely illegible--can you not see that what you tried to do with fonts/etc. didn't work?!

You'd need to check for a specific property/set of properties--there's only one set of messages per page.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: display html message on multiple form same action
 
Similar Threads
Display ActionMessage in JSP using fmt:message
Re, Handling Error using ActionMessages
html:messages
messagesPresent problem for displaying actionMessage
Error Message Not Displaying on JSP(URGENT)