ONJava.com -- The Independent Source for Enterprise Java
oreilly.comO'Reilly NetworkXML.comONLamp.comONJava.comOpenP2P.com
 Newsletters | Events | Jobs | API Map | Daily Recipe | OS Java Directory | java.net
  

 Topics

  J2EE/CORBA
  JSP and Servlets
  EJB Components
  JDO/JDBC/SQLJ
  Java/XML/JAX
  Web Services
  Peer-to-Peer
  Open Source
  J2ME/Wireless
  Best Practices
  Java Security
  J2SE/JFC/JVM
  Java IDE Tools
  Java SysAdmin



 Content

  Feature Articles
  Java API Map
  Web Logs
  Book Excerpts
  Events
  OS Java Directory

 Resources

GGZ-Java  May. 12, 2006

JTrac  May. 8, 2006

Dao-zero: implement your DAO intefaces  Apr. 28, 2006

DualRpc easy bidirectional RPC for GUI client to server  Apr. 25, 2006

ColoradoFTP - The Open Source FTP Server  Apr. 19, 2006

More Resources

 Java API Map



  Books

Java Enterprise in a Nutshell, Third Edition

Head First Design Patterns Poster

Eclipse IDE Pocket Guide

JBoss: A Developer's Notebook

Maven: A Developer's Notebook

Swing Hacks

Killer Game Programming in Java

Learning Java, Third Edition

Ant: The Definitive Guide, Second Edition

Spring: A Developer's Notebook

Java in a Nutshell, Fifth Edition

Jakarta Struts Cookbook

Head First Java, Second Edition

QuickTime for Java: A Developer's Notebook

AspectJ Cookbook

More Java Books

 Affiliates

   Servlets.com
  jdom.org


JSP and Servlets

Java Server Pages (JSP) and Java Servlets are the presentation-tier Java API, typically used with HTML, xHTML, XML, WML, for Web appliction and services development.

Java Web Development with Stripes
By Mark Eagle
Convention-over-configuration is the battle cry of popular web frameworks like Ruby on Rails, and Stripes brings the same kind of thinking to Java. In this article, Mark Eagle shows how to put together a basic Stripes framework and discusses the framework's integration with Ajax and Spring. Jan. 24, 2007

How to Publish Multiple Websites Using a Single Tomcat Web Application
By Satya Komatineni
While the idea of mapping several names onto one Apache instance with VirtualHost directives is well known, what do you do when you're serving web apps with Tomcat? Satya Komatineni has both the code and the configs that you'll need to make this work. Aug. 30, 2006

What Is Jetty
By Q Ethan McCallum
Of course Tomcat is the first Java application server you think of, but is it the right tool for every job? The open source Jetty serves up JSPs and servlets in just a fraction of the memory needed by other app servers and is designed for easy embedding in other applications and non-traditional Java environments. Ethan McCallum takes a look at the big things in this small package. Jun. 14, 2006

Upload Files with JSF and MyFaces
By Andrei Cioroianu
Want to support uploading of files from the user's browser to your web application? You could parse the multipart form data yourself--or you could let Java do it for you. JSF doesn't support this out of the box, but, as Andrei Cioroianu shows, several JSF-based frameworks do. Jul. 13, 2005

Caching Dynamic Content with JSP 2.0
By Andrei Cioroianu
Server-side caching is a powerful and popular technique for improving the performance of server-side applications. After all, why compute twice what you can compute once and hang on to? Andrei Cioroianu shows you how to exploit this technique in JSP 2.0. Jan. 5, 2005

Advanced SiteMesh
By Sunil Patil
Developing a web application with a consistent look and feel isn't easy, especially if parts of the site use different underlying technologies. But as Sunil Patil shows, SiteMesh offers a solution, with servlet filters called "decorators" that apply your appearance late in the game. Sep. 22, 2004

Unit Test Your Struts Application
By Lu Jian
Consistent unit testing is an essential part of development, but web applications aren't necessarily well-suited to unit testing--how to you validate the "correctness" of a returned stream of text or HTML? Lu Jian has an answer in the form of StrutsUT, a Cactus-based library for unit testing Struts web apps. Sep. 22, 2004

