Hi all
I would like to have a portlet that contains a list of items displayed as
links. Then, when a user click on a link, the item's attributes are shown. My
problem is with the URL format to use when creating the link. I have tried many
variations but can't get the data to post back to my portlet class. I have seen
how the same result can be achieved with the submission of a form, but have not
seen anything on variables passed via the URL of a page. Here are some excerpts
from my code:
public void processAction(ActionRequest aRequest, ActionResponse aResponse)
throws PortletException, PortletSecurityException, IOException
| {
| String id = aRequest.getParameter("id");
| if(id == null)
| {
| id = "(null)";
| }
| System.out.println("The value of the id: " + id);
|
| aResponse.setRenderParameter("id", id);
| aResponse.setPortletMode(PortletMode.VIEW);
| }
and in the jsp:
<a href="Analysis?id=1234" target="_self">Item 1</a>
Analysis is the name of the portal that the portlet is part of. Is there anyone
that can help?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3942205#3942205
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3942205
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user