• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Values after Submit Button pressed

 
Gregg Bolinger
GenRocket Founder
Ranch Hand
Posts: 15302
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
Gregg Bolinger
GenRocket Founder
Ranch Hand
Posts: 15302
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13055
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 351
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic