File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes copy text from textbox in jsp and sending it over http post to a groovy page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "copy text from textbox in jsp and sending it over http post to a groovy page" Watch "copy text from textbox in jsp and sending it over http post to a groovy page" New topic
Author

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

Ajit Sethi
Greenhorn

Joined: Sep 17, 2012
Posts: 5
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

Joined: Jan 10, 2002
Posts: 60059
    
  65

Is the groovy page in the same web app?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Ajit Sethi
Greenhorn

Joined: Sep 17, 2012
Posts: 5
No the Groovy page is in other project
jatan bhavsar
Ranch Hand

Joined: Jul 23, 2008
Posts: 296

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
 
subject: copy text from textbox in jsp and sending it over http post to a groovy page
 
Similar Threads
How to make the server stop the page for evaluation
Firefox doesnt find my File : Beer Selection Problem
senRedirect how to diferntiate in the different jsp file?
problem with jsp for reset() method
Not able to set attribute in JSP