在java类中明明定义了方法,在jsp中调用此方法编写过程中也没提醒错误,运行时却出现未定义该方法的错误,怎么回事
<%@ page import="com.md.model.UserBean" %>
<%@ page import="java.util.ArrayList"%>
<%@ page import=" com.md.model.UserDeal" %>
<%@ page import="java.sql.*"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
登陆成功,恭喜<%=request.getParameter("user") %>
<a herf="Login.jsp">返回重新登陆</a>
<hr>
<h1>用户列表</h1>
<%
int pageNow=1;//默认显示第一页
String pn=request.getParameter("pageNow");
if(pn!=null){
pageNow=Integer.parseInt(pn);
UserDeal ud=new UserDeal();
ArrayList al=ud.getByPage(pageNow);
%>