Hi all,
there is a bug in tomcat earlier versions, which gives error when u used EL functions in jsps(figured out searching tomcat5.0 bug database). I tried the example with tomcat 5.0.28 and it worked fine.
Note: If u put your classes in deault package you will get following exception( So use packages)
org.apache.jasper.JasperException: Unable to compile class for JSP
Generated servlet error:
C:\jakarta-tomcat-5.0.28\jakarta-tomcat-5.0.28\work\Catalina\localhost\ch08\org\apache\jsp\TestBean_jsp.java:13: cannot resolve symbol
symbol : class DiceRoller
location: class org.apache.jsp.TestBean_jsp
_jspx_fnmap_0= org.apache.jasper.runtime.ProtectedFunctionMapper.getMapForFunction("m:rollIt", DiceRoller.class, "rollDice", new Class[] {});
^
1 error
Good look