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
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
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
}
}
Hi George,
Thanks for your response. I will see form-plug-in as per your
suggestion. But I doubt whether I would be able to interact with
Struts form using that.
Thanks,
Bhavin
On Nov 18, 7:15 pm, George <[EMAIL PROTECTED]> wrote:
> I'll try to answer.
> I do not know what 'struts' is. but
Hi Youssef,
I have constraint to use struts 1. "action" attribute is mandatory
with tag. I can not avoid it. I think, struts 1 has
constraint to work with Ajax as per their framework specification and
that would be the reason Struts 2 has lots of changes... I would
appreciate if you can point m
Hi Bhavin,
Why you are defining "/saveTemplate.htm?dispatch=save" in the action
parameter of your form whereas you have already the saveData action defined
in the click handler? Would you please delete the
"action="/saveTemplate.htm?dispatch=save"" from your JSP page and let only
the click handle
I'll try to answer.
I do not know what 'struts' is. but you have made major mistake in
your wishes.
AJAX submit the data to the server and gets server's response.
It's your responsibility to collect data for AJAX call and parse out
server's response.
So you correctly put return false to prev
7 matches
Mail list logo