This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes Struts and the fly likes S2: Ajax tags -- how to return a message to a specific DIV? 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 "S2: Ajax tags -- how to return a message to a specific DIV?" Watch "S2: Ajax tags -- how to return a message to a specific DIV?" New topic
Author

S2: Ajax tags -- how to return a message to a specific DIV?

Adrian Burlington
Ranch Hand

Joined: Jun 16, 2009
Posts: 75
Hi there,

I wonder if this is doable with S2:

JSP form:
this form has a button FINALIZE, if all goes well - the result SUCCESS should be seen in placeA on the page and if it fails the result FAILURE should be seen in placeB (a different place on the page);
the SUCCESS/FAILURE are just messages but they must be seen on different places on the page.
(note that the page is using AJAX tags)




So, say the end user clicks the finalize button and activates the finalize-action-method. How can I instruct in the action that for if all goes well - show the success message on DIV target_id_success,
and if something went wrong - show the FAILURE message on DIV: target_id_failure.



Thank you!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: S2: Ajax tags -- how to return a message to a specific DIV?
 
Similar Threads
Help with tabbed Panel
struts 2 tags question, certain jsp code not being executed
Struts2 redirect in div
How to use struts2 submit tag as button without submitting the form ?
Struts2 ajax theme - One form, two buttons.. two actions?