You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Ray Tayek <rt...@attbi.com> on 2003/03/03 02:24:01 UTC

Re: forward request to static html page loses path for included images?

At 05:02 AM 3/2/03 -0800, you wrote:
>hi, i am forwarding a request to a static html page that has some pictures 
>included using <IMG SRC="images/help1.jpeg" ...> and using 
>request.getRequestDispatcher("/help.html").forward(request,response);.
>
>the static html file file comes back sans images. but pointing a browser 
>to http://tayek.com:8080/feb/help.html works fine. seems like the path 
>that the static page inherits is hosed somehow. is there some way to set 
>that path? ,,,

this how is works apparently from looking at java servlet programming 2nd 
edition by jason hunter and william crawford pp 371-375. he suggests using 
sendRedirect() instead.

thanks

---
ray tayek http://tayek.com/ actively seeking mentoring or telecommuting work
vice chair orange county java users group http://www.ocjug.org/
hate spam? http://samspade.org/ssw/


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