Rajat,

I hope you are using this textfield  in a form in your HTML page.

Use the getParameter('form-field-name') method in HttpServletRequest to get your form element's value.

 public void doGet(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException
    {
      String s=request.getParameter("name");
    }

Suresh

Rajat Bhattacharya wrote:

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.

 
 

Reply via email to