• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to pass parameters to URL in Portlets?

 
rajen prasad
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
I am implementing Pagination in JSP using JSR168 portlets . I want to know how to pass parameters to URL ???

The scenario is like this :

I have stored page id and page content as a key value pairs in Model . I am implementing this in JSP as if I click on particular page id link then corresponding content has to display on the same page like in Google.

Anybody can help me about how to pass parameters to URL???


Thanks in advance,
Rajendra T.
[ September 01, 2006: Message edited by: Bear Bibeault ]
 
Fabrice SZNAJDERMAN
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You must build a PortletURI object.
On it, you can call the method addParameter(...).

hope it will help you!

best regards
 
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper
Posts: 4968
1
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here's a kewl tutorial on Portlets, Portlet Forms, Portlet JSPs, and Linking back to the Portal. I'm not sure if you're old JetSpeed or JSR-168, but either way, the concepts are pretty much the same:

http://www.technicalfacilitation.com/get.php?link=portleturi


A big difference is PortletURI for Jetspeed, PortletURL for JSR-168

Maybe this code snipped will give you a few ideas:.

<%
PortletURL url = response.createActionURL();
url.setParameter("shift", "true");
%>



public void processAction...

if (request.getParameter("shift") != null) {

}
....


Good luck, dude. Happy Portal!
 
rajen prasad
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Kameron can you send me the code of JSP for passing parameters to URL .

Right now I am using JSR168 portlets and MVC framework for implementing this .
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic