• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

how to pass parameters to URL in Portlets?

 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
author and cow tipper
Posts: 5009
1
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 .
reply
    Bookmark Topic Watch Topic
  • New Topic