| From | Sent On | Attachments |
|---|---|---|
| Ripalda-Marin, Miguel-Angel | Jun 30, 2000 2:39 am | |
| Wyn Easton | Jun 30, 2000 8:25 am | |
| Craig R. McClanahan | Jun 30, 2000 10:09 am | |
| Volker Turau | Jul 3, 2000 8:03 am | |
| Volker Turau | Jul 3, 2000 8:05 am | |
| Steve Weiss | Jul 6, 2000 10:27 am | |
| Volker Turau | Jul 7, 2000 12:20 am |
| Subject: | Re: Paths in webapps | |
|---|---|---|
| From: | Wyn Easton (wyn_...@yahoo.com) | |
| Date: | Jun 30, 2000 8:25:09 am | |
| List: | org.apache.tomcat.users | |
You need to add a context entry in your server.xml file for this to work. Here is a sample taken from my server.xml: <Context path="/examples" docBase="webapps/examples" debug="0" reloadable="true" > </Context>
This entry allows the JSP container to find the classes in webapps/examples/WEB-INF/classes for a URL like this: http://my-web-server/examples/myPage.jsp
I highly recommend getting the book called "Web Development with Java Server Pages". It explains many things besides what you are asking.
--- "Ripalda-Marin, Miguel-Angel" <mari...@elasa.siemens.es> wrote:
Hi,
got some problems with files that have to be read by my java classes used in my JSP pages... does anyone know where does start the base path for a web app? I want to reference my files from the classes (inside WEB-INF/classes/...) in the following way "/..../myFile", And I want to know where does that '/' start in the server directory tree...
Thanks in advance and regards...
Miguel Ángel Ripalda Marín Siemens Elasa S.A. T, I + D Sistemas Pol. Malpica, D-98 50016 Zaragoza, España * (34) 976 760 300 ext. 405 * (34) 976 760 346 * mari...@elasa.siemens.es
--------------------------------------------------------------------------
To unsubscribe, email: tomc...@jakarta.apache.org For additional commmands, email: tomc...@jakarta.apache.org
===== Wyn Easton wyn_...@yahoo.com
__________________________________________________ Do You Yahoo!? Get Yahoo! Mail - Free email you can access from anywhere! http://mail.yahoo.com/





