📄 web.xml
字号:
<?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">
<!-- This is the deployment descriptor for my JSP Web-Project -->
<!-- You can find more Informations on the project homepage -->
<!-- http://jwp.sourceforge.net -->
<!-- my eMail: jdebertshaeuser@users.sourceforge.net -->
<web-app>
<!-- Context Parameter for Servlets, currently not used,
for setting your database variables please set the at the end
of this file -> "Environment Variables"
<context-param>
<param-name>host</param-name>
<param-value>localhost</param-value>
<description>The Host of the MySQL Database Server</description>
</context-param>
<context-param>
<param-name>port</param-name>
<param-value>3306</param-value>
<description>The Port of the MySQL Database Server</description>
</context-param>
<context-param>
<param-name>database</param-name>
<param-value>db_webproject</param-value>
<description>The Database where the informations are stored</description>
</context-param>
<context-param>
<param-name>dbuser</param-name>
<param-value>user</param-value>
<description>The user who has the rights to access the data</description>
</context-param>
<context-param>
<param-name>dbpassword</param-name>
<param-value>userpassword</param-value>
<description>The password to access the data</description>
</context-param>
-->
<!-- Servlet-Specification for the File Upload Servlet -->
<servlet>
<servlet-name>
ProjectUpload
</servlet-name>
<servlet-class>
jdebertshaeuser.beans.webproject.DocumentUpload
</servlet-class>
</servlet>
<servlet-mapping> <!-- Verkn黳fung Servlet - URL -->
<servlet-name>
ProjectUpload <!-- Servlet ID -->
</servlet-name>
<url-pattern> <!-- URL Pattern unter dem -->
/WebProjectUpload <!-- das Servlet erreichbar sein -->
</url-pattern> <!-- soll. Wildcards sind m鰃lich (*) -->
</servlet-mapping>
<!-- Here you can define the Session Timeout in minutes -->
<session-config>
<session-timeout>60</session-timeout>
</session-config>
<!-- Environment Variables -->
<!-- Please configure your database variables here -->
<env-entry>
<env-entry-name>db_host</env-entry-name>
<!-- enter your host -->
<env-entry-value>localhost</env-entry-value>
<env-entry-type>java.lang.String</env-entry-type>
</env-entry>
<env-entry>
<env-entry-name>db_port</env-entry-name>
<!-- enter your port -->
<env-entry-value>3306</env-entry-value>
<env-entry-type>java.lang.String</env-entry-type>
</env-entry>
<env-entry>
<env-entry-name>db_database</env-entry-name>
<!-- enter your database name -->
<env-entry-value>jwpdb</env-entry-value>
<env-entry-type>java.lang.String</env-entry-type>
</env-entry>
<env-entry>
<env-entry-name>dbuser</env-entry-name>
<!-- enter your database user -->
<env-entry-value>root</env-entry-value>
<env-entry-type>java.lang.String</env-entry-type>
</env-entry>
<env-entry>
<env-entry-name>userpass</env-entry-name>
<!-- enter the password of the database user -->
<env-entry-value></env-entry-value>
<env-entry-type>java.lang.String</env-entry-type>
</env-entry>
</web-app>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -