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.

Recommended Answers

All 3 Replies

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...

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

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.