File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes AJAX saving in struts2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "AJAX saving in struts2" Watch "AJAX saving in struts2" New topic

AJAX saving in struts2

Rahul Solanki

Joined: Aug 02, 2011
Posts: 4
I am using Struts2 and ajax to save code.

<action name="saveData" class="dataAction" method="saveComment">
<result name="success">mycomment.jsp</result>

Here the page gets reloaded which should not happen in ajax. I am new to struts2 and ajax please let me know if I am missing something or passing some wrong parameter in struts.xml.

I agree. Here's the link:
subject: AJAX saving in struts2
It's not a secret anymore!