Handling Events in JavaServer Faces, Part 2
By Hans Bergsten
In the JSF event model, user actions take place in a client separated from the server, causing delays in the delivery of some types of events. In last week's part one of this two-part excerpt from JavaServer Faces, author Hans Bergsten provided examples to show how JSF deals with this, by using a strict request processing lifecycle. Here in part two, Hans implements event handling for parts of the sample application discussed in part one.  Aug. 18, 2004

Handling Events in JavaServer Faces, Part 1
By Hans Bergsten
In this excerpt from Chapter 8 of JavaServer Faces, author Hans Bergsten looks at the event model in JSF and how it relates to the request processing lifecycle. Next week, in part two of this excerpt, Hans implements event handling for parts of the sample application. Aug. 11, 2004

JSP 2.0: The New Deal, Part 4
By Hans Bergsten
The wait is almost over: the latest version of the JavaServer Pages (JSP) specification, JSP 2.0, is about to be released. Hans Bergsten shows how the new changes make using JSP and its expression language cleaner and more powerful. May. 12, 2004

SQL Database Access with DBTags
By Deepak Vohra
Jakarta DBTags is a custom tag library that consists of tags to access and modify a database. This tutorial explains the procedure to incorporate Apache Jakarta DBTags custom tag library tags in an example JSP. May. 5, 2004

JSP 2.0: The New Deal, Part 3
By Hans Bergsten
In this third article on JSP 2.0, Hans Bergsten (author of JavaServer Pages, 3rd Edition) shows the improvements made in JSP 2.0 for writing JSP pages as XML documents. Apr. 21, 2004

Introduction to JavaServer Faces
By Alexander Prohorenko
Swing developers enjoy a well-defined set of high-level components for building GUI applications, but what about web applications? JavaServer Faces attempts to bring the same kind of toolkit to the web-app space. Alexander Prohorenko offers an introduction to this new technology. Apr. 7, 2004

What's New in Tomcat 5
By Jason Brittain
In December 2003, the Apache Tomcat developers released version 5.0.16 as the first stable release of Tomcat 5. Jason Brittain looks at the latest features and offers insight into the goals established for version 5.0, which had a direct impact on development. Jason is a coauthor of Tomcat: The Definitive GuideJan. 28, 2004

Object Caching in a Web Portal Application Using JCS
By Srini Penchikala
One way to improve server-side performance is to cache data instead of generating it over and over again. Srini Penchikala takes a look at how the Java Caching System makes this possible. Dec. 23, 2003

JSP 2.0: The New Deal, Part 2
By Hans Bergsten
The wait is almost over: the latest version of the JavaServer Pages (JSP) specification, JSP 2.0, is about to be released. Hans Bergsten shows how the new changes make using JSP and its expression language cleaner and more powerful. Dec. 3, 2003

Using JSF
By Andrei Cioroianu
Sun's recently released Web Services Developer Pack 1.2 includes an early-access release of JavaServer Faces. Andrei Cioroianu demonstrates building web forms, managing user input, and binding UI components to JavaBean properties. Sep. 3, 2003

Introducing JavaServer Faces
By Budi Kurniawan
JavaServer Faces, or JSF, is heralded as the next step in server-side programming. It promises to make your life easier, your programs more maintainable, and maybe even your job more enjoyable. Budi Kurniawan demonstrates JSF, explaining why it's useful and if it lives up to its promises. Jul. 30, 2003

XML Publishing with Cocoon 2, Part 2
By Collin VanDyck
Apache Cocoon is an XML-publishing framework that allows you to build powerful applications from customized components. Collin VanDyck and David Cummings demonstrate writing Cocoon Actions and generating complex XML. Jul. 16, 2003

XML Publishing with Cocoon 2, Part 1
By David Cummings
Apache Cocoon is an XML-publishing framework that allows you to build powerful applications from customized components. Yeah, that's a mouthful. Collin VanDyck and David Cummings demonstrate Cocoon's sitemap and XML generation capabilities. Jul. 2, 2003

How Servlet Containers Work
By Budi Kurniawan
Having explained how a Java web server works, Budi Kurniawan next turns his attention to explaining how servlet containers. He presents two examples that handle simple servlets and static content. May. 14, 2003

