Does anyone know how to solve this problem?
I am forwarding to a jsp at the end of the each servlet. But once I get to the jsp, it seems that the relative links don't work. I need to put in the full path to get images to appear and to link with other jsp or html pages.
Here is what my directory structure looks like:
c:\webapp\ - all html and jsp files
c:\webapp\web-inf\classes\ - all java classes
Any ideas?
Dan
-
Servlet Forwarding (3 messages)
- Posted by: Dan Josephs
- Posted on: April 19 2001 10:01 EDT
Threaded Messages (3)
- Servlet Forwarding by Srini gams on April 19 2001 15:13 EDT
- Servlet Forwarding by Dan Josephs on April 19 2001 15:19 EDT
- Servlet Forwarding by majid abdel on April 23 2001 11:01 EDT
- Servlet Forwarding by Dan Josephs on April 19 2001 15:19 EDT
-
Servlet Forwarding[ Go to top ]
- Posted by: Srini gams
- Posted on: April 19 2001 15:13 EDT
- in response to Dan Josephs
Are you using web server along with Application server to serve static pages and images. -
Servlet Forwarding[ Go to top ]
- Posted by: Dan Josephs
- Posted on: April 19 2001 15:19 EDT
- in response to Srini gams
Yes, I'm using Tomcat for both -
Servlet Forwarding[ Go to top ]
- Posted by: majid abdel
- Posted on: April 23 2001 11:01 EDT
- in response to Dan Josephs
Hello, the solution for your problem is :
put :
<body>
<base href="http://localhost:8080/yourApplicationName/">
.......
<img src="./images/someImage.gif" >
Tell me if it works or not.
Good Luck
Abdelmajid