how to add back, print functions in a jsp page

Hi, I am currently designing a jsp pages.  I need to add two buttons in my page. One is a back button which will help me back to previous page, and one is print page which will print the current page. How to do that, thanks.
Who is Participating?
pablomoralesConnect With a Mentor Commented:
You need to use Javascript for that.

For printing:

<input type="button" value="Print this page" onClick="window.print()">

For the back button:

function goback() {

<input type="button" value="Back" onClick="goback()">
ly_uwoAuthor Commented:
excellent, it helps a lot, thank you!
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.