当前位置:首页
开发技术指南» 文章正文
    引言:
 

 

 ·这样的sql 怎样写    »显示摘要«
    摘要: 表内容如下: proj_id wbs_id type name 1 a 001 aa 1 b 001 bb 1 b 003 cc 1 c 001 cc 1 d 001 dd 1 d 003 ee 我想查询到如下内容 proj_id wbs_id type name name1 1 a 001 aa aa 1 b 003 bb cc 1 c 001 cc cc 1 d 003 ee dd 也......
    摘要: ##include <stdio.h> #include <conio.h> #include <stdlib.h> #include <limits.h> #include <time.h> int in[1000][5]; int person[1000][5]; int tempperson[1000][5]; int gr......


找不到包在线等

import   javax.servlet.*;    
  import   javax.servlet.http.*;    
  import   java.io.*;    
  import   java.util.*;    
  public   class   HelloServlet   extends   HttpServlet   {    
  public   void   init(ServletConfig   config)   throws   ServletException   {    
  super.init(config);    
  }    
  public   void   service(HttpServletRequest   req,   HttpServletResponse   res)   throws   ServletException,   IOException   {    
  String   clientIPAddress   =   req.getRemoteAddr();    
  res.setContentType("text/html");    
  ServletOutputStream   out   =   res.getOutputStream();    
  out.println("<html>");    
  out.println("<head><title>Hello   World</title></head>");    
  out.println("<body>");    
  out.println("<h1>Hello,You   come   from   "+clientIPAddress+"</h1>");    
  out.println("</body></html>");    
  }    
  }    
   
   
   
  大家看这段代码我在javac时提示说  
    package   javax.servlet   does   not   exist  
   
  可是我装jdk1.4和tomcat4了,为什么找不到它呢,但是tomcat带的例子也都导入了这些包,我应该怎么才能编译呢?在线急盼

NO.1   作者: zcjl

在电脑中搜索servlet.jar,加入classpath或是放到tomcat/common/lib文件夹中

NO.2   作者: aku0708

同意zcjl的意见

NO.3   作者: bobZ

tomcat的servlet.jar包就在tomcat/common/lib中,将tomcat/common/lib加进classpath没有?  
 

NO.4   作者: junnef

是呀,把那个servlet包的路径加入classpath中就行了,tomcat/common/lib/servlet.jar。


    摘要: treeview控件,如何让其点击结点后再从数据库中取得这个节点的下一层节点? 因为我的树非常庞大,一次读出来,速度会非常慢,只一层一层的去读! 大虾帮帮忙吧!成功后立马付帐!:) ......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE