• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 199
  • Last Modified:

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();

0
ramoore
Asked:
ramoore
1 Solution
 
COBOLdinosaurCommented:
When the user submits the form, the browser is waitning for a response page, so just sent the movie back as the response to the form..

Cd&
0
 
ramooreAuthor Commented:
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.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now