Wrox Programmer Forums
|
ASP Forms As of Oct 5, 2005, this forum is now locked. Please use "Classic ASP beginner" at http://p2p.wrox.com/forum.asp?FORUM_ID=54 or "Classic ASP Professional" http://p2p.wrox.com/forum.asp?FORUM_ID=56 instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP Forms section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 25th, 2005, 02:01 PM
Registered User
 
Join Date: May 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Redirecting to Servlet from ASP

I am not familier with ASP but for my application, when user submits the data in an ASP page, it should go to a servlet. My example code is:

Mytest.asp (here user submits the data)
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head><title>Asking for information</title></head>
<body>
<form method="post" action="form_response1.asp" name="processData" onSubmit="return ValidateAndCreateInstanceName( );" >
<input type="hidden" name="command" value="createAndStartInstance">
<input type="hidden" name="templateName" value="JdrProcess4">
<input type="hidden" name="instanceName">
<table width="100%" align="left">
  <tr>
    <td width="226" class="label">*Author</td>
    <td width="180"> <input type="text" name="author" size="30"></td>
    <td width="152" class="label">*Job ID</td>
    <td width="181"><input type="text" name="instanceName" size="30"></td>
  </tr>
 </table>
<p>
  <input name="Submit Request" type="submit" value="Submit">

 <input name="clear" type="reset" value="Clear"></form>
  </p>
  <br>
  <br>
</form>
</body>
</html>

From form_response1.asp(below)I want to redirect the data to servlet.

<html>
<head><title>Responding to a form</title></head>
<body>
<%
Response.Redirect "http://10.14.15.57:9080/MQWFClient/servlet/Main"
%>
</body>
</html>

But it is showing error. Looks like it is not taking the data variables.

Any help?







Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with HTTP Headers in servlet vs ASP javajed Servlets 3 November 15th, 2011 03:47 AM
calling a java servlet from a asp.net page dub_beat ASP.NET 2.0 Basics 0 April 2nd, 2007 08:31 PM
refreshing an asp page while redirecting netfresher Classic ASP Basics 0 June 14th, 2006 07:34 AM
Redirecting to ASP engine on server chrscote Javascript 1 April 5th, 2006 01:08 AM
Redirecting to ASPX from ASP gurevle ASP.NET 1.0 and 1.1 Basics 3 July 16th, 2003 10:19 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.