The moose likes Portals and Portlets and the fly likes portlet:actionURL-please help Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Portals and Portlets
Reply Bookmark "portlet:actionURL-please help" Watch "portlet:actionURL-please help" New topic
Author

portlet:actionURL-please help

suryakul kumar
Greenhorn

Joined: Apr 16, 2007
Posts: 3
hI,
i am new to portlets.i have code that says action='<portlet:actionURL><portlet param name="simplecall"value="simplecall/>"</portlet:actionURL>

where does the form in which this code is present take me.where do i look to get the actual value of the URL?
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper

Joined: Aug 26, 2006
Posts: 4962

What does the actionURL do? It takes you to the action processing phase of the portlet. You're doing it with a custom tag in a JSP, but here's the same sort of thing all done in one portlet below:







Notice the lines of code:



That will print out the URL. The URL itself is pretty meaningless to you, as it's generated by the portal, but if you REALLY want to see it, you can.

The ActionURL triggers the action processing phase of a portlet, which is essentially the processAction method. This method is where session management should take place, and other tasks, like mode and state changes, can only happen in this stage. This stage occurs before the rendering phase that includes methods like doView or doEdit.

Here's a full, cbt, multimedia tutorial on the topic. You should totally take the time to look at it. The tutorial fully explains the action processing phase of the portlet.

Enjoy!

-Cameron McKenzie


Author of Hibernate Made Easy, What is WebSphere???, JSF 2.0 Made Easy and the SCJA Certification Guides
suryakul kumar
Greenhorn

Joined: Apr 16, 2007
Posts: 3
Thank you so much .please tell me what the folowing means
 
 
subject: portlet:actionURL-please help
 
Threads others viewed
pass parameter in url link
Problem in using portlet:param
fwd a page using button
Portlet action URL
liferay portlet - form parameters missing from request
IntelliJ Java IDE