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