Hi all, Is there any difference between the following code in order to use bean?
<%@ page import="java.sql.*"%> <jsp:useBean id="connection" class="br.fua.ppgi.ConnectionBean" scope="session"/> <%@ page import="java.sql.*,br.fua.ppgi.*"%> <jsp:useBean id="connection" class="ConnectionBean" scope="session"/> The former code (I followed the core servlets and JSP book's idea) is doing well , but the latter code (I followed the Web Development with JavaServer Pages book's idea) shows me an error on the browser as: javax.servlet.ServletException: ConnectionBean ... ... root cause java.lang.InstantiationException: ConnectionBean ... ... Could anyone help me? Regards, Lin. -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
