Title: The best way to get the context path

hi:

    Thanks a lot for your replies. I tried all you said, but it does not work for me.  It is not a wrong url issue.  The url of my image files are something like "localhost:8080/myapp/images/image.gif".  I think it was right.  However, Orion can not find image under myapp for me, although it can find jsp files under myapp.  I do not understand why.  Meanwhile, I set up my controller servlet and some other sevlets in web.xml, and i can find them under myapp.  So the question is, how can I map my image files under myapp.  right now, i can place the image files under orion/default-web-app and use some ../ to find it.  However, I would like to put the image files in the .ear file, and it will be better if I can map them under myapp.

    Thanks all that your solutions.

****************************************************
Tom  Guan  (Shaohua)
856-857-1324 X 2525
Senior Java Developer
NFI Interactive Logistics
<<...>>

Reply via email to