WebSphere Portal Server - Re: Query parameters on actions (WPS 4.1)

This is Interesting: Free IT Magazines  
Home > Archive > WebSphere Portal Server > January 2004 > Re: Query parameters on actions (WPS 4.1)





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Re: Query parameters on actions (WPS 4.1)
rsoika

2004-01-19, 2:59 pm

hi,

you have to use the PortletAPI and the URI-Tags.
generate your Link in a way like that:

<a href="<portletAPI:createURI><portletAPI:URIAction name="myURI" /><portletAPI:URIParameter name="id" value="<%=yourKey%>"/></portletAPI:createURI>">

....
in your actionPerformed() Methode you can receife your Param with a code like this:

if(event.getActionString().equals("MyURI")) {
System.out.println("yourKey= "+(String)event.getRequest().getAttribute("yourKey"));



Ralph Soika
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com