you've got two different action values but using the same elements to get it there. Don't think you can do that! Probably need to set some conditional in there to make
document.formMain.action = '../..' + actionPath + '/' + link + '?uniqeId='+uniqeId + '&ref=' + refName; one time and document.formMain.action = '../../PrintOut/Polling/Polling.do?uniqeId='+uniqeId + '&ref=' + refName; the 2nd time. -----Original Message----- From: Prafulla Nawale [mailto:[EMAIL PROTECTED] Sent: Friday, July 28, 2006 8:05 AM To: users@tomcat.apache.org Subject: Problem while submiting the page Hi, I am facing one problem on submit of jsp. I think its most probably an issue related to javascript. Can you please help me in figuring out it. There is a button on the screen, on click of that button i invoke the javascript function and in that function i submit the form two times, to two different actions. So what happens mostly in this case is only the second action is executed. I can see the log corresponding to second action only. Can anyone please help me in solving this. the code snippet in js is like this var win = window.open("", "checklist", features); document.formMain.target = "checklist"; document.formMain.action = '../..' + actionPath + '/' + link + '?uniqeId='+uniqeId + '&ref=' + refName; document.formMain.submit(); document.formMain.target = "checklist"; document.formMain.action = '../../PrintOut/Polling/Polling.do?uniqeId='+uniqeId + '&ref=' + refName; document.formMain.submit(); --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]