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

 

    摘要: 您好: 我在对话框里面使用clistbox的消息lbn_selchange 然后再事件里面 if (m_list.getselcount()==lb_err) messagebox("error"); 可是为什么无论我选择列表框里面的哪一项,都弹出error。 我应该使用什么消息,clistbox的那个方法才能够得出我选择的内容条目! 在classwinzard里......
    摘要: 昨天用猫测试了一下: 平时在局域网(不及10m网速)中需要100ms就搞定的数据提取,改用猫(40k)后变成6500ms。好,网络带宽悬殊比较大,暂时不理它。那么。 今天测试了在局域网内直连sql server与用多层连接,分三种模式: 1:direct 直连 2:mode1,多层,其中逻辑、数据传输层、数据模块层服务器在sql server服务器所在的机器上。 3:mode2,多层,其中......


帮我看看是什么错误

welcome.java代码:  
  package   welcome;  
  import   javax.servlet;  
  import   javax.servlet.http.*;  
  import   java.util.*;  
  import   java.lang.*  
   
  public   class   welcome   {  
      String   welcomestring   =new   String("欢迎您的光临!!");  
      Date   UseTime=new   Date();  
   
  public   welcome(){  
  }  
   
  public   String   getwelcomestring()  
  {  
      return   this.welcomestring;  
  }  
   
  public   void   setwelcomestring(String   welcomestr)  
  {  
      this.welcomestring=welcomestr;  
  }  
   
  public   String   getUserTime()  
  {  
      return   this.UseTime.toString();  
  }  
   
  public   void   setUserTime()  
  {  
      this.getUserTime();  
  }  
  }  
   
  welcome.jsp代码:  
  <jsp:useBean   id="wel"   scope="application"   class="welcome.welcome"/>  
  <%  
  if   (request.getParameter("welstr")==null)  
  {  
      //do   nothing  
  }  
  else  
  {  
      String   Tempwelstr=request.getParameter("welstr").toString();  
      wel.setwelcomestring(Tempwelstr);  
  }  
  out.println("<center>");  
  out.println("JAVA   Bean   页面,"   +   wel.getwelcomestring()   +   "<br>");  
  out.println("</center>");  
  out.println("<center>");  
  out.println("登陆系统的时间"   +   wel.getUserTime());  
  out.println("</center>");  
  %>  
   
  错误提示:  
  500   Servlet   Exception  
  error:   File   D:\JCreator   Pro\MyProjects\welcome.java   does   not   contain   type  
  welcome   as   expected.   Please   adjust   the   class   path   so   that   the   file   does  
  not   appear   in   the   unnamed   package.  
  /welcome.jsp:15:   Class   welcome   not   found.  
              welcome.welcome   wel;  
                            ^  
  /welcome.jsp:17:   Class   welcome   not   found.  
                  wel   =   (welcome.welcome)   application.getAttribute("wel");  
                                              ^  
  /welcome.jsp:19:   Class   welcome   not   found.  
                      wel   =   new   welcome.welcome();  
                                                        ^  
  /welcome.jsp:27:   Variable   wel   may   not   have   been   initialized.  
  out.println("JAVA   Bean   \u9875\u9762,"   +   wel.getwelcomestring()   +   "<br>");  
                                                                                  ^  
  5   errors  
   
 

NO.1   作者: leshui

你的.java文件有没有编译成.class文件???  
  要编译以后才可以用

NO.2   作者: sike_bit

可能:1。.java文件有没有编译成.class文件  
  2.   .class文件放置的位置不对。设置一下路径  
  :)  
 

NO.3   作者: hpyhero

不用编译,你把   .java文件放在resin\doc\web-inf\class\welcome里,运行你的jsp就行了


    摘要: sql server ip 192.168.0.20,用户名sa 密码 admin 数据库 ku1 表 bao1 有字段bao_id,bao_a,bao_b,bao_c. 把bao_c为1的数据全部读出. 并用while写给变量bid,ba,bb,bc. 再把bao_c为1的数据改成bao_c为2. 谢谢 ......
» 本期热门文章:

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