The moose likes Portals and Portlets and the fly likes getHeader() in do view Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Portals and Portlets
Reply Bookmark "getHeader() in do view" Watch "getHeader() in do view" New topic
Author

getHeader() in do view

Swetha Mohan
Greenhorn

Joined: Dec 23, 2005
Posts: 15
Hi friends

I am developing a simple portlet . I want to access an object set it into the header in the doView() method of the portlet. The RenderRequest used in doView() method doest not have a getHeader() method, so is there any way I can get the object set into the header in the doView() method?

Thanks in advance

Swetha
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper

Joined: Aug 26, 2006
Posts: 4962

Try the getProperty method.

I have a tutorial that grabs all of the header methods, along with the code used in the example right here:

Getting Headers From a JSR168 Portlet

Enjoy!

-Cameron McKenzie




Author of Hibernate Made Easy, What is WebSphere???, JSF 2.0 Made Easy and the SCJA Certification Guides
 
 
subject: getHeader() in do view
 
Threads others viewed
Set the window state to maximed by default
setHeader
Can I invoke portlet doview() in JSF pagecode?
how to call servlet class from an action class?
Launching flash in a portlet
IntelliJ Java IDE