Results 1 to 2 of 2
  1. #1
    Sudha is offline Member
    Join Date
    Jan 2008
    Rep Power

    Default Regarding Servlet

    Hi I have a JSP page with few input boxes.. When I click any of the input box it should call the servlet connect to database, query the table and display output in output JSP file..
    I want to use the same servlet to retrieve the parameter of the clicked input box..
    Is there any way to retrieve the queryString, and get the name of the text box..

  2. #2
    JAdmin is offline Member
    Join Date
    Jan 2008
    Rep Power


    We urge you to learn more about the servlet technology and how the request parameters are handled. A good place to start is
    Java Servlet Technology

    Use request.getParameter("control name"); to get the value and use request.getParameterNames() to get the form elements.
    Sincerely, Your friends at

Similar Threads

  1. Servlet vs JSP
    By javaplus in forum Java Servlet
    Replies: 5
    Last Post: 06-26-2008, 10:19 PM
  2. my first servlet
    By sireesha in forum Java Servlet
    Replies: 3
    Last Post: 04-09-2008, 03:11 PM
  3. JSP or Servlet
    By ravian in forum JavaServer Pages (JSP) and JSTL
    Replies: 4
    Last Post: 12-03-2007, 03:00 PM
  4. How to mix servlet & JSP
    By Swamipsn in forum Java Servlet
    Replies: 1
    Last Post: 08-08-2007, 12:57 AM
  5. Replies: 1
    Last Post: 08-07-2007, 03:47 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts