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