ramoore
asked on
help with launching a stand-alone exe from JSP JavaServer Page? or from javascript?
Hi,
I have a link on a web page that when clicked, a window pops up allowing the user to fill in a couple of fields. After the user submits the form, it launches a JSP page that incorporates javamail to send me the information s/he entered in the form, then the popup is closed.
My situation... I have a stand-alone .exe program (macromedia movie) that I also want to fire off after the Submit button is clicked. I am unsure how to write the code to make this happen and where to put it. i.e., Should the code be within my JSP page? Or within my javascript from my web page? Any help would be appreciated. A portion of my code is below.. Thanks!
HTML PAGE CODE ******************
<script language="JavaScript" type="text/javascript">
function sendUserInfo() {
if (document.Username.request or.value != "") {
Userinfo.submit();
window.close();
} else {
alert('INFO NOT ENTERED.\nYou must enter your full name before proceeding. ')
}
}
</script>
LAUNCH JSP PAGE ************************** ***
<form method="POST" name="Userinfo" action="http://webserv/web/CBT/mailer.jsp" onSubmit="sendUserInfo();
I have a link on a web page that when clicked, a window pops up allowing the user to fill in a couple of fields. After the user submits the form, it launches a JSP page that incorporates javamail to send me the information s/he entered in the form, then the popup is closed.
My situation... I have a stand-alone .exe program (macromedia movie) that I also want to fire off after the Submit button is clicked. I am unsure how to write the code to make this happen and where to put it. i.e., Should the code be within my JSP page? Or within my javascript from my web page? Any help would be appreciated. A portion of my code is below.. Thanks!
HTML PAGE CODE ******************
<script language="JavaScript" type="text/javascript">
function sendUserInfo() {
if (document.Username.request
Userinfo.submit();
window.close();
} else {
alert('INFO NOT ENTERED.\nYou must enter your full name before proceeding. ')
}
}
</script>
LAUNCH JSP PAGE **************************
<form method="POST" name="Userinfo" action="http://webserv/web/CBT/mailer.jsp" onSubmit="sendUserInfo();
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER