Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

AJAX saving in struts2

 
Rahul Solanki
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using Struts2 and ajax to save code.



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

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.

Thanks.
Rahul
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic