|
Home Webmaster and SEO Forum Home |
Using Servlets and JSP for your Web ApplicationsAll listings are the responsiblity of the posters; keep in mind, anyone can post anything! |
![]() us |
|
| ||
Webmaster and SEOUsing Servlets and JSP for your Web Applications
Strictly speaking, web servers are only capable of delivering static HTML messages after they received HTTP requests from computer clients. The pages that web servers know how to serve natively cannot be dynamic in nature. For example, a web server cannot return the current time, because getting the current time cannot be statically stored in a database. So how are you going to do it? A Java servlet is the answer. A Servlet is basically a Java class that knows how to respond to HTTP request. Instead of having the web server handling requests for dynamic pages on its own, it can delegate the task to a thread of the servlet to initiate an application that will handle the dynamic page. The dynamic content is using the Java platform, whose servlet API is located in the javax.servlet package. These Servlets are parallel to non-Java dynamic web content technologies such as CGI and ASP.NET. In order to separate business logic Java classes and HTML files, there comes the need to introduce a new technology that will coordinate the two components of a web application without forcing each of the two components to see each other. This comes in the form of JavaServer Pages (JSP). Developing web applications using Servlets and JSP follows the Model-View-Controller (MVC) data pattern, where the Servlet files serve as the controller, the Java core classes serve as the Model files, and the JSP files serve as the View files. The activities that happen during the course of interaction with the web app is hidden from the view of the user through an XML file called the Deployment Descriptor. From this point on, everything is fairly complex and difficult to explain, but allow me to tell you about each component of a typical Java web application over the weeks. We'll try to look at Servlets first before heading on to JSP and the MVC pattern. Once you get hold of it, you will find that it is actually useful to be knowledgeable when it comes to handling dynamic web content. You can talk about... Using Servlets and JSP for your Web Applications Tags: • xml • app • cgi • api • platform • servlet • java • database • clients • html • servers • web app • web application • web content • web server • dynamic content • web applications • jsp • seo • servlets • Related articles:
Using Servlets and JSP for your Web Applications Webmaster and SEO |
Have you added a link to us from your website? (1962863013):
(rozwqizwipzett) Privacy & DMCA Policy -- Sitemap |