File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Portals and Portlets and the fly likes Navigating pages with in a single Portlet Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Portals and Portlets
Reply Bookmark "Navigating pages with in a single Portlet" Watch "Navigating pages with in a single Portlet" New topic
Author

Navigating pages with in a single Portlet

John Lincoln
Ranch Hand

Joined: Feb 11, 2003
Posts: 192
Hi,

I have single portlet which has five pages, which on a page in the portal.
This portlet which has 5 pages has "back" and "next" button.

How this can be done?

This is how i am thinking it would work


I will have 2 submit buttons, and when particular button click is clicked i would set one hidden value with onclick and collect them in processAction and control the navigation.

Just want to know if anyone has tried this

Thanks
Avishek Banerjee
Greenhorn

Joined: Jul 11, 2006
Posts: 17
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%
Avishek Banerjee
Greenhorn

Joined: Jul 11, 2006
Posts: 17
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).
 
 
subject: Navigating pages with in a single Portlet
 
Threads others viewed
Readonly fields...setting dynamically
Value from select element is null in request
problem with request forward
Keep the maximized/minimized state of portlet
Error 500 in servlet
IntelliJ Java IDE