Not sure about windows, so I'll use what i know in solaris. In solaris you can do the following (using your file paths):
httpd.conf (apache) Alias /test "c:\cisc\site" JkMount /test/*.jsp ajp13 JkMount /test/servlet/* ajp13 server.xml (tomcat) <Context path="/test" docBase="c:\cisc\site" debug="1" reloadable="true"> </Context> edit your tomcat's web.xml to either enable the invoker servlet (not recommended) or specifically specify the mapping in your web- application's web.xml then in c:\cisc\site you can create a WEB-INF folder and stick in your classes, libs etc. you can then create a sample web.xml here <?xml version="1.0" encoding="ISO-8859-1"?> <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN " "http://java.sun.com/j2ee/dtds/web-app_2.2.dtd"> <web-app> <servlet> <servlet-name>Test</servlet-name> <servlet-class>my.class.test</servlet-class> </servlet> [...more...] </web-app> and so you'll end up with c:\cisc\site\WEB-INF\classes\my\class\test.class which you should be able to reference in a jsp page that you save in c:\cisc\site\test.jsp test.jsp <%@page import="my.class.*"%> <% String str="me"; %><h1>Hello <%=me%></h1> and you should be able to create a jsp page (assuming you got apache to talk to tomcat directly--if not consult John Turner's excellent tutorial--pls search archives) http://localhost/test/mytest.jsp HTH Jan-Michael (might be some syntax errors ^_^ ..but hopefully you get the picture) ----- Original Message ----- From: "Nicholas J Campbell" <[EMAIL PROTECTED]> Date: Tuesday, February 4, 2003 7:53 pm Subject: RE: JSP's in other directories > Whoops...i actually meant the webapps folder... > Currently this is where I can access from the web > C:\Program Files\Apache Group\Tomcat 4.1\webapps\examples > That?s it > I have my site at c:\cisc\site > And I have a jsp page tmp.jsp in the c:\cisc\site folder that I want > access to because I am running apache 2 and it currently loads the > index.html file from there but I want to change it to a jsp page > at some > point and I have to be able to access it > > Is that a better explaination? > > -Nicholas Campbell > > "In a world without walls and barriers, what need is there for windows > and gates!" - a mac ad > - > "I never let schooling get in the way of my education." - MT > > - > Live Penguine! - Tux the linux mascot > Vivez le penguine!, ?Viva en penguine!, Lang lebe der Pinguin!, > Viva no > penguine!, Viva sul penguine! > - > "There are 10 kinds of people in this world...those who understand > binary...and those who don't!" - ThinkGeek.com > > > > -----Original Message----- > From: Tref Gare [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, February 04, 2003 10:46 PM > To: Tomcat Users List > Subject: RE: JSP's in other directories > > Not quite sure of your situation so this may not answer the question. > > However you can place a jsp in any folder you like within the > context of > the webapp/virtual site in question. > > In other words if your site is at c:/mysite > And it contains a c:/mysite/WEB-INF folder (which says it is a tomcat > webapp) > Then you can place your jsp files in any folder you like beneath the > mysite folder. > > Ie: C:/mysite/intro/intro.jsp > C:/mysite/details/details.jsp > and c:/mysite/root.jsp > > Will all work fine. > > If that's not the answer you're after, repost with some more specifics > and someone will be able to help. > > > cheers > ------------------------------------------------------ > Tref Gare > Development Consultant > Areeba > Level 19/114 William St, Melbourne VIC 3000 > email: [EMAIL PROTECTED] > phone: +61 3 9642 5553 > fax: +61 3 9642 1335 > website: http://www.areeba.com.au > ------------------------------------------------------ > "This email is intended only for the use of the individual or entity > named above and contains information that is confidential. No > confidentiality is waived or lost by any mis-transmission. If you > received this correspondence in error, please notify the sender and > immediately delete it from your system. You must not disclose, > copy or > rely on any part of this correspondence if you are not the intended > recipient. Any communication directed to clients via this message is > subject to our Agreement and relevant Project Schedule. Any > informationthat is transmitted via email which may offend may have > been sent > without knowledge or the consent of Areeba." > ------------------------------------------------------ > > -----Original Message----- > From: Nicholas J Campbell [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, 5 February 2003 2:11 PM > To: 'Tomcat Users List' > Subject: JSP's in other directories > > Hi, > I have a question, I want to be able to access JSP pages that > are outside of the web-inf directory setup by tomcat...I do not > know how > to do it, obviously. I have Apache 2 installed and use that at my main > server and then am running tomcat for the purposes of Servlets and > JSP'sand I want to know what I have to do to make myself be able > to access a > jsp page that is in a directory like c:\site > > Thanks for the help > > -Nicholas Campbell > ? > "In a world without walls and barriers, what need is there for windows > and gates!" - a mac ad > - > "I never let schooling get in the way of my education." - MT > - > Live Penguine! - Tux the linux mascot > Vivez le penguine!, ?Viva en penguine!, Lang lebe der Pinguin!, > Viva no > penguine!, Viva sul penguine! > - > "There are 10 kinds of people in this world...those who understand > binary...and those who don't!" - ThinkGeek.com > ? > ? > > > > > ------------------------------------------------------------------- > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > ------------------------------------------------------------------- > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > ------------------------------------------------------------------- > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
