大家帮我看一个问题!!!

tiandiqing 2004-09-28 03:52:01
--------------------Configuration: JDK version 1.4 <Default>--------------------
C:\HelloWorld\ShoppingServlet.java:25: incompatible types
found : java.lang.Object
required: java.util.Vector
Vector buylist = session.getAttribute("shopping.shoppingcart");
^
C:\HelloWorld\ShoppingServlet.java:69: cannot resolve symbol
symbol : class ServletContent
location: class ShoppingServlet
ServletContent sc = getServletContext();
^
Note: C:\HelloWorld\ShoppingServlet.java uses or overrides a deprecated API.

Note: Recompile with -deprecation for details.
2 errors

Process completed.


可是该导的我已经导入了!!!!
import java.io.*;
import java.text.*;
import java.util.*;
import javax.servlet.*;
import javax.servlet.http.*;
...全文
28 点赞 收藏 2
写回复
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
wssgwps 2004-09-28
Vector buylist = (Vector)session.getAttribute("shopping.shoppingcart");
ServletContext sc = getServletContext();
回复
loveunittesting 2004-09-28
老兄,仔细点好不好。
Vector buylist = (Vector)session.getAttribute("shopping.shoppingcart");
________
ServletContext sc = getServletContext();
___
回复
发动态
发帖子
Web 开发
创建于2007-09-28

7.9w+

社区成员

Java Web 开发
申请成为版主
社区公告
暂无公告