in portlet context include a jsp from the desktop context

Hi,

I developed a portlet, and in my jsp file I want to include a jsp file which is in my portal desktop (the file is in /etc/opt/SUNWps/desktop/..).

So I want to do something like:

<c:import url="file:///etc/opt/SUNWps/desktop/mydesktop/ PortletHeader.jsp" /> Of course this doesn't work because the jsp expressions are not executed, instead the jsp tags are just displayed in the browser.

but for including a jsp with <@include file> or <c:import> or <jsp:include>, the jsp must run in its context. So actually we should do something like <c:import url="some_path" context="some_context" >.

Now, I don't know what some_context is. To what context the portal desktop runs so the jsp file can be 'executed'?

Hope someone can give me some more information about this.

Greets,

Tim

[883 byte] By [timvissers] at [2007-11-25 21:24:21]
# 1
<quote>some_context <quote> ..will be the pageContextwhich is the implicit object for a JSP. or use config object to get this context and then use<jsp:include> or <@include file> rgds http://lokeshpant.blogspot.com
savagescreen at 2007-7-4 23:53:19 > top of Java-index,Web & Directory Servers,Portal Servers...