what is the initial path of the servlet?
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   zhebin_cong
Posted On:   Thursday, February 14, 2002 06:54 AM

hello


i wrote a servlet which print a gif picture that is under the "c:cartimages",if i specify the absolute path,it works well,but i want to use the relative path,i don't know the initial path(or base path) of the servlet,"%tomcathome%/bin" or "%tomcathome%/webapps"?who can tell me.if i specify "../../cart/images/xx.gif",it don't work!why?


thank you!

Re: what is the initial path of the servlet?

Posted By:   Mittal_Bhiogade  
Posted On:   Thursday, February 14, 2002 08:12 PM

u must be having a folder inside webapps say xyz create a folder images under it..then u can put all images within that folder u can access it as follows../xyz/images/someimage.gif
Hope this works
About | Sitemap | Contact