Results 1 to 3 of 3
Like Tree1Likes
  • 1 Post By sharanyareddy

Thread: Retrieve from DB and display in JSP

  1. #1
    Join Date
    Aug 2013
    Posts
    3
    Rep Power
    0

    Default Retrieve from DB and display in JSP

    Need to retrieve the data from database table(say "details" table) and display it in a jsp page(say table.jsp).

    In table.jsp i have fields s.no,name,dob,sex,address...and from the "details" table i got to take all the data and display it in jsp to the respective fields..

    Thanks in advance!!

  2. #2
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    3,994
    Rep Power
    5

    Default Re: Retrieve from DB and display in JSP

    Thanks for what exactly? You're not asking a question, you're just dumping some requirements. What are you stuck at?
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

  3. #3
    sharanyareddy is offline Member
    Join Date
    Aug 2013
    Posts
    1
    Rep Power
    0

    Default Re: Retrieve from DB and display in JSP

    Hi, follow the below steps:

    In Servlet:
    1. Get all the details from table: details(s.no, name, dob, sex, address...) for particular record using JDBC concept.
    2. Store the details(which are retrieved from resultSet object) in collection object like ArrayList and add this to request object.
    In Jsp:
    1. Retrieve the arraylist using iterator concept and add these values to the corresponding fields.
    pradeepreddy232 likes this.

Similar Threads

  1. Replies: 3
    Last Post: 09-08-2012, 03:38 AM
  2. how retrieve and display image from folder
    By daisy in forum JavaServer Pages (JSP) and JSTL
    Replies: 1
    Last Post: 12-13-2011, 05:14 AM
  3. Replies: 1
    Last Post: 12-01-2010, 06:35 PM
  4. Replies: 1
    Last Post: 05-31-2010, 08:46 AM
  5. Replies: 8
    Last Post: 12-29-2008, 07:12 AM

Posting Permissions

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