About JSP Release Map Service b> First introduce ArsIMSARSIMS for Publishing Map Services is a multi-layer architecture consisting of Presentation layers, business logic layers, Data layer, in addition, there is also a map for managing maps Applications for web pages. (1) The Presentation layer is Arcims client, you can get, browse and analyze Geographic Data (2) The component of the Business Logic layer is used for request processing and arcims web management (3) The DATA layer contains all Arcims available data sources (4) Applications set for business logic layers Authoring, Designing, Adminisering Arcims Service provides portals
The Business Logic layer is the core of the entire Arcims, which is the intermediate process responsible for client and data source interaction, including service launch and processing request (response). The process of requesting processing is: When an included geographic data analysis When the client reaches Webserver (Tomcat, IIS, etc.), the WebServer needs to deliver the request to the ArciMs Application Server, which is a background executed program that passes the request to Arcims Spatial Server, and lists the ARCIMS Spatial Server is running. The latter handles the request, returns a response, this response reversal to the client, parsed by the client and rendered. During this process, the request from the client from the client may be in a variety of languages, and Arcims Application Server Interaction between Arcims Spatial Server is made through ArcXML (An Implementation of XML USED with Arcims). So there is a connection between the WebServer and Arcims Application Server, there is a translator of ArcXML, and Arcims comes with four selected connector: ArcIMS Servlet Connector ArcIMS default connector, HTML, Java Custom, and Java Standard view can .ArcIMS comes ArcExplorer, ArcMap, and ArcPad also use this connector ArcIMS ColdFusion Connector understand ArcIMS ActiveX Connector support ASPArcIMS Java. Connector supports JSP
What CONNECTOR is used in addition to a selected development language, there is a performance problem (ie Client Side Versus Server Side Process ". Select Arcims Servlet Connector, which is Client Side Process, should be the so-called" fat customer ", customer The end produces a request in the form of direct arcxml. The Connector does not have any resolution, just pass the ArcXML request and response, the client needs to resolve Arcxml response to present a map. Select Java Connector, it is the so-called "thin customer", ArcXML all processing, including request And respond, is done on the server side. JSP passes a request, and WebServer first accepts this request first, and the Java Connector translates this request to ArcXML, then pass it to Application Server and ArciMs Spatial Server. When Arcims Spatial Server responds, the original When the road returns to Java Connector, the Java Connector responds to the ARCXML form to the JSP, and then pass the WebServer to the client and dynamically update the JSP.
It is clear that the speed of the Java Conector client will be much faster because the vector data of the map is relatively large, all requests and responses will affect performance in the client.
There are two forms that use JSP to release map web pages. Use the Java framework to publish Arcims, need to have JavaVM, Webserver and Servlet Engines. On my computer, use Java1.4sdk, Tomcat, Java Connector. Because I Servlet is not deep, talking about your own opinion, with a view to throwing the jade. Servlet is embedded in WebServer, connecting JavaVM and Webserver through a set of Servlet API to complete the processing of JSP, etc. b> So the JavaVM here cannot use JRE (Java Runtime Environment) because it only runs Java's Class file, not compiling, and Java Developing Kit is required. Arcims comes with Java Connector, which is .jar forms exist, use it under the lib file under Web-INF. Java Connector comes with a set of JavaBeans and a JSP Tag library. The total functionality is converted to arcxml These JavaBeans are possible to write independent and reusable components. They all have a series of well-packaged sets, Get methods, we can use these JavaBeans and their methods to implement maps of various display features, draw the map symbol (point, Line, etc.), increase dynamic layer, query related data, management, and authentication services, etc. My understanding is the functionality that ArcGIS and other geographic drawing software can be used in these javabeans. These JavaBeans form Arcims. The Java Connector Object Model.jsp Tag library is a collection of JSP tags on Arcims Java Connector Object Model. These tags provide an Object Model interface. We can think this tag is the Connector in Javaconnector. Because it connects JSP and Javabean The JSP request written by this markup language TAG is converted by the JSP Tag library into JavaBean to identify objects, which converts the request into the Arcxml.jsp Tag library contains the name, attribute, and nested nested of the tag. Tag (TAG). A JSP example of using the JSP Tag library is given below, which can be enlarged with a map with a JSP.
Example.jsp <% @ Page ContentType = "text / html"%> <% @ taglib uri = "arcims_taglib.tld" prefix = "aIMS"%> <% string themapaction = request.getParameter ("mapaction"); String X = Request.getParameter ("map.x"); string y = request.getParameter ("map.y");
String mapmaxx = null; string mapmaxy = null; string mapminx = null; string mapminy = NULL; String MapMiny = NULL;
IF ("MAXX")! = null) {if (! Request.getParameter ("maxx"). EqualsignoreCase (")) {MapMaxx = Request.getParameter (" maxx "); MapMaxy = Request.GetParameter ("MAXY"); MAPMINX = Request.getParameter ("minx"); MapMiny = Request.getParameter ("miny");}}%>