?
Solved

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

Posted on 2005-04-19
2
Medium Priority
?
196 Views
Last Modified: 2011-10-03
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
Comment
Question by:ramoore
2 Comments
 
LVL 53

Accepted Solution

by:
COBOLdinosaur earned 375 total points
ID: 13816181
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
 

Author Comment

by:ramoore
ID: 13828315
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

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction Since I wrote the original article about Handling Date and Time in PHP and MySQL several years ago, it seemed like now was a good time to update it for object-oriented PHP.  This article does that, replacing as much as possible the pr…
Styling your websites can become very complex. Here I'll show how SASS can help you better organize, maintain and reuse your CSS code.
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
Suggested Courses

609 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