?? index.html
字號:
<html>
<body>
<table>
<tr>
<td>
<image src="navi.jpg"/>
</td>
<td>
<h1>NAVI</h1>
<hr>
<p>
NAVI is a sample web application that provides mapping
functionality via MapXtremeJava 4.5.
</p>
</td>
</tr>
</table>
<p>
<h2><u>Consists of the following parts:</u></h2>
<ul>
<li>this <b>index.html</b> page.
<li>and a <b>servlet</b>.
</ul>
</p>
<p>
<h2><u>Functional Aspects:</u></h2>
<ul>
<li> Saves client state via servlet sessions on a per-client basis.
<li> Servlet session ID values are passed via URL rewriting.
<li> Map images are created as GIF files on webserver and accessed via URL links.
<li> Map definitions must be obtained from MDF files, only.
</ul>
</p>
<p>
<h2><u>Prerequisites for usage:</u></h2>
<ul>
<li>
MapXtremeJava 4.5 must be <b>installed</b>, and the MapXtremeServlet must be <b>running</b>.
<li>
You must have a sample map definition file (e.g. world.mdf).
</ul>
</p>
<p>
<h2><u>Deployment:</u></h2>
<ul>
<li> You've already done this, as you are looking at the index.html page now. If for some reason this is not
the case, then you simply need to explode this WAR file into "directory format" within your target webserver,
and read the rest of this file.
</ul>
</p>
<h2><u>Configuration steps:</u></h2>
<p>
Before accessing the NAVI servlet you must edit its deployment descriptor (web.xml) file,
and supply the servlet initialization parameters with values that are relative to your
system. Specifically, you must modify the following three(3) parameters:
<ul>
<li> <b>urlOfMapXtremeServlet</b>
<p><i>
Change this to the URL of your MapXtremeServlet.
</i></p>
<p>
<init-param><br>
   <param-name>urlOfMapXtremeServlet</param-name><br>
   <param-value>http://localhost:8080/mapxtreme45/servlet/mapxtreme</param-value><br>
</init-param><br>
</p>
<li> <b>mdfFileToLoad</b>
<p><i>
Change this to the absolute path of an MDF file to load, which contains a map definition. There should be an MDF
file that shipped with the MapXtremeJava 4.5 product.
</i></p>
<p>
<init-param><br>
   <param-name>mdfFileToLoad</param-name><br>
   <param-value>D:/mapinfo/prod/java/mxtj45/MapXtreme-4.5.0/examples/server/data/local/world.mdf</param-value><br>
</init-param><br>
</p>
<li> <b>imageDirectory</b>
<p><i>
Change this to the absolute path of the <u>images</u> directory of this NAVI web application, which is
where the NaviServlet will write its map image GIF files.
</i></p>
<p>
<init-param><br>
   <param-name>imageDirectory</param-name><br>
   <param-value>D:/mapinfo/prod/java/mxtj45/tomcat-4.0.1/mxj450/webapps/navi/images</param-value><br>
</init-param><br>
</p>
</ul>
</p>
<p><h3>As a final configuration step...</h3></p>
<p><i>
You must copy the following MapXtremeJava 4.5 JAR files (that ship with the product)
into the NAVI web application <b>WEB-INF/lib</b> directory
</i></p>
<p>
<ul>
<li> jdom.jar
<li> micsys.jar
<li> mistyles.jar
<li> miutil.jar
<li> mxj.jar
<li> mxjdtds.jar
<li> mxjiusdp.jar
<li> mxjoradp.jar
<li> mxjotherdp.jar
<li> mxjrasterdp.jar
<li> mxjsqlsvrdp.jar
<li> mxjtabdp.jar
<li> xalan.jar
<li> xercesImpl.jar
<li> xml-apis.jar
<li> xmlParserAPIs.jar
</ul>
</p>
<p><i>NOTE: there are 16 files.</i></p>
<p>
<h2><u>Running the servlet:</u></h2>
<p><i> Access the NaviServlet using the URL syntax appropriate for your webserver. For example, if deployed under
Tomcat4.0.6 (which is a free servlet container made by the Apache Software Foundation), the URL would look something
like this:
<p>
<b>http://localhost:8080/navi/servlet/navi</b>
<p>
<p><i>
Upon accessing the NAVI servlet URL, you should be presented with an HTML form that displays the map
that was defined in your MDF file (mentioned above). If you see the map, congratulations!!! If not, retrace
your steps using the above directions, and try to perform a proper integration.
</i><p>
<p><i><b>NOTE:</b> the above installation steps were tested and successfully carried out using the Tomcat4.0.6
servlet container. Other servlet containers (and webserver combinations) may differ slightly.</i></p>
</p>
<hr>
<p>
The below diagram conveys more information about the setup
and runtime execution of the NaviServlet:
</p>
<table border="1">
<tr>
<td>
<image src="setup.jpg"/>
</td>
</tr>
</table>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -