You're trying to control which pages they see when?
Maybe some state logic. Put a flag in the user' session. If the flag is true, show them page 1, if it's false, show them page 2. Figure out which condition to change the flag on.
Not sure if this is what you're asking. Remember, you should allow the portal to decide which pages to render as much as possible. That's the mind shift you must make when you move to portal. Trying to control pages in the portal is a difficult matter - thus the creation of things like Struts Portlets and JSF portlets.
Joined: Aug 16, 2006
Hi , My scenario is like ---> When you search something in google then it should display some no of results in first page , next page , previous page . Like this I want to develop JSP .
1. Have the pagination variable in property file, such that you can dynamically change the value. 2. create an class with Collection of search results, total results, currentPageNumber. 3. write a business logic by keeping track of on which page the user resides and pagination variable in property file.
This solution is universal in application, can be used in all portal environments.