[jQuery] Re: jquery + struts action

2008-12-05 Thread Eric Martin
Marta - Remember, an Ajax request/response is a separate processes and does not affect the current page state. It happens "behind the scenes". If you took my example and looked to see what was in the response (resp), you would see that contains the results of jsp-listreports.do. If you want the

[jQuery] Re: jquery + struts action

2008-12-05 Thread Marta Figueiredo
I'm trying to call a struts action using ajax. The action is correctly called. The problem is that the action forward method is called but it is not executing. My action is defined as follow: parameter="/WEB-INF/reportmanagement/listreports.jsp" scope="request" type="weboncampus.action.repor

[jQuery] Re: jquery + struts action

2008-12-04 Thread Eric Martin
Marta - what exactly are you trying to do? By using an Ajax call, you are going to get a response that should be the output of the forwarded action. $.ajax({ url: '/listReports.do', type:'post', cache: false, dataType:'xml', success: function (resp) { // do something with resp } }