I have a question about how to reference an image in a JSP that is included
in a Portlet.  

 

I am including a JSP in my portlet using:

        PortletRequestDispatcher dispatcher =
getPortletContext().getRequestDispatcher("/menu.jsp");

        dispatcher.include(renderRequest, renderResponse);

 

I tried creating an images directory and referencing the image source using 

<img src="/images/logo.gif"/>

 

The portlet comes up in Jetspeed2 (Tomcat 5.0.28), but the image can't be
found.  I can see the image when I add the portlet application name in the
src path.  Do I need to do this for all URL's?  This seems like a pretty
important concept so maybe I am missing something.

 

Thanks for the help.

 

- Doug

Reply via email to