0

How do I exchange data from page to page?
for example:
on the 1st page I voted for 1 person, when I click submit it will go to the 2nd page that will let you see the output of the vote?
I can't seem to do it, as I don't know how to do i. Well anyway thanks in advance.

2
Contributors
3
Replies
4
Views
7 Years
Discussion Span
Last Post by peter_budo
0

1st page form where you check/select checkbox or radio button and submit to server. On server side, servlet, you increment vote count for selected person, retrieve all data, put it in session and forward it to second page. On second page you retrieve session and populate view. All in all it is very similar to the mVC2 tutorial on top of JSP section...

0

What if I used only one computer doesn't have any database, or server just pure coding programming?

0

You need server/container to run JSP. You can go without database, but I wouldn't do it without servlets. JSP pages would just become too messy

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.