<jsp:useBean id=”searchbean” class=”org.test.class” scope=”request” />
<jsp:setProperty name=”mybean” property=”*” />
</jsp:useBean>
Notice I used the shorthand /> to close off the <jsp:useBean> and left a dangling </jsp:useBean>
This error was not caught by myeclipse.. and the JSP compiled fine with Tomcat and worked correctly. Problem is, that when I deployed on BEA 7.0 and 8.1 both gave me compile errors about a missing catch block.. usually that is caused by programming an extra }, but in this case, BEA blindly generated code for that </jsp:useBean> tag..
I don’t see why this is not a syntax error at the JSP level in all environments… comments?