File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes Values after Submit Button pressed Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Values after Submit Button pressed" Watch "Values after Submit Button pressed" New topic
Author

Values after Submit Button pressed

Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299
    
    6

Here is my code

How do I get those textfied values inside the servlet so I can include them in my queryStmt String?
Thanks
[ May 10, 2002: Message edited by: Gregg Bolinger ]

GenRocket - Experts at Building Test Data
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299
    
    6

Actually, this question was not answered Brian. I am now needing to learn how to recieve the information in the servlet. As far as request.getParameterNames() or whatever the method is I need to use in my Servlet to get those values I placed in the TextFields.
Thanks.
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12759
    
    5
You need to have a copy of the servlet API to be able to answer these questions yourself. Tomcat comes with Javadocs for the servlet and JSP APIS. You should also download the API specification in PDF form from java.sun.com.
Bill
Michael Pearson
Ranch Hand

Joined: Mar 11, 2001
Posts: 351
You cannot expect to figure out how to accomplish this task without at least downloading the Servlet API.
I'd also recommend you go through Sun's Servlet tutorial.
Sun Servlet Tutorial
You will have to understand how the request object is used to retrieve HTML form data.
You know the name of the fields you want to retrieve data from. Look up the method getParameter( java.lang.String ) and you'll be able to figure out how to do this.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Values after Submit Button pressed
 
Similar Threads
drop down list for servlet form
Simple PHP problem
Submit Methods pulling same data
Passing values through html
passing parameters from JSP to a Servlet