This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets 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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: display html message on multiple form same action
 
Similar Threads
Display ActionMessage in JSP using fmt:message
html:messages
messagesPresent problem for displaying actionMessage
Re, Handling Error using ActionMessages
Error Message Not Displaying on JSP(URGENT)