在Myeclipse10.0中怎么运行JavaBean,求大侠指教
Meclipse10.0中怎样运行JavaBeane<%@ page language="java" import="java.util.*" pageEncoding="GB2312"%>
<jsp:useBean id="dbcon" class="package.dbcon" scope="page"></jsp:useBean>
<html>
<head>
<title>My JSP 'check.jsp' starting page</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
<link rel="stylesheet" type="text/css" href="styles.css">
-->
</head>
<body>
<%
String rand1=request.getParameter("rand1");
String rand=(String)session.getAttribute("rand");
if(!rand1.equals(rand))
{
out.println("验证码出错");
response.sendRedirect("login.jsp");}
%>
</body>
</html>
我在webproject下的src中创建了一个MyBean的包存放dbcon的JavaBean但是在jsp运行中却出现check.jsp (line: 3, column: 0) The value for the useBean class attribute package.dbcon is invalid.求各位大侠指教 --------------------编程问答-------------------- 用 import 把你的bean 引入 就好了 --------------------编程问答-------------------- 谢谢,这个问题我已解决,是我的JavaBean的访问权限设置的错误
补充:Java , Eclipse