jsp页在webapp目录或者子目录里建,要是在webapp根目录里建,访问时使用http://xxxx:8080/xx.jsp,如果在子目录里建,访问时使用
tomcat的环境变量如javahome等在系统的环境变量里设
关于tomcat的设定在server.xml里设置
关于应用程序的设定如servlet等就在应用程序目录下的web.xml设
具体的设定,在网上找找文章把

解决方案 »

  1.   

    In the conf directory is a file called server.xml. Most of the directives in server.xml deal with logging and various worker classes within the Tomcat server. The part of the file you might want to edit is the section that defines contexts.Contexts represent Web applications. In essence, they're like virtual directories where application resources reside. You may recall that when you add a WAR file to the webapps directory and restart Tomcat, the application appears in a context that is the same as the name of the WAR file. For example, if you copied jspbook.war (which had a JSP called myApp.jsp) to the webapps directory and restarted Tomcat, you would access the application this way:http://localhost:8080/jspbook/myApp.jspYou can see that the context appears as though it were a path in the URL used to access myApp.jsp.If you want to manually add a context that represents resources contained in h:\jspbook and you want to access it from Tomcat via the URL http://localhost/jspbook, you would add a context mapping to the server.xml file like this:<Context path="/jspbook" docBase="h:/jspbook" debug="0" reloadable="true" >
    </Context>You must restart Tomcat to pick up any additional contexts. If you are using the Apache Tomcat integration, Tomcat automatically adds any new contexts to its tomcat-apache.conf file, so when you restart Apache it will also know about the new directory.
      

  2.   

    javahome变量怎么设置,假如已经安装了jdk1.4
    这是我 最想问的问题
      

  3.   

    http://www.justjsp.com/main/article.php/674看你的路径了,如果在 c 盘TOMCAT_HOME=”C:\tomcat”JAVA_HOME=”C:\jdk1.4”
      

  4.   

    JAVA_HOME
    TOMCAT_HOME
    分别在那里可以找到对应的变量名
      

  5.   

    to wacky(笨笨狗)
    我按说明修改了也不行喔(已删除了了<!-- -->):<Context path="/jspbook" docBase="h:/jspbook" debug="0" reloadable="true" >
    </Context>