⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 installation.htm

📁 jwp是 JSP WebProject的简写。它是一个基于Web的应用程序。它编写的方式是JSP/Java+Mysql.主要的功能是管理项目、任务、命令、用户、报告、文档。这个程序对学生管理自己的程序
💻 HTM
字号:
<html>
<head>
<title>jwp - JSP WebProject</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" href="css/jwp.css" type="text/css">
</head>

<body bgcolor="#FFFFFF" text="#000000">
<table width="90%" border="0" align="center">
  <tr> 
    <td rowspan="24" width="150" valign="top"><img src="images/connect_to_network.png" width="128" height="128"></td>
    <td class="text_bold"> jwp - JSP WebProject Installation Instruction</td>
  </tr>
  <tr> 
    <td class="text">&nbsp;</td>
  </tr>
  <tr> 
    <td class="text"> 
      <p>You can use this installation instruction for Linux/Unix and Windows.</p>
    </td>
  </tr>
  <tr> 
    <td class="text">&nbsp;</td>
  </tr>
  <tr> 
    <td class="text_bold">1. Requirements:</td>
  </tr>
  <tr> 
    <td class="text_bold">&nbsp;</td>
  </tr>
  <tr> 
    <td class="text">You will need to install the following software before installing 
      jwp (please ensure to download the correct packages for your system):</td>
  </tr>
  <tr> 
    <td class="text"> 
      <table width="95%" border="0" align="right">
        <tr> 
          <td class="text_bold">&nbsp;</td>
        </tr>
        <tr> 
          <td class="text_bold">Apache Tomcat</td>
        </tr>
        <tr> 
          <td class="text">please download and install the Apache Tomcat Servlet 
            Container</td>
        </tr>
        <tr> 
          <td class="text">it can be found at the Apache Homepage: <a href="http://jakarta.apache.org" target="_blank" class="text">http://jakarta.apache.org</a></td>
        </tr>
        <tr> 
          <td class="text">&nbsp;</td>
        </tr>
        <tr> 
          <td class="text_bold">MySQL RDBMS</td>
        </tr>
        <tr> 
          <td class="text">You need the MySQL Database on your System</td>
        </tr>
        <tr> 
          <td class="text"><a href="http://www.mysql.com" target="_blank" class="text">http://www.mysql.com</a></td>
        </tr>
        <tr> 
          <td class="text">&nbsp;</td>
        </tr>
        <tr> 
          <td class="text_bold">JWP Package</td>
        </tr>
        <tr> 
          <td class="text">you can download the current release here...</td>
        </tr>
      </table>
    </td>
  </tr>
  <tr> 
    <td class="text">&nbsp; </td>
  </tr>
  <tr> 
    <td class="text_bold">2. Installation</td>
  </tr>
  <tr> 
    <td class="text">I will only describe the installation of jwp. If you have 
      problems installing Apache Tomcat or MySQL please refer to their FAQ or 
      Manuals. </td>
  </tr>
  <tr> 
    <td class="text">If you have trouble installing jwp, please send me an <a href="mailto:jade-mail@gmx.de" class="text">eMail</a>, 
      I will try to help you as soon as possible.</td>
  </tr>
  <tr> 
    <td class="text">&nbsp;</td>
  </tr>
  <tr> 
    <td class="text"> 
      <p>In this example I use the following folders to install jwp:</p>
    </td>
  </tr>
  <tr> 
    <td class="text">Apache<span class="text_bold"> Tomcat under Windows:</span> 
      <span class="textitalic">C:\Tomcat</span></td>
  </tr>
  <tr> 
    <td class="text">Apache<span class="text_bold"> Tomcat under Linux:</span> 
      <span class="textitalic">/opt/tomcat</span></td>
  </tr>
  <tr> 
    <td class="text"><span class="text_bold">JWP</span> Directory <span class="text_bold">under 
      Windows:</span> <span class="textitalic">C:\webapps\jwp</span></td>
  </tr>
  <tr> 
    <td class="text"><span class="text_bold">JWP</span> Directory <span class="text_bold">under 
      Linux:</span> <span class="textitalic">/opt/webapps/jwp</span></td>
  </tr>
  <tr> 
    <td class="text">&nbsp;</td>
  </tr>
  <tr> 
    <td class="text">Please replace the example directories above with your current 
      directories. </td>
  </tr>
  <tr> 
    <td class="text">&nbsp;</td>
  </tr>
  <tr> 
    <td class="text"> 
      <table width="95%" border="0" align="right">
        <tr> 
          <td class="text"><span class="text_bold">2.1. Unzip the jwp Package 
            into your preferred folder</span></td>
        </tr>
        <tr> 
          <td class="text">Please check that your tomcat process has enough rights 
            to access the folder of your jwp.</td>
        </tr>
        <tr> 
          <td class="text">&nbsp;</td>
        </tr>
        <tr> 
          <td class="text"><span class="text_bold">2.2. Go to your Tomcat Config 
            Directory and edit the <i>server.xml</i> file:</span></td>
        </tr>
        <tr> 
          <td class="text">You will find the server.xml here (<span class="text_bold">Linux</span>): 
            <span class="textitalic">/opt/tomcat/conf</span></td>
        </tr>
        <tr> 
          <td class="text"><span class="text_bold">Windows:</span> <span class="textitalic">C:\Tomcat\conf</span></td>
        </tr>
        <tr> 
          <td class="text">&nbsp;</td>
        </tr>
        <tr> 
          <td class="text">Search for the following lines:</td>
        </tr>
        <tr> 
          <td class="textitalic"><font color="#3366CC" class="textmarker">&lt;!-- 
            Tomcat Root Context --&gt;<br>
            &lt;!--<br>
            &lt;Context path=&quot;&quot; docBase=&quot;ROOT&quot; debug=&quot;0&quot;/&gt;<br>
            --&gt;</font></td>
        </tr>
        <tr> 
          <td class="text">After these lines you can add a new &quot;Context&quot; 
            which specifies the location of your jwp:</td>
        </tr>
        <tr> 
          <td class="text">For my <span class="text_bold">Windows</span> installation:</td>
        </tr>
        <tr> 
          <td class="text"><font color="#3366CC" class="textmarker">&lt;Context 
            path=&quot;/jwp&quot; docBase=&quot;C:\webapps\jwp&quot; debug=&quot;0&quot;/&gt;</font></td>
        </tr>
        <tr> 
          <td class="text">&nbsp;</td>
        </tr>
        <tr> 
          <td class="text">For my <span class="text_bold">Linux</span> installation:</td>
        </tr>
        <tr> 
          <td class="text"><font color="#3366CC" class="textmarker">&lt;Context 
            path=&quot;/jwp&quot; docBase=&quot;/opt/webapps/jwp&quot; debug=&quot;0&quot;/&gt;</font></td>
        </tr>
        <tr> 
          <td class="text">&nbsp;</td>
        </tr>
        <tr> 
          <td class="text">Save your server.xml</td>
        </tr>
        <tr> 
          <td class="text">&nbsp;</td>
        </tr>
        <tr> 
          <td class="text"><span class="text_bold">2.3. Create the needed Database 
            </span></td>
        </tr>
        <tr> 
          <td class="text">In your jwp folder you will find the &quot;docs&quot; 
            directory. </td>
        </tr>
        <tr> 
          <td class="text">There you will find the file &quot;<span class="textitalic">database.sql</span>&quot;. 
            Use this statements to create the database.</td>
        </tr>
        <tr> 
          <td class="text">&nbsp;</td>
        </tr>
        <tr> 
          <td class="text"><span class="text_bold">2.4. edit the jwp web.xml </span></td>
        </tr>
        <tr> 
          <td class="text">In the WEB-INF directory of your jwp package you will 
            find a file called web.xml</td>
        </tr>
        <tr> 
          <td class="text">Search for the following lines:</td>
        </tr>
        <tr> 
          <td class="textmarker"> &lt;!-- Environment Variables --&gt;<br>
            &lt;!-- Please configure your database variables here --&gt; </td>
        </tr>
        <tr> 
          <td class="text">These lines are followed by the configuration lines 
            of jwp:</td>
        </tr>
        <tr> 
          <td class="text">&nbsp;</td>
        </tr>
        <tr> 
          <td class="text"><span class="text_bold">2.4.1 Edit the database host 
            variable.</span> This is the IP where your MySQL Server is installed.</td>
        </tr>
        <tr> 
          <td class="text">Here you have to replace localhost whith your setting. 
            If jwp is running on the same machine as your MySQL Database Server 
            you can use &quot;localhost&quot; or &quot;127.0.0.1&quot;</td>
        </tr>
        <tr> 
          <td class="textmarker">&lt;env-entry&gt;<br>
            &lt;env-entry-name&gt;db_host&lt;/env-entry-name&gt;<br>
            &lt;!-- enter your host --&gt;<br>
            &lt;env-entry-value&gt;<span class="text_bold">localhost</span>&lt;/env-entry-value&gt;<br>
            &lt;env-entry-type&gt;java.lang.String&lt;/env-entry-type&gt;<br>
            &lt;/env-entry&gt;</td>
        </tr>
        <tr> 
          <td class="text">&nbsp;</td>
        </tr>
        <tr> 
          <td class="text"><span class="text_bold">2.4.2. Edit the database port</span> 
            on which your MySQL Server listens</td>
        </tr>
        <tr> 
          <td class="text">Normally 3306 is the standard port, so you need not 
            to change it.</td>
        </tr>
        <tr> 
          <td class="textmarker"> &lt;env-entry&gt;<br>
            &lt;env-entry-name&gt;db_port&lt;/env-entry-name&gt;<br>
            &lt;!-- enter your port --&gt;<br>
            &lt;env-entry-value&gt;<span class="text_bold">3306</span>&lt;/env-entry-value&gt;<br>
            &lt;env-entry-type&gt;java.lang.String&lt;/env-entry-type&gt;<br>
            &lt;/env-entry&gt;</td>
        </tr>
        <tr> 
          <td class="text">&nbsp;</td>
        </tr>
        <tr> 
          <td class="text_bold">2.4.3. Edit the Database name</td>
        </tr>
        <tr> 
          <td class="text">Replace &quot;jwpdb&quot; with the database name you 
            have chosen when creating your jwp database</td>
        </tr>
        <tr> 
          <td class="text">&nbsp;</td>
        </tr>
        <tr> 
          <td class="textmarker"> &lt;env-entry&gt;<br>
            &lt;env-entry-name&gt;db_database&lt;/env-entry-name&gt;<br>
            &lt;!-- enter your database name --&gt;<br>
            &lt;env-entry-value&gt;<span class="text_bold">jwpdb</span>&lt;/env-entry-value&gt;<br>
            &lt;env-entry-type&gt;java.lang.String&lt;/env-entry-type&gt;<br>
            &lt;/env-entry&gt;</td>
        </tr>
        <tr> 
          <td class="text">&nbsp;</td>
        </tr>
        <tr> 
          <td class="text"><span class="text_bold">2.4.4. Configure the correct 
            User</span> who has the rights to access the database</td>
        </tr>
        <tr> 
          <td class="text">Replace &quot;dbuser&quot; by your database user</td>
        </tr>
        <tr> 
          <td class="textmarker">&nbsp;</td>
        </tr>
        <tr> 
          <td class="textmarker"> &lt;env-entry&gt;<br>
            &lt;env-entry-name&gt;db_user&lt;/env-entry-name&gt;<br>
            &lt;!-- enter your database user --&gt;<br>
            &lt;env-entry-value&gt;<span class="text_bold">dbuser</span>&lt;/env-entry-value&gt;<br>
            &lt;env-entry-type&gt;java.lang.String&lt;/env-entry-type&gt;<br>
            &lt;/env-entry&gt;</td>
        </tr>
        <tr> 
          <td class="text">&nbsp;</td>
        </tr>
        <tr> 
          <td class="text_bold">2.4.5. Configure the password of the User</td>
        </tr>
        <tr> 
          <td class="text">Replace &quot;userpass&quot; by the correct password 
            of the database user</td>
        </tr>
        <tr> 
          <td class="text">&nbsp;</td>
        </tr>
        <tr> 
          <td class="textmarker"> &lt;env-entry&gt;<br>
            &lt;env-entry-name&gt;db_password&lt;/env-entry-name&gt;<br>
            &lt;!-- enter the password of the database user --&gt;<br>
            &lt;env-entry-value&gt;<span class="text_bold">userpass</span>&lt;/env-entry-value&gt;<br>
            &lt;env-entry-type&gt;java.lang.String&lt;/env-entry-type&gt;<br>
            &lt;/env-entry&gt;</td>
        </tr>
        <tr> 
          <td class="text">&nbsp;</td>
        </tr>
        <tr> 
          <td class="text_bold">2.5. Start your MySQL Database and your Apache 
            Tomcat.</td>
        </tr>
        <tr> 
          <td class="text">Now you can access your jwp using the webbrowser:</td>
        </tr>
        <tr> 
          <td class="textitalic">http://ip_of_your_webserver:8080/jwp/admin</td>
        </tr>
        <tr> 
          <td class="text">&nbsp;</td>
        </tr>
        <tr> 
          <td class="text">Replace &quot;<span class="textitalic">ip_of_your_webserver</span>&quot; 
            by the IP of the workstation or server where your Tomcat is installed</td>
        </tr>
        <tr> 
          <td class="text">&nbsp;</td>
        </tr>
        <tr> 
          <td class="text_bold">2.6 Login with Admin Account</td>
        </tr>
        <tr> 
          <td class="text">&nbsp;</td>
        </tr>
        <tr> 
          <td class="text"><img src="images/screenshots/thumb_login.jpg" width="300" height="213"></td>
        </tr>
        <tr> 
          <td class="text">&nbsp;</td>
        </tr>
        <tr> 
          <td class="text"><span class="text_bold">User:</span> <span class="textitalic">admin</span></td>
        </tr>
        <tr> 
          <td class="text"><span class="text_bold">Login: </span><span class="textitalic">admin</span></td>
        </tr>
        <tr> 
          <td class="text">&nbsp;</td>
        </tr>
        <tr> 
          <td class="text_bold">2.7. Change the Admin User to your Name</td>
        </tr>
        <tr> 
          <td class="text">Go to the User Administration and edit the Admin User.</td>
        </tr>
        <tr> 
          <td class="text">&nbsp;</td>
        </tr>
      </table>
    </td>
  </tr>
  <tr> 
    <td class="text">&nbsp;</td>
  </tr>
  <tr> 
    <td><img src="images/sourceforge.bmp"></td>
  </tr>
</table>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -