• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to pass parameters between portlets?

 
Subramanian N V
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
By entering some details in a portlet and clicking submit, the entered parameters should be passed to the another portlet. Can you please any one help on htis?
[ March 06, 2008: Message edited by: Subramanian N V ]
 
Dharmesh Chheda
Ranch Hand
Posts: 204
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you can generate a url using the wps:urlGeneration tag

here is a link that might be of good help

http://publib.boulder.ibm.com/infocenter/wpdoc/v510/index.jsp?topic=/com.ibm.wp.ent.doc/wps/dgn_link.html
 
Manoj Raghuwanshi
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
please tell me how to do this in JSR168 portlets.
 
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
You're going to find this a challenge in JSR168.

Portlets in a common war can share data in the PortletSession through the APPLICATION scope, but I'm not sure if that solves your problem.

I might ask why it's a second portlet that needs the first portlet's data? Could you change the design of the app to be more portal friendly? What about having a single portlet accept the data, but switch on which JSP it might send the data to?

Working with the portal requires a mind shift. You have to start thinking like a portal developer, and not a Servlet/JSP developer. Portal requires a mind shift.

Maybe you can describe what you're trying to accomplish, as opposed to how you are trying to do it? Maybe we can provide some insight.

Good luck!

-Cameron McKenzie
 
Jonas X. Yuan
author
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

As mentioned early, there is a sample way to pass parameters among portlets:

by page's parameters.

Here is a real example:
[ June 14, 2008: Message edited by: Jonas X. Yuan ]
 
Anant Jagania
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Jonas,

Can you please tell me how to pass the page's parameters.

Thanks,
Anant
 
Anant Jagania
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Cameron,

I am working on a portal server. But very confused about how to set the requirement with it.

I would like to know what mind shift is required to develop portal application.

My requirements are somthing like.. i have two different pages having same portlets but portlets needs to show different data.

Please advice me.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic