Abstract

C++ language was used for creating web applications at the department of Mapping and Cartography for many years. Plenty of projects started to be very large-scale and complicated to maintain. Consequently, the traditional way of adding functionality to a Web Server which previously has been used (CGI programs) started being usefulness. I was looking for some solutions - particularly open source ones. I have tried many languages (solutions) and finally I chose the Java language and started writing servlets. Using the Java language (servlets) has significantly simplified the development of web applications. As a result, developing cycle was cut down. Because of Java JNI (Java Native Interface) it is still possible to use C++ libraries which we are using. The main goal of this article is to share my practical experiences with rewriting typical CGI web application and creating complex geoinformatic web application.

Highlights

  • IntroductionThe modern era brings new phenomenon: World Wide Web, a term frequently used (incorrectly) when referring to “The Internet”

  • The modern era brings new phenomenon: World Wide Web, a term frequently used when referring to “The Internet”

  • PHP or C++ languages were used for creating web applications at the department of Mapping and Cartography for many years, some examples are:

Read more

Summary

Introduction

The modern era brings new phenomenon: World Wide Web, a term frequently used (incorrectly) when referring to “The Internet”. On SUN pages (SUN Company is creator of servlets) we can read more precise explanation: “A servlet is a Java programming language class used to extend the capabilities of servers that host applications accessed via a request-response programming model. Servlets can respond to any type of request, they are commonly used to extend the applications hosted by Web servers For such applications, Java Servlet technology defines HTTP-specific servlet classes.”. We would like to know how many times servlet HelloWorldServlet was requested: import java.io.*; import javax.servlet.*; import javax.servlet.http.*; public class HelloWorldRequestedServlet extends HttpServlet {. ++times + " times."); out.println(""); protected void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { To achieve this behaviour using CGI programs, it would be quite complicated. We have to decide in which directory Tomcat will be located (directory represents the root of Tomcat installation) - common directory is /opt where we will extract gzipped tarball of binary distribution:

Now it is necessary to modify two files
Deploying application
Requirements for used technology
Used design patterns
Template engine Velocity
Conclusion
Full Text
Paper version not known

Talk to us

Join us for a 30 min session where you can share your feedback and ask us any queries you have

Schedule a call