A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
JavaRanch
»
Java Forums
»
Frameworks
»
Struts
Author
AJAX saving in struts2
Rahul Solanki
Greenhorn
Joined: Aug 02, 2011
Posts: 4
posted
Nov 03, 2011 02:31:44
0
I am using Struts2 and ajax to save code.
<s:form action="saveData"> <textarea id="LineComments" name="LineComments"></textarea> <s:submit type="button" theme="ajax" label="Update Content"/> </s:form>
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
I agree. Here's the link:
http://zeroturnaround.com/jrebel/download
subject: AJAX saving in struts2
Similar Threads
Struts2 struck with a issue of 404
Struts2 - A Query about Redirect
Form Validation using xml in struts2
Ajax using dojo plugins in struts2
struts2 workflow question
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter