All you have to do is make your
java class a bean, which is very simple. You just make sure you have an "accessor" method to the property you want displayed that returns a String. In this case, the property you want displayed is the String, "Hello World" (I'm guessing). Write a method getMessage() or getString() or some other such "get" method that returns the String. Then in the JSP you must use the <jsp:useBean /> and <jsp:getProperty /> tags. You can also use the JSP 2.0 Expression Language instead of the getProperty tag. For more information on these tags, custom tags and the expression language, try Sun's tutorial or book on JSP. I really liked "Web Development with JavaServer Pages" by Duane Fields and Mark Kolb, but it's out of date at this point as it does not cover JSP 2.0. I'm looking at Pro JSP, 3rd edition from apress! right now and it looks pretty good.