• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

copy text from textbox in jsp and sending it over http post to a groovy page

 
Ajit Sethi
Greenhorn
Posts: 5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a login page (userDetail.jsp) and i wish to copy the text entered by the user in the textbox and copy that to some variable
and send it over HTTP post to a groovy page(userDetails.gsp) with the same fields(i.e FirstName,LastName etc)
and paste those values copied from .jsp page to grrovy page fields.Hope i was able to make it clear
*cannot use DataBase to store the values

<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Enter your Details</title>
</head>
<body>
<form method="POST" action="loginaction.jsp">
<p><font color="#800000" size="5">First Name:</font><input type="text" name="fname" size="22"></p>
<p><font color="#800000" size="5">Last Name:</font><input type="text" name="lname" size="20"></p>
<p><font color="#800000" size="5">City:</font><input type="text" name="city" size="20"></p>
<p><font color="#800000" size="5">policy Number:</font><input type="text" name="pnum" size="20"></p>

<p><input type="submit" value="Submit" name="submit" onclick="save()"></p>

</form>
</body>
</html>
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64205
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is the groovy page in the same web app?
 
Ajit Sethi
Greenhorn
Posts: 5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No the Groovy page is in other project
 
jatan bhavsar
Ranch Hand
Posts: 297
Eclipse IDE Java
  • 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ajit,

Refer its good discussion about how to send parameters between two different jsp web application.

I am not aware how you will retrieve those values in gsp but it will give you idea to pass parameters from jsp web application to another jsp web application.

Regards
jatan
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic