Link to home
Start Free TrialLog in
Avatar of ramoore
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.requestor.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();

ASKER CERTIFIED SOLUTION
Avatar of COBOLdinosaur
COBOLdinosaur
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ramoore
ramoore

ASKER

Ah, now I see what you are talking about (similar to what is done in CGI). I'm going to work with my code to make it happen. The points are your's. Thanks for responding.  -R.