Results 1 to 4 of 4
  1. #1
    Vijay@007 is offline Member
    Join Date
    Mar 2011
    Posts
    2
    Rep Power
    0

    Default displaying questions one by one

    I have 10 questions in ArrayList. I want to display one question at a time to user, based on his answer I want to show him next question. Please help in finalizing the logic. If any body can help

  2. #2
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    12,086
    Rep Power
    20

    Default

    What's your architecture?
    Servlet with JSP?
    Do you have any ideas yet?

  3. #3
    Vijay@007 is offline Member
    Join Date
    Mar 2011
    Posts
    2
    Rep Power
    0

    Default Regarding display of questions one by one

    Yes I am using JSP And Servlets. I have all the questions in Array list. NOw I want to display it to user one by one and once the user selects some option , I need to do some processing on the selected anwer and then display second question to user.

  4. #4
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    12,086
    Rep Power
    20

    Default

    So.
    What do you think needs to be done?

    You have your list...you want to go through it one at a time.
    That implies storing the index of the current question.

Similar Threads

  1. questions
    By amaliutz in forum New To Java
    Replies: 13
    Last Post: 02-02-2011, 06:13 PM
  2. questions regarding XML
    By Sparky in forum New To Java
    Replies: 4
    Last Post: 02-01-2011, 07:10 PM
  3. Need help with some questions
    By El_Davidos in forum New To Java
    Replies: 5
    Last Post: 11-23-2010, 10:13 AM
  4. Questions About JSP?
    By mtz1406 in forum JavaServer Pages (JSP) and JSTL
    Replies: 2
    Last Post: 08-19-2008, 07:56 PM
  5. Just a Few Questions
    By pringle in forum New To Java
    Replies: 21
    Last Post: 01-09-2008, 06:21 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
  •