Creating Richer Hyperlinks with JSP Custom Tags
By Amit Goel
Gone are the days where one destination per link was enough. With mirroring, localization, and internationalization, your readers might want the choice of several different resources for any given link. Until XLink and XPointer are well-supported in browsers and authoring tools, most alternatives are clumsy. Amit Goel demonstrates a better approach by creating a custom JSP tag to control a dynamic menu of destination links. Apr. 30, 2003

A Custom JSP Tag Library for Dynamic Menus
By Prabu Arumugam
Customizing your web site based on user preferences can be difficult. You can go full-bore with JavaScript, or rely on some sort of plugin language or applet. Prabu Arumugam demonstrates another option for JSP users--a tag library that can render dynamic, hierarchical menus defined in XML or a relational database. Apr. 9, 2003

Handling Multiple Submits
By Al Saganich
Whether by accident or out of frustration, users may accidentally submit the same web form multiple times. The results could be as serious as buying a new refrigerator each time! Al Saganich demonstrates techniques for ameliorating the "multiple submits" problem with Java. Apr. 2, 2003

Creating a Web Application with Ant and Tomcat 4
By Paul Wood
Ever wondered how to put JSPs and Java Beans together? In this article, Paul Wood develops and deploys a database-backed Web application into a Tomcat 4 servlet/JSP Container. Oh yeah, and he's using Ant to build, install, and deploy things. Jan. 8, 2003

Servlet Best Practices, Part 2
By Jason Hunter
In part two of three in this series of book excerpts on servlet best practices from Java Enterprise Best Practices, learn about caching with servlets. Dec. 23, 2002

Configuring Tomcat with IIS Web Server
By James Goodwill
In this installment of Using Tomcat, James Goodwill continues his discussion of the JK1.2 connectors with a turotial on configuring Tomcast with Microsoft's IIS server. Dec. 18, 2002

Servlet Best Practices, Part 1
By The O'Reilly Java Authors
Servlets have dominated the recent server-side Java landscape and have become the standard way to interface Java to the Web. This chapter, the first of three book excerpts from Java Enterprise Best Practices, discusses effective servlet-based development and deployment.  Dec. 18, 2002

Improve Your Career with Tomcat and Aspire
By Satya Komatineni
RDMS staff can be easily trained to develop Web-based Java apps with Tomcat and Aspire. This article tells how. Dec. 4, 2002

Programming Jakarta Struts: Using Tiles, Part 4
By Chuck Cavaness
We conclude this book excerpt series on using tiles from Programming Jakarta Struts by showing you how to use definitions. You'll also find coverage on support for internationalization of tiles. Dec. 4, 2002

Programming Jakarta Struts: Using Tiles, Part 3
By Chuck Cavaness
In part 3 in this series of book excerpts on using tiles from Programming Jakarta Struts, learn how to use the tile tag library. Nov. 27, 2002

Programming Jakarta Struts: Using Tiles, Part 2
By Chuck Cavaness
In part two in this series of book excerpts on using tiles from Programming Jakarta Struts, learn how to install and configure tiles, as well as get an overview on tiles. Nov. 20, 2002

Configuring Tomcat and Apache With JK 1.2
By James Goodwill
The JK modules are a conduit between Apache and Tomcat. This series of articles covers using mod_jk with Apache and Tomcat. The first article shows you how to configure the servers for use with JK 1.2. Nov. 20, 2002

Implementing Templates with Struts
By Vikram Goyal
Creating a portal site gets much easier with templates. This article shows you how to implement a portal site with Struts Templates. Nov. 20, 2002

Learning the New Jakarta Struts 1.1, Part 2
By Sue Spielman
Part 2 of Sue Spielmann's article on Struts 1.1 covers nested tag libraries, the Validator framework, the PlugIn API, and declarative exception handling. Nov. 13, 2002

Learning the New Jakarta Struts 1.1, Part 1
By Sue Spielman
In this first part of a two-part series, you'll learn about the new 1.1 release of Struts, how to work with it, and how to migrate from v.1.0.x. Nov. 6, 2002

