• Post Reply Bookmark Topic Watch Topic
  • New Topic

AJAX saving in struts2

Rahul Solanki
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!