问答详情
源自:5-6 setProperty

jsp:useBean?

<%@ page language="java" import="java.util.*" contentType="text/html; charset=utf-8"

%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'dojava.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>
  <jsp:useBean id="myuser" class="bean.Bean" scope="page"/>//这里会报错,不知道什么原因,求大神指点
    <h1>setProperty动作标签</h1>
    
  </body>
</html>


提问者:黄森huang 2016-11-10 19:14

个回答

  • qq_这是只仓鼠_0
    2017-03-02 00:06:36

    请把全部代码 和报错提示也附上来,否则如何分析

  • 慕虎4894160
    2016-11-11 10:53:50

     class="bean.Bean"这个值填的是正确吗?http://img.mukewang.com/582532ae0001752811860464.jpg