Java Servlet & JSP Cookbook: Practical Solutions to Real World Problems

Front Cover
"O'Reilly Media, Inc.", Jan 21, 2004 - Computers - 748 pages

With literally hundreds of examples and thousands of lines of code, the Java Servlet and JSP Cookbook yields tips and techniques that any Java web developer who uses JavaServer Pages or servlets will use every day, along with full-fledged solutions to significant web application development problems that developers can insert directly into their own applications.Java Servlet and JSP Cookbook presents real-world problems, and provides concise, practical solutions to each. Finding even one tested code "recipe" that solves a gnarly problem in this comprehensive collection of solutions and best practices will save hours of frustration--easily justifying the cost of this invaluable book.But "Java Servlet and JSP Cookbook" is more than just a wealth of cut-and-paste code. It also offers clear explanations of how and why the code works, warns of potential pitfalls, and directs you to sources of additional information, so you can learn to adapt the problem-solving techniques to similar situations.These recipes include vital topics like the use of Ant to setup a build environment, extensive coverage of the WAR file format and web.xml deployment descriptor, file-uploading, error-handling, cookies, logging, dealing with non-HTML content, multimedia, request filtering, web services, I18N, web services, and a host of other topics that frustrate even the most seasoned developers.For Java web developers of all levels who are eager to put into practice the theory presented in other API-focused books, the solutions presented in this practical book will prove invaluable over and over again. This is painless way for less experienced developers who prefer to learn by doing to expand their skills and productivity, while accomplishing practical solutions to the pressing problems they face every day. More experienced developers can use these recipes to solve time-consuming problems quickly, freeing up their time for the more creative aspects of their work.

 

What people are saying - Write a review

User ratings

5 stars
1
4 stars
2
3 stars
2
2 stars
1
1 star
0

User Review - Flag as inappropriate

good

User Review - Flag as inappropriate

I red this book, it was very useful to me.Thank you,
by
mano puppy
 

Contents

Deploying Servlets and JSPs
Naming Your Servlets
Using Apache Ant
Altering the Format of JSPs
Dynamically Including Content in Servlets and JSPs
Handling Web Form Data in Servlets and JSPs
Uploading Files
Handling Exceptions in Web Applications
Binding Accessing and Removing Attributes in Web Applications
Embedding Multimedia in JSPs
Working With the Client Request
Filtering Requests and Responses
Managing Email in Servlets and JSPs
Accessing Databases
Using Custom Tag Libraries
Using the JSTL

Reading and Setting Cookies
Session Tracking
Integrating JavaScript with Servlets and JSPs
Sending NonHTML Content
Logging Messages from Servlets and JSPs
Authenticating Clients
Internationalization
Using JNDI and Enterprise JavaBeans
Harvesting Web Information
Using the Google and Amazon Web APIs
Index
Copyright

Other editions - View all

Common terms and phrases

Bibliographic information