The Java Developers Almanac 1.4

This website supplements the book The Java Developers Almanac 1.4. All the code examples from the book are made available here for you to copy and paste into your programs.

Order this book from Amazon.



 Search for Code Examples
Search by class name, member name, or keyword. E.g. cache  -  parse xml dom  -  java.io.file  -  java.io.file.tourl  -  file.tourl  -  tourl
 Browse Examples by Package
Each package contains examples demonstrating the use of classes in that package.
 

 Recently Added or Updated Examples (7/18/02)
    e1053. Including a File in a JSP Page
    e552. Finding Elements by Attributes in a DOM Document Using XPath
    e551. Finding Elements by Id in a DOM Document Using XPath
    e550. Finding Elements by Content in a DOM Document Using XPath
    e549. Selecting from a Set of Child Elements in a DOM Document Using XPath
    e1069. The Quintessential Custom Tag
    e1051. Preventing the Creation of a Session in a JSP Page
    e1049. Implementing a Form That Prevents Duplicate Submissions in a JSP Page
    e1071. Getting the Root Element in a DOM Document
    e548. Finding Elements by Absolute Location in a DOM Document Using XPath
    e1044. Getting the Client's Address in a Servlet
    e1041. Getting the Requesting URL in a Servlet
    e1038. Logging a Message in a Servlet
    e1037. Saving Data in a Servlet
    e1070. Sending a POST Request Using a Socket
    e1040. Preventing Concurrent Requests to a Servlet
    e1036. Returning an Image in a Servlet
    e1042. Getting a Request Header in a Servlet
    e1048. Implementing a Form in a JSP Page
    e1043. Processing a HEAD Request in a Servlet
    e1039. Getting a Request Parameter in a Servlet
    e1035. Getting and Setting Initialization Parameters for a Servlet
    e1034. The Quintessential Servlet
    e1060. Getting a Request Header in a JSP Page
    e1057. Generating Dynamic Content on a JSP Page
    e1045. The Quintessential JSP Page
    e1068. Conditionally Generating Output Using JSTL in a JSP Page
    e1067. Saving and Emitting HTML Fragments Using JSTL in a JSP Page
    e1066. Saving Data Using JSTL in a JSP Page
    e1065. Getting a Request Parameter Using JSTL in a JSP Page
    e1063. Using the Java Standard Tag Library (JSTL) in a JSP Page
    e1064. Enabling the JSTL Expression Language in a JSP Page
    e1059. Handling Unhandled Exceptions in a JSP Page

This website is meant to be used by people who have purchased the book. So, if you find the content useful, please support this site by buying a copy of the book. The book is the most comprehensive quick reference available and it's a great bargain for 1000 pages! :-)

Although the site has almost a thousand examples, it's still missing a lot more. I welcome your requests for particular examples as well as suggestions for improving the book and website. I'll post any new examples that I write. Please send email to . Although I promise to read all the mail I receive, I may not be able to reply to everyone.

Thanks,
Pat