jQuery Ajax call not forwarding to success action
Hello,
I am new to jQuery and Ajax. The problem that I am having, is that I am trying to make an ajax call to a struts action that makes a change to the database and upon "SUCCESS", have the control forwarded to another action that will redirect the user to another jsp and construct a page for the user. Everything seems to be working fine except the redirect part. The user is not redirected and only the HTML shows in the response. Any help is welcome and appreciated. I understand that my issue may be struts related. But I have been working with some of the programmers here and I everyone says that my struts actions are configured correctly. So I just wanted to be certain that jQuery and Ajax in the correct way. Here is the code that I have been working with.
$.ajax({
type: "POST",
url: /path/myStrutsAction.do,
success:function(data)
{
alert("Status has been changed. This message should not have been reached and you should have been forwarded by now.");
}
});