Skip to main content

Cay Horstmann

Cay Horstmann is author of Core Java (Sun Microsystems Press 1996-2009), Enterprise Java for Elvis (Sun Microsystems Press, to appear), and co-author of Core JSF (Sun Microsystems Press 2004-2009) Cay is professor of computer science at San Jose State University. He is a computer science series editor at Prentice-Hall and a frequent speaker at computer industry conferences. For four years, Cay was VP and CTO of an Internet startup that went from 3 people in a tiny office to a public company.

 

cayhorstmann's blog

Running PHP Apps on GlassFish

Posted by cayhorstmann on December 9, 2009 at 8:57 PM PST

For the upcoming semester, I want to run a learning management system into which I can integrate an experimental feature for evaluating student programs. It needs to be open source so that I can modify it.

Closures? In Java 7???

Posted by cayhorstmann on November 18, 2009 at 8:22 PM PST

Today, a tantalizing announcement by Mark Reinhold about closures in Java 7 has made its way through the twittersphere.

Monitoring the HTTP Traffic in a JSF Redirect

Posted by cayhorstmann on October 20, 2009 at 10:20 AM PDT

I wanted to trace exactly what happens when a JSF page uses a redirect. Here are my experiences with the HTTP and TCP/IP monitors in NetBeans and Eclipse, and why I ended up using Wireshark instead.

Another Small Step for JSF...

Posted by cayhorstmann on October 19, 2009 at 11:56 AM PDT

In the relentless fight against configuration boilerplate, JSF and Glassfish have taken yet another small step forward. As of Glassfish v3 build 68, you no longer need to declare the faces-servlet in WEB.XML.

Recursive varargs methods in Scala

Posted by cayhorstmann on October 13, 2009 at 3:36 PM PDT

And now for something entirely different...one of my students asked how to write a recursive function in Scala with varargs.

Oracle OpenWorld Day 1

Posted by cayhorstmann on October 13, 2009 at 8:01 AM PDT

I got a blogger pass for Oracle OpenWorld. Here is my report from the show floor.

Oracle OpenWorld Day Zero

Posted by cayhorstmann on October 11, 2009 at 10:21 PM PDT

Aaron Houston, the fearless leader of the Java Champions, got me a blogger pass to Oracle OpenWorld. Here is what I learned on the opening night.

How to draw simple diagrams the easy way (with Java2D)

Posted by cayhorstmann on October 8, 2009 at 9:12 PM PDT

When you need to produce lots of fairly straightforward graphs, Java2D is your friend. In this blog, I show you how you can render simple images as crisp-looking PDF or EPS files, provided you can draw them on a Graphics2D object.

Recently, I had to draw a bunch of simple images, such as this one

Java/CS1 Cheat Sheet

Posted by cayhorstmann on October 6, 2009 at 8:31 PM PDT

The next edition of my CS1/Java book is going to print soon. At the last minute, we decided to put the real estate of the inside covers to good use and include a “cheat sheet” with the most important Java control structures and libraries. Since it would be particularly embarrassing to have a typo here, I am hoping to enlist the aid of the community.

Recording and serving screencasts

Posted by cayhorstmann on October 2, 2009 at 4:24 PM PDT

I just learned how to make Flash screencasts on my Linux system and deliver them (with GlassFish) on a server that the computer science department received as a donation (thanks Sun!!!).