Meaningless Drivel is fun!*
The moose likes JSP and the fly likes How to maintain state between  different pages in jsp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "How to maintain state between  different pages in jsp" Watch "How to maintain state between  different pages in jsp" New topic
Author

How to maintain state between different pages in jsp

vishwajeet bhalerao
Greenhorn

Joined: Sep 27, 2011
Posts: 4
Hiii
I am doing online examination project in jsp.In one page there is one question and 5 options.If i click on next next question come.
And if i click on previous button then previous question should come.If i go next or previous then previously selected radio button does not appear as selected.So,there is big problem while calculating result.So,please give me a reply.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60782
    
  65

To make a checkbox or radio button selected add the checked attribute to the element.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
vishwajeet bhalerao
Greenhorn

Joined: Sep 27, 2011
Posts: 4
can you give me a example?
Seetharaman Venkatasamy
Ranch Hand

Joined: Jan 28, 2008
Posts: 5575

vishwajeet bhalerao wrote:can you give me a example?

you can get a lot from google
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60782
    
  65

An example of a checked checkbox:
Rinkit Shah
Greenhorn

Joined: Aug 16, 2011
Posts: 26
Vishwajeet how are you using forward and back button functionalities can you show us. We are using history.back() for back button but it doesn't look ok with me

One more option we incorporated is reaattempt button but it would look nice if we can include forward button.

Waiting for your reply, Thanks.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to maintain state between different pages in jsp
 
Similar Threads
Switching between the frames
how to use "previous" "next" buttons in a JSP page
paging using javascript
regarding check boxes
how to give next and previous button functionality to retrieve next question from database.