Search DominoPower's 11,443 Lotus-related article archive 
Home
EasyPrint
News details Click here for the RSS feed's XML code. This is not a browser URL.
Articles-only Click here for the RSS feed's XML code. This is not a browser URL.
Twitter Feed Click here for the Twitter feed.
How Domino developers can learn servlet and JSP programming with WebSphere 5 (continued)

Now let's take a close look at all of the modules that comprise the course.

Module 1: Managing Web Sessions
This module begins with a good overview of the various ways Web developers are able to maintain state information in Web applications. It then discusses how to use an HttpSession object store, and retrieve user session data contained in Java objects like Strings and Vectors. If you're already familiar with Java Beans, this technique may seem dated, but it does serve as a useful "first step" to those who are unfamiliar with J2EE programming techniques in general.

This module also discusses URL rewriting, as well as how to implement it in WebSphere. If you're unfamiliar with this technique, URL rewriting is typically necessary in those circumstances when you have no control over the browser configuration of users who access your Web application. This is typically true for extranet applications.

The first activity in this module shows you how to import the three EAR files, used by the demos and activities, into your workspace. The remaining activities are straightforward and shouldn't require much time to complete, except for the last activity. The last activity requires you to add code to a simple shopping cart application. Of all the activities in the course, this one took me the most time to complete, due to the conditional logic that you'll be required to implement.

Module 2: Servlet Processing
This module focuses exclusively on servlet programming techniques, including Exception handling, throwing Exceptions, accessing inner and external classes, implementing the SingleThreadModel, and using servlet initialization parameters.

The discussion of the servlet life cycle is concise and easy to follow. Also, the discussion of the scope of variables in servlets was very well written. The last thing you want to do is discover that a servlet you've written is behaving strangely because you've improperly declared variables at the class level.

One technique discussed in this module I'm glad I learned about is how to configure the Web Deployment Descriptor (Web.xml) to display a specific error page when specific error codes, like 404, or Java Exception types, like java.lang.ClassNotFoundException, are encountered, like in Figure F.

FIGURE F


The Pages tab of the Web Deployment Descriptor can be configured to handle specific error codes or Java Exceptions. Roll over picture for a larger image.

All of the activities in this module can be completed without much difficulty. The last activity, which involves adding error handling to a simple shopping cart application, is a bit more challenging than the rest, though.

Module 3: JSP Programming
This module is an excellent introduction to JSP programming. The topics discussed here are roughly the same as those discussed in Module 2, except that they're geared towards JSPs instead of servlets.

One part of this module that I wasn't too fond of was the lesson on processing a JSP using another JSP. This amounts to server-side validation, which I've learned over several years of Domino application development not to do because of performance considerations.


« Previous  ·  1  ·  2  ·  3  ·  4  ·  5  ·  6  ·  7  ·  8  ·  9  ·  Next »
Other articles you might like
Home > Reviews and previews (86 articles)
   Managing Notes deployments with Teamstudio Build Manager
   Using Balsamiq Mockups to create low-fidelity prototypes
   Exploring VMWare Workstation
Home > Strategies > Training (16 articles)
   Where to find answers to your Notes and Domino questions
   Will the book Lotus Notes Developers Toolbox be something you want to add to your toolbox?
   A no-cost way to learn some LotusScript
Get Weekly Email Updates
Subscribe to our regular weekly email newsletter. It's packed with tips, reviews, deep analysis, and the latest news.
 
Recent DominoPower Articles
Syncing Notes with Android phones
Application development, William Shatner, and the origin of the universe
Learn Domino Designer 8.5 for free
The (near) future of Sametime, Quickr, Connections, and Symphony
Inside the IBM Innovations lab
Lotusphere 2010: Hot fixes and cool news for Notes, Domino, and LotusLive
Lotusphere 2010: mobility and collaboration
Latest Lotus Headlines
Xpages not loading? JVM errors? - Solution
How to implement an iCalendar feed into your Notes calendar with XPages
DWA Hotfixes for Domino 8.5.1FP1 - A Gotcha
IBM Adds DB2 to Lotus Foundations SMB Package
SNTT : XPages onclick Ghosts in the machine
Ports used by Lotus Sametime 8.5 servers
Exploring a Domino Date Bug
>> Read all the news
More from the ZATZ journals
Computing Unplugged: Online safety for virtual learning
David Gewirtz Online: CNN commentary and analysis
OutlookPower: Seek and find: Strategies to locate filed-away emails fast
-- Advertisement --

Learn Notes and Domino 8 at your place and pace!
Learn Notes and Domino in your office and/or home! TLCC's highly acclaimed distance learning courses for users, developers, and admins will enhance your career and your resume.

The many included activities and demos will make you a pro! Expert instructor help is a click away.

Click here to try a FREE demo course!!

-- Advertisement --

Teamstudio Edition 25 has shipped
It's finally here! Now that Teamstudio Edition 25 has shipped, listen to our latest Tool Time audio program to find out what's changed. Updates to all your favorite Teamstudio tools will be discussed.

Plus, you'll get an introduction to Teamstudio Undo (formerly known as Teamstudio Snapper).

Tap here to get started!

ZATZ Home  ·  News  ·  Back Issues  ·  Credits/Trademarks ·  Link To Us
Copyright © 1998-2010, ZATZ Publishing. All rights reserved worldwide.
Editor's Login