help with launching a stand-alone exe from JSP JavaServer Page? or from javascript?

Posted on 2005-04-19
Last Modified: 2011-10-03

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 != "") {
      } else {
alert('INFO NOT ENTERED.\nYou must enter your full name before proceeding.        ')

LAUNCH JSP PAGE *****************************
<form method="POST" name="Userinfo" action="http://webserv/web/CBT/mailer.jsp" onSubmit="sendUserInfo();

Question by:ramoore
    LVL 53

    Accepted Solution

    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..


    Author Comment

    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.

    Featured Post

    Gigs: Get Your Project Delivered by an Expert

    Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

    Join & Write a Comment

    Shoutout to Emily Plummer ( for giving me this article! She did most of it, I just finished it up and posted it for her :)    Introduction In a previous article (http://www.experts-exchang…
    Browsers only know CSS so your awesome SASS code needs to be translated into normal CSS. Here I'll try to explain what you should aim for in order to take full advantage of SASS.
    Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
    The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now