薛之谦北方姑娘:jsp中,请教 cannot find symbol:的错误
来源:百度文库 编辑:高考问答 时间:2024/05/12 10:01:05
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page import="java.util.*" %>
<%@ page import="javax.servlet.*" %>
<%@ page import="myPackage.*" %>
<%
Vector v=(Vector)session.getAttribute(Constants.NEWS_LIST_KEY);
news news1=null;
%>
<html>
<head>
。。。。。
后面不用写了,只有一个错误,就在"Vector v=。。。"这一行,
提示:cannot find symbol:symbol:variable Constants。
我是照书上打的,而且搞不懂Constants是什么
<%@ page import="java.util.*" %>
<%@ page import="javax.servlet.*" %>
<%@ page import="myPackage.*" %>
<%
Vector v=(Vector)session.getAttribute(Constants.NEWS_LIST_KEY);
news news1=null;
%>
<html>
<head>
。。。。。
后面不用写了,只有一个错误,就在"Vector v=。。。"这一行,
提示:cannot find symbol:symbol:variable Constants。
我是照书上打的,而且搞不懂Constants是什么
Constants是自定义常量类
class Constants{
public static final NEWS_LIST_KEY = "xxx";
}
jsp中,请教 cannot find symbol:的错误
Cannot find Wave Volume control
cannot find pagemaker'sresource directory是什么意思,
cannot find symbol; symbol : class MetadataObject,
电脑说cannot find hard drive
虚拟机中系统不能启动Cannot find a serial number to unlock this version of VMware Workstation.
请教eclipse中运行jsp的问题
Windows XP ICS Status: cannot find working ICS.
开机后显示cannot find system.ini无法进入win98
“Grand Theft Auto SA cannot find Audio card ”怎么回事?