Discussion:
Servlet
(时间太久无法回复)
雙面虎
2006-09-09 01:52:28 UTC
Permalink
我用書上的範例 編譯錯誤訊息如下

Sample013.java:2: package javax.servlet does not exist
import javax.servlet.*;
^
Sample013.java:3: package javax.servlet.http does not exist
import javax.servlet.http.*;
^
Sample013.java:5: cannot resolve symbol
symbol : class HttpServlet
location: class Sample013
public class Sample013 extends HttpServlet {
^
Sample013.java:6: cannot resolve symbol
symbol : class HttpServletRequest
location: class Sample013
public void doGet(HttpServletRequest request, HttpServletResponse response)
^
Sample013.java:6: cannot resolve symbol
symbol : class HttpServletResponse
location: class Sample013
public void doGet(HttpServletRequest request, HttpServletResponse response)
^
Sample013.java:7: cannot resolve symbol
symbol : class ServletException
location: class Sample013
throws ServletException, IOException
^
6 errors
我Tomcat有再跑
不知是什麼原因?

--
╭┬╮
│┴│╭─﹏﹏────────────── Web bbs http://bbs.ice.cycu.edu.tw
└┬┘│中原資工神秘之旅 Post by [37;1 redbug  │
╰﹏╯ From:220-139-90-11.dynamic.hinet.n  ╰﹏﹏bbs.ice.cycu.edu.tw﹏﹏Ω
foolish
2006-09-10 06:19:48 UTC
Permalink
參考這討論串,基本上是一樣的問題。

kungshang. ◆ 為何我無法編譯標籤類別?
Post by 雙面虎
我用書上的範例 編譯錯誤訊息如下
Sample013.java:2: package javax.servlet does not exist
import javax.servlet.*;
^
--
※ Origin: SayYA 資訊站 <bbs.sayya.org> 
◆ From: pc210-59-94-161.nutn.edu.tw

继续阅读narkive:
Loading...