One of the most exciting and dynamic areas of growth in Java is the use of a Web server as an application development platform. The Java language has moved beyond applications that run on your computer and applets that run on a World Wide Web page.
By submitting your personal information, you agree that TechTarget and its partners may contact you regarding relevant content, products and special offers.
Servlets, Web applications run by a server over the Internet and presented by a Web browser, employ Java without the prohibitive security restrictions in place for applets. A servlet can use all the features of the language. Using servlets, you can collect input from users through Web page forms, present records from a database or another source, and create Web pages dynamically. This approach can be enhanced by JavaServer Pages (JSP), a way to create Web pages that mix static HTML with the output of servlets and Java expressions.
JavaServer Pages enable nonprogrammers to work on Web sites developed with Java.
In this chapter from the book SAMS Teach Yourself Java 2 in 21 Days, by Rogers Cadenhead and Laura Lemay, you'll learn about the following topics: