File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Parameters

 
Vishakha Ahuja
Ranch Hand
Posts: 191
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can I pass parameters to servlet without using .xml file
I mean, can I use HTML form to collect user's info and pass it as parameter to servlet for displaying ?
 
Val Dra
Ranch Hand
Posts: 439
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes you can , you can do it though the HttpServletRequest object. It provides you with a method called getParameter("txtName") txtName is the name of a text field on the html form. If you are submiting multiple parameters like an array of checkboxes or radio buttons then use getParameterValues("fieldName") method
 
Madhav Lakkapragada
Ranch Hand
Posts: 5040
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Also, through Hidden fields on the HTML form.
and Cookies (though not on the Form fields)
regds.
- satya

[This message has been edited by Madhav Lakkapragada (edited April 25, 2001).]
 
Vishakha Ahuja
Ranch Hand
Posts: 191
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thankyou very much.
Regards,
Vishakha.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic