tomcat default path and set the default start page

First of all, tell us about tomcat default path of configuration methods:

I use tomcat 6.0 version of the estimate is almost the other

For example:

1 in D drive with the directory to create a new

D:\MyJsp

2 modified server.xml file

Found

<Host>..</Host>   Tag

In the </ Host> before insert:

<Context  path="" reloadable="true"  docBase="D:\MyJsp"  workDir="D:\MyJsp"   />

This will modify the right, like restart Tomcat

One way of course, is the site on the webapps \ ROOT (this is the default path)

Introduction tomcat default start page again

Modify the contents of the web.xml

In the last line

<welcome-file-list>
        <welcome-file>index.html</welcome-file>
        <welcome-file>index.htm</welcome-file>
        <welcome-file>index.jsp</welcome-file>
</welcome-file-list>

Add your own start page Web site like

分类:Web 时间:2010-07-06 人气:170
分享到:
blog comments powered by Disqus

相关文章

  • Web relative path and absolute path 2010-04-10

    1. Basic understanding of the concept Absolute path: absolute path is your home page file or directory on your hard disk real path, (URL and the physical path) example: C: \ xyz \ test.txt test.txt file represents the absolute path. http://www.sun.co

  • Early Solutions Web application path 2010-08-24

    Developing Web applications using Java, Jsp page whether it is, Servlet or web.xml configuration file are related to the path problem, which is where beginners are confused, often do not know how to write path. In fact, the server and client in deali

  • JSP access to the server absolute path 2010-01-25

    <% @ Page contentType = "text / html; charset = gb2312" language = "java" import = "java.io. *" errorPage = ""%> <html> <head> <meta http-equiv="Content-Type" content="text/html;

  • jsp in the basePath and the path 2010-03-26

    jsp in the basePath and the path January 13, 2010 Wednesday, 11:01 AM If you use the JSP in the "relative path", there may be problems. Because the webpage of the "relative path", he is relative to the "URL requested address"

  • jsp include and jsp include to use the absolute path written 2010-12-02

    <% @ Include%> and the jsp: include the differences and use the links below to write clearly. http://java.chinaitlab.com/ServletJsp/529740.html I mainly talk about the wording of the two include the absolute path to the file path + WebRoot -Includet

  • How to get Java web root path 2010-12-04

    java There are two ways to get root path: 1), in the servlet could use methods to obtain: request.getRealPath ("/") example: filepach = request.getRealPath ("/")+"// upload / / "; 2), not from a jsp, servlet, or get only get

  • JSP编译指令page.include详解 2013-12-27

    这篇文章主要介绍了JSP编译指令page.include,有需要的朋友可以参考一下 1. JSP指令 分类:1).page 2).include 3).taglib 语法: <%@ 指令名称 属性1="值1" .....%> 2. Page编译指令: • 作用:利用Page编译指令可以设置JSP的页面属性.通常位于JSP页面的顶端,对同一个页面可以有多个page指令. • page指令语法格式: <%@page [language="Java"]

  • JSP指令元素(page指令/include指令/taglib指令)复习整理 2014-08-24

    JSP指令元素部分(page指令.include指令.taglib指令),今天抽时间复习了一下,并对心得进行了整理,下面与大家分享下,希望对大家学习jsp有所帮助 今天复习了JSP指令元素部分,整理了下,跟大家一起分享: 一.page指令:设定JSP页面的全局属性,该配置作用于整个JSP页面,设置包括静态包含的文件. <%@ page 属性1="属性值1" 属性2="属性值2" %> 1.language属性:申明所使用的脚本语言种类,目前只有java一

  • (Transfer) jsp error handling page 2010-08-17

    Use two jsp page directive: isErrorPage = true / false (true, the page can use the exception, false is not available) errorPage silently ignored, examples: errorPage = "error / error.jsp" Code: error.jsp exception handling page: <%@page conte

iOS 开发

Android 开发

Python 开发

JAVA 开发

开发语言

PHP 开发

Ruby 开发

搜索

前端开发

数据库

开发工具

开放平台

Javascript 开发

.NET 开发

云计算

服务器

Copyright (C) codeweblog.com, All Rights Reserved.

CodeWeblog.com 版权所有 黔ICP备15002463号-1

processed in 0.244 (s). 12 q(s)