You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-user@portals.apache.org by André St-Gelais <An...@newittech.com> on 2007/10/02 14:36:24 UTC

Gif in a JSP page

Hi, does someone has done the following

 

PortletRequestDispatcher mPRDispatcher = this.getPortletContext().getRequestDispatcher("/html/mypage.jsp");

mPRDispatcher.include(mRenderRequest, mRrenderResponse);

 

in the doView of a portlet with the JSP page containing the reference to a GIF ?

 

<img src="/PortalNewIT/images/warning_icon.gif"></img>

 

If so, were you successfull? Because I have been trying to make this work

for a few hours without much success. The application cannot find the GIF

which is indeed is the place indicated.

 

If someone has an idea, please let me know.

 

Thanks in advance.

 

Regards.

 

André.

 


Re: Gif in a JSP page

Posted by Philip Mark Donaghy <pm...@apache.org>.
On 10/2/07, Vivek Kumar <fi...@gmail.com> wrote:
> Hi
>
> If PortalNew is your web context root then it should find the image.
> make sure that your app server is loading latest jsp
>

You should check the page source to see if it is being rendered.

>
> <img src="/PortalNewIT/images/warning_icon.gif"></img>
>
> On 10/2/07, André St-Gelais <An...@newittech.com> wrote:
> >
> > Hi, does someone has done the following
> >
> >
> >
> > PortletRequestDispatcher mPRDispatcher = this.getPortletContext
> > ().getRequestDispatcher("/html/mypage.jsp");
> >
> > mPRDispatcher.include(mRenderRequest, mRrenderResponse);
> >
> >
> >
> > in the doView of a portlet with the JSP page containing the reference to a
> > GIF ?
> >
> >
> >
> > <img src="/PortalNewIT/images/warning_icon.gif"></img>
> >
> >
> >
> > If so, were you successfull? Because I have been trying to make this work
> >
> > for a few hours without much success. The application cannot find the GIF
> >
> > which is indeed is the place indicated.
> >
> >
> >
> > If someone has an idea, please let me know.
> >
> >
> >
> > Thanks in advance.
> >
> >
> >
> > Regards.
> >
> >
> >
> > André.
> >
> >
> >
> >
>
>
> --
> Regards & thanks
> Vivek Kumar
>
> firevelocity@gmail.com
>


-- 
Philip Donaghy
Cushing Technologies
Portals.Apache.Org Project
Skype: philipmarkdonaghy
Office: +1 207 326 8959
Mobile: +1 914 582 9654

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org


Re: Gif in a JSP page

Posted by Vivek Kumar <fi...@gmail.com>.
Hi

If PortalNew is your web context root then it should find the image.
make sure that your app server is loading latest jsp


<img src="/PortalNewIT/images/warning_icon.gif"></img>

On 10/2/07, André St-Gelais <An...@newittech.com> wrote:
>
> Hi, does someone has done the following
>
>
>
> PortletRequestDispatcher mPRDispatcher = this.getPortletContext
> ().getRequestDispatcher("/html/mypage.jsp");
>
> mPRDispatcher.include(mRenderRequest, mRrenderResponse);
>
>
>
> in the doView of a portlet with the JSP page containing the reference to a
> GIF ?
>
>
>
> <img src="/PortalNewIT/images/warning_icon.gif"></img>
>
>
>
> If so, were you successfull? Because I have been trying to make this work
>
> for a few hours without much success. The application cannot find the GIF
>
> which is indeed is the place indicated.
>
>
>
> If someone has an idea, please let me know.
>
>
>
> Thanks in advance.
>
>
>
> Regards.
>
>
>
> André.
>
>
>
>


-- 
Regards & thanks
Vivek Kumar

firevelocity@gmail.com