If you place absolute path to the images (e.g urls that start with /) you
shouldn't have any problem either way.
The problem I've encountered is that since the JSP page compile ass the
<BASE...> tag to the output I have a problem embedding one JSP in another if
they are located on differend directories.
lee
Lee Elenbaas
RTS Israel
[EMAIL PROTECTED]
[EMAIL PROTECTED]
Work: (972) 2 5810748 ext: 207
Fax: (972) 2 5815507
------- Life building in 2 easy steps --------------
- First design the best structure you can.
- Then implement it as simple as you can.
That's the best way to complicate life!
-----Original Message-----
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Sreekumar Pillai
Sent: Monday, March 20, 2000 5:55 PM
To: [EMAIL PROTECTED]
Subject: Model 2 Path Issues
I am using Model 2 architecture for a project. This is the scenario.
1. All my jsp files are in <root>/cmerch/jsp.
2. All my servlets are in <root>/cmerch/servlets.
3. in the webserver (IPlanet), /cm is mapped to /cmerch/servlets.
The problem :-
I use /cm/testServlet1 to invoke testServlet1 from a jsp page. From the
servlet, I forward to a jsp page using the path /cmerch/jsp/jsppage1.jsp.
The problem is with the location of the image files in the jsp files. I
always have to specify the image file directory with respect to the root
directory if I need to invoke the page from the servlet. I want to reuse the
same page (jsppage1) in another project - where there are no servlets, only
JSPs. In this case, the location of the image files need to be relative to
JSP page.
Any suggestions? Is it a webserver problem? I am using IPlanet, JSP 0.92.
jsppage1.jsp
--------
format1 : "<img src=images/bigimage.gif";
format2 : "<img src=/cmerch/jsp/images/bigimage.gif";
Project 1 :-
Only jsps are used. I have to use format1 to make it work.
Project 2 :-
jsps+servlets are used. I have to use format2 to make it work.
______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets