O'Reilly logo

Struts Kick Start by Kevin Bedell, James Turner

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Servlets and JSP

As discussed in Chapter 4, “HTTP Protocol: Web Application Communications and Control,” the HTTP protocol consists of a request being passed to a Web server, processed, and data returned in a stateless transaction. By using techniques such as session cookies, state can be maintained even though the HTTP protocol itself is stateless.

Servlets are the basic computational unit that a Java-based Web server uses to handle requests. Whereas a non-Java Web server such as Apache might use an external CGI program written in Perl or C, a Java-based Web server such as Tomcat uses Java classes that have been made available somewhere in the classpath to service incoming requests.

In a pure servlet implementation, the Web server has been ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required