The method init(String) is undefined for the type GoodsField 在线等!!
GoodsField.java
package com.netshop;
import java.sql.*;
import java.text.*;
public class GoodsField extends executeWay
{
	private long ID;
	private String name;
	private int tag;
	public GoodsField()
	{	
		ID=0;
		name="";
		tag=0;	
	}
	public String getName()
	{
		return this.name;
	}
	public void setName(String name)
	{
		this.name=name;
	}	
	public int getTag()
	{
		return this.tag;
	}
	public void setTag(int tag)
	{
		this.tag=tag;
	}
	public boolean init(String webID)
	{
		String strSql="select * from goodsField where name='"+webID+"'";
		try
		{
			ResultSet rs=super.exeSqlQuery(strSql);
			if(rs.next())
			{
				ID=rs.getLong("ID");
				name=rs.getString("name");
				tag=rs.getInt("tag");
				return true;
			}
			else
			{
				return false;
			}
		}
		catch(Exception ex)
		{	
			System.out.println(ex.toString());
			return false;
		}
	}
}
query.jsp
<%@ page contentType="text/html; charset=utf-8" language="java" import="java.sql.*" 
errorPage="" %>
<%@ page import="com.netshop.*"%>
<jsp:useBean scope="session" id="at"  class="com.netshop.GoodsField"/>  
<%
String webID="1";
at.init(webID);
at.getName();
%>
运行时提示The method init(String) is undefined for the type GoodsField
着GoodsField里可是有init()啊?求解
------解决方案--------------------
緩存問題,重新布署,先把工程刪了,再導入 !