This will work. You better create a renderURL, because other than forwarding requests to JSP, this portlet would do no processing. In the doView() method you can create a if-else or switch hierarchy and depending on the flag forward the request to the respective JSP
Avishek<br />SCJP 5.0 - 90%
posted 11 years ago
Also, ensure that you set the flag value in the session and depending on the button click, keep manipulating it. I suggest make this flag a counter and the count may map to the page number (1-5).