tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Eggers <its_toas...@yahoo.com>
Subject Re: Apache + mod_jk2 question
Date Mon, 28 Apr 2003 19:46:08 GMT
Pablo,

If you want to just explore jsp files without creating
an entire web application, you can add something like
the following to your server.xml file.

Add this in your host container.

<Context 
className="org.apache.catalina.core.StandardContext"
crossContext="true" reloadable="true"
mapperClass="org.apache.catalina.core.StandardContextMapper"
useNaming="true"
debug="0"
swallowOutput="false"
privileged="false"
wrapperClass="org.apache.catalina.core.StandardWrapper"
docBase="beg-jsp"
cookies="true"
path="/beg-jsp"
cachingAllowed="true"
charsetMapperClass="org.apache.catalina.util.CharsetMapper">
<Logger 
className="org.apache.catalina.logger.FileLogger"
debug="0"
verbosity="1"
prefix="localhost_beg-jsp_log."
directory="logs"
timestamp="true" suffix=".txt"/>
</Context>

I apologize for the formatting.  It's a limitation of
the mail client I'm using.

This assumes that you have a directory - 

$CATALINA_HOME/webapps/beg-jsp/

that you can just 'drop' jsp files into.

That said, I agree with John in that you should create
the appropriate WEB-INF directory and proper web.xml
file so that Tomcat can mount the context.

This becomes necessary with servlets, where you have
to indicate the servlet name, class name, and mapping.
 An example of this web.xml file comes with Tomcat in:

http://localhost:8080/tomcat-docs/appdev/web.xml.txt  

An outline of the details involved can be found at:

http://localhost:8080/tomcat-docs/appdev/index.html

HTH

/mde/
just my two cents . . . .

__________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.
http://search.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message