Results 1 to 2 of 2
  1. #1
    valery is offline Member
    Join Date
    Jul 2007
    Posts
    32
    Rep Power
    0

    Default How to retrieve data from servlet

    I want to retrieve the web form data which contains a picture.
    how can I retrieve all the data from servlet?
    thanks in advance

  2. #2
    fred is offline Member
    Join Date
    Jul 2007
    Posts
    41
    Rep Power
    0

    Default

    you can use the request.getParameter("") in your servlet

    for example
    Jsp:
    Java Code:
    <input type="text" name="searchstring" value="java">
    servlet:
    Java Code:
    String searchString = req.getParameter("searchstring");

Similar Threads

  1. get data from servlet to html
    By lema in forum Java Servlet
    Replies: 7
    Last Post: 05-22-2008, 05:00 PM
  2. Save data from Excel sheet to servlet
    By chandu.v in forum Java Servlet
    Replies: 2
    Last Post: 04-10-2008, 02:51 PM
  3. get data from html to servlet
    By lema in forum Java Servlet
    Replies: 66
    Last Post: 04-09-2008, 03:43 PM
  4. Replies: 1
    Last Post: 01-28-2008, 11:49 AM
  5. how to retrieve the width of the column
    By katie in forum New To Java
    Replies: 1
    Last Post: 08-06-2007, 11:56 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
  •