Win a copy of Penetration Testing Basics this week in the Security forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

Adrian Burlington
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic