Hi,
consider the following
java script function written in a
jsp file using
struts framework.
function doDone()
{
var thisForm = document.forms[0];
thisForm.action = '/find.sn?dispatchMethod=find';
thisForm.submit();
}
if i change it with as follows
function doDone()
{
var outUrl;
outUrl = '/find.sn?dispatchMethod=find';
window.location.replace(outUrl);
}
why the latter one not result in submission of values of corresponding fields whose match is there in form bean of that action? please clarify.