use getParameter(paramName) to retrieve the value  for example:

public void doGet(HttpServletRequest req, HttpServletResponse res){

    String selectedItem = "My Text Field";
    String selected = req.getParameter(selectedItem);


......

}




-----Original Message-----
From: Rajat Bhattacharya [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 11, 2000 5:07 PM
To: [EMAIL PROTECTED]
Subject: how to access HTML variable from a servlet


How do i access a HTML variable in Servlets.
For Example:
If i have a text field in HTML and I have access the value of the textfield
and perform some validation.

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to