Bhim,
Ok, I understand the problem now. I'm sorry if I sent you down a wrong path
initially.
In the Portlet Spec, section 16.3.2 lists 3 request attributes that must be
provided by the portal environment when the PortletRequestDispatcher.include
method is used to include a servlet or JSP. The 3 attributes are
javax.portlet.config (the PortletConfig object), javax.portlet.request (the
RenderRequest) and javax.portlet.response (the RenderResponse). So it seems
that the 2 attributes you need are provided automatically by any JSR-168
compliant portal provided you are using the PortletRequestDispatcher to include
the JSP.
Just to test this with JBoss Portal, I wrote a portlet that includes a JSP.
Here is the entire JSP:
| <%
| Object req = pageContext.findAttribute("javax.portlet.request");
| Object resp = pageContext.findAttribute("javax.portlet.response");
| %>
| <p>Request: <%= req %></p>
| <p>Response: <%= resp %></p>
|
and here's the output I get:
| Request: [EMAIL PROTECTED]
| Response: [EMAIL PROTECTED]
|
So it appears to work correctly and you don't have to do anything. The
defineObjects tag is not necessary.
Regards,
Scott
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3937383#3937383
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3937383
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user