Lukas, There are a lot of ways to start out exploring jsp programming.
1. Create a directory under %CATALINA_HOME%/webapps and modify Tomcat's server.xml a) For example, create a beg-jsp directory b) Add the following context in server.xml <!-- Beginning JSP context for experimenting with raw JSP --> <Context path="/beg-jsp" docBase="beg-jsp" debug="0" reloadable="true" crossContext="true"> <Logger className="org.apache.catalina.logger.FileLogger" prefix="localhost_beg-jsp_log." suffix=".txt" timestamp="true"/> </Context> c) Restart Tomcat Now you can throw jsp files into this directory and have them served by Tomcat. 2. Create a web application structure and deploy it a) Create a directory beg-jsp in %CATALINA_HOME%/webapps b) Create a subdirectory WEB-INF c) Add the following minimalist web.xml file to the WEB-INF directory <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd"> <web-app> <display-name>Beginning JSP</display-name> <description> Container for quick JSP tests </description> <welcome-file-list> <welcome-file>index.html</welcome-file> </welcome-file-list> </web-app> (don't wrap the !DOCTYPE) d) In the beg-jsp directory, create a small index.html. I just put links to jsp files in this index. e) Use the Tomcat manager application to deploy the application. Where it says War or Directory URL, just put in file:///<path_to_beg-jsp> (where <path_to_beg-jsp> is %CATALINA_HOME%/webapps/beg-jsp) f) Click on the Deploy button, and you should have a new application 3. Create the web application structure in a development area, war the application, and deploy the war file. a) Create the directory structure given in: http://localhost:8080/tomcat-docs/appdev/index.html (actually, it's under Deployment) b) Use the minimalist web.xml from option 2c above and put it in your local WEB-INF directory c) Create your files d) If you don't want to get ant and go through the entire build process . . . just do the following in the base directory where you did all the editing: jar -cf beg-jsp.war * e) Now use the Tomcat Manager Application to install the war file. The advantage of using the third method is that it will prepare you to expand to a servlet/jsp application. Your structure will be started, and you can then start learning ant, servlets, configuration management, and application structure. I know I haven't covered mod_jk or mod_jk2, but that's an entirely different kettle of fish. HTH /mde/ just my two cents . . . . __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free web site building tool. Try it! http://webhosting.yahoo.com/ps/sb/ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
