Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

getHeader() in do view

 
Swetha Mohan
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4968
1
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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


 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic