jsp高手来! 无法解析为类型问题
<%@pagelanguage="java"import="java.sql.*,java.util.*,mydesign.*"%><html><body><jsp:us...
<%@ page language="java" import="java.sql.*,java.util.*,mydesign.*" %>
<html>
<body>
<jsp:useBean id="connBean" scope="application" class="connBean"/>
<%
Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver");
Connection con=DriverManager.getConnection("jdbc:microsoft:sqlserver://127.0.0.1:1433;DatabaseName=MyDesign","sa","933713");
connBean.setConnection(con);
connBean.setInuse(true);
out.println("connection : "+connBean.getConnection()+"<br>"+"inuse : "+connBean.getInuse()+"<br>");
con.close();
%>
</body>
</html>
错误:connBean无法解析为类型 展开
<html>
<body>
<jsp:useBean id="connBean" scope="application" class="connBean"/>
<%
Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver");
Connection con=DriverManager.getConnection("jdbc:microsoft:sqlserver://127.0.0.1:1433;DatabaseName=MyDesign","sa","933713");
connBean.setConnection(con);
connBean.setInuse(true);
out.println("connection : "+connBean.getConnection()+"<br>"+"inuse : "+connBean.getInuse()+"<br>");
con.close();
%>
</body>
</html>
错误:connBean无法解析为类型 展开
3个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询