This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
this has probably been asked umpteen billion times, but: Is there anyway to call a function from a jsp using xml tags without said call being in an expression or scriptlet tag? -Speaking of which, do you access the bean within an expression type like this: <jsp:usebean name="example" class="some.class.bean"/> <jsp:expression> example.function(parameter); </jsp:expression> Would this work?
Here's a great way to check this (and any other JSP "how does this work" questions). Code it up and hit the page. Then go find the .java file that the container created on the behalf of your JSP page. By looking at the container-generated code you can see exactly how your useBean directive (as well as anything else in a JSP) works. Tomcat puts the generated Java files in a folder structure under $CATALINA_HOME/work. Resin puts them under WEB-INF/work in your web app hierarchy. I'm not sure where other containers store the files, but finding these and perusing them is one of the best JSP tools you don't have to buy. bear