<A target="_blank" href="http://www.keithstric.com/A55BAC/keithstric.nsf/d6plinks/KSTD-82EM5E">Keith Strickland has posted Part 2 in his series on using XPages in Notes</A>. He's posted code and screen shots to make the information clearer.