• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Tim Cooke
Sheriffs:
  • Rob Spoor
  • Liutauras Vilda
  • paul wheaton
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown
  • Piet Souris
Bartenders:
  • Stephan van Hulst

Values after Submit Button pressed

 
Ranch Hand
Posts: 15304
6
Mac OS X IntelliJ IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Ranch Hand
Posts: 15304
6
Mac OS X IntelliJ IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 351
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Every snowflake is perfect and unique. And every snowflake contains a very tiny ad.
New web page for Paul's Rocket Mass Heaters movies
https://coderanch.com/t/785239/web-page-Paul-Rocket-Mass
reply
    Bookmark Topic Watch Topic
  • New Topic