wood burning stoves
The moose likes Struts and the fly likes JSF-portlet request response object in jsp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Make it so: Java DB Connections & Transactions this week in the JDBC forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "JSF-portlet request response object in jsp" Watch "JSF-portlet request response object in jsp" New topic

JSF-portlet request response object in jsp

Rashika Khanna

Joined: Aug 25, 2004
Posts: 13
Hi All,

I am trying to integrate my JSF application with portlets. The problem is in JSP I am trying to use request.getParameter(key) but its giving null. If I typecast it in PortletRequest, same problem exist. Same is the case in java files also, request object is not working.
Is there any way out to get the request-response parameters in JSF-Portlets jsp pages and java classes without using JSF UIComponents.

Thanks in advance,
Varun Khanna
Ranch Hand

Joined: May 30, 2002
Posts: 1400
I am not sure about how portlets works. But in java files, you cna get the request/response objects by using ExternalContext object.

You can get the reference of ExternalContext through "FacesContext" , the code must be something like :

Why do you need request object in a JSP page can you please explain?

- Varun
I agree. Here's the link: http://aspose.com/file-tools
subject: JSF-portlet request response object in jsp
It's not a secret anymore!