JSTL 1.0: What JSP Applications Need, Part 3
By Hans Bergsten
In the final installment in this series on JSTL Hans Bergsten, author of JavaServer Pages, 2nd Edition, shows you how to leverage the JSTL classes when developing your own custom actions. Oct. 30, 2002

Jakarta Struts: Seven Lessons from the Trenches
By Chuck Cavaness
Chuck Cavaness, author of Programming Jakarta Struts, describes for Java programmers some of lessons he learned the hard way when he used the Struts framework to build a company application. Oct. 30, 2002

JSTL 1.0: What JSP Applications Need, Part 2
By Hans Bergsten
Part 2 of our JSTL series focuses on internationization, localization, and database access. Sep. 11, 2002

JSP Overview, Part 2
By Hans Bergsten
In this excerpt from JavaServer Pages, 2nd Edition, the second in a two-part series providing an overview of JSP, you'll find an introduction to JSP application design with MVC and learn about JSP processing.  Aug. 28, 2002

JSP Overview, Part 1
By Hans Bergsten
In part one of two book excerpts on JSP Overview from JavaServer Pages, 2nd Edition, understand the problem with Servlets as well as the anatomy of a JSP page. Aug. 21, 2002

JSTL 1.0: Standardizing JSP, Part 1
By Hans Bergsten
JSTL offers a set of standardized JSP custom actions to handle common tasks. This article, the first in a series, provides an overview and shows how to use the most common tags. Aug. 14, 2002

JSP Standard Tag Libraries, Part 2
By Sue Spielman
In the second part of her series on the JSTL, Sue Spielman describes how to work with the tag libraries and the expression language. May. 8, 2002

Accelerating JSP Tag Development with Jakarta Velocity
By Gregory Gerard
Tags are cool. They are, however, a pain to write, as they put HTML inside of Java code, which is neither pretty nor maintainable, even in the short term. This article shows how to improve the situation by using Jakarta Velocity.  May. 1, 2002

JSP Standard Tag Libraries, Part 1
By Sue Spielman
Custom tags make working with JSP easier and more efficient, but wouldn't it be good to have standard ways to perform common tasks? Enter JSP Standard Tag Libraries, an attempt to provide a common and standard set of custom tags. Mar. 13, 2002

Transparent Data Pipelines for JSP
By Satya Komatineni
The author presents Transparent Data Pipelines as a solution to the fact that JSP breaks the MVC model, addressing several other shortcomings as well. Dec. 12, 2001

Invoking JavaServer Pages from MIDlets
By Qusay Mahmoud
Wireless and the enterprise go great together, but how do we make it happen? This article shows how to invoke JSPs from wireless apps such as MIDlets. Dec. 5, 2001

Writing JSPs in XML using JSP 1.2
By Stephanie Fesler
Stephanie Fesler covers using XML syntax within a JSP -- part of the new JSP 1.2 specification. Learn why you would want to do this and what the differences in syntax are.  Nov. 28, 2001

Learning Jakarta Struts, Part 3
By Sue Spielman
In the last article in her Jakarta Struts series, Sue Spielman shows you how to use Struts tags to access the ApplicationResource file from a JSP. Nov. 14, 2001

JSP 1.2: Great News for the JSP Community, Part 2
By Hans Bergsten
O'Reilly author Hans Bergsten concludes his review of the JSP 1.2 specification by detailing the changes and additions in the custom tag handler API. Nov. 7, 2001

spacer

  Resources
Enhydra  Feb. 3, 2002

Apache Jakarta: Watchdog  Feb. 3, 2002

Apache Jakarta: Velocity  Feb. 3, 2002

Apache Jakarta: Tomcat  Feb. 3, 2002

Apache Jakarta: Taglibs  Feb. 3, 2002


Resources from Servlets.com.

"Java Servlet Programming" Examples

More Resources

  Events
More Events

spacer
About ONJava.comContact UsPrivacy PolicyMedia Kit
Copyright © 2000-2006 O’Reilly Media, Inc. All Rights Reserved.
All trademarks and registered trademarks appearing on the O'Reilly Network are the property of their respective owners.
For problems or assistance with this site, email