Skip to Content
0
Former Member
Jun 14, 2006 at 02:54 PM

componentRequest object not accesible in JSP file

63 Views

Hello,

I wrote a little class that inherits from AbstractPortalComponent. The doContent()-method looks like this:

IResource jspResource = request.getResource(IResource.JSP, "jsp/output.jsp");
response.include(request, jspResource);

In the JSP file "output.jsp", I'd like to use the componentRequest object, but I always get an error, when displaying the page. Therefore I think, there is no "componentRequest" object. The JSP file looks like this:

<%= componentRequest.getValue("testkey") %>

Do you have any suggestions?

Kind regards, Lars