是啊,那是一个包,在Win2000server上运行可以,可如果加了sp3就报这个错,非常的急
解决方案 »
- java问题。。。懂的进来帮忙看看
- java数组赋值的地方报错
- js正则(50)
- 大哥,大姐们:这样的环境变量的设置有问题吗??没有的话,这是什么错误呢???
- 电脑同时插入50个优盘,如何把数据写入50个优盘里面?
- struts问题,按天查询出每天的个数,放入list集合,怎么按实际个案的80%显示个数值?解决就给分
- 守护线程有什么用?
- 小问题。 但是我却好头痛。 高手快来啊。
- (火急!!!)jsp调用的javaBean的线程安全问题!!!高价请教!!
- 求各路大神帮我看一下我这个多线程代码错在哪里了,为什么只能输出一行,偶尔可以两行
- applet程序问题(线上等待,谢谢!)
- 学习java有什么好的资料,书,网站!!
如果是WEBSPHERE,你是不是用VISAGE FOR JAVA生成的代码。在发布的时候原代码的CLASS前面少了PUBLIC??
* Created on 2002年7月26日, 上午9:06
*按权限分配菜单
*/package yava.bean;import java.beans.*;
import java.sql.*;
import yava.fileapp.*;
import java.util.Hashtable;
import java.io.*;
/**
*
* @author shuhw
*/
public class MenuBean extends Object implements java.io.Serializable {
public String fuserno;
public Hashtable dict=null;
public CDataCheck dc;
public int iok=0;
public MenuBean(String m_fuserno) {
this.fuserno=m_fuserno;
String sql="";
sql="SELECT fispower,fpowerno FROM tuserpower where fuserno='"+fuserno+"' ";
CDataSource ds=new CDataSource();
java.sql.Connection conn=null;
java.sql.Statement stmt=null;
java.sql.ResultSet rs=null;
dc=new CDataCheck();
try{
conn=ds.getConnection();
stmt=conn.createStatement();
rs=stmt.executeQuery(sql);
dict=new Hashtable();
String val="";
while(rs.next()){
val=String.valueOf(rs.getInt("fispower"));
dict.put(rs.getString("fpowerno"),dc.CNulls(val,"0"));
val="";
}
if(conn!=null){
rs.close();
stmt.close();
conn.close();
}
}catch(Exception e){
}
}
public int getDelAdd(){
return this.iok;
}
public int getMGMAIL(){
String c;
try{
c= (String)dict.get("MGMAIL");
return Integer.parseInt(c);
}catch(Exception e){
return 0;
}
}
public int getGHDJ(){
String c;
try{
c= (String)dict.get("GHDJ");
return Integer.parseInt(c);
}catch(Exception e){
return 0;
}
}
public int getAdmin(){
String c;
try{
c= (String)dict.get("Admin");
return Integer.parseInt(c);
}catch(Exception e){
return 0;
}
}
public int getG1(){
String c;
try{
c= (String)dict.get("G001");
return Integer.parseInt(c);
}catch(Exception e){
return 0;
}
}
public int getG2(){
String c;
try{
c= (String)dict.get("G002");
return Integer.parseInt(c);
}catch(Exception e){
return 0;
}
}
public int getG3(){
String c;
try{
c= (String)dict.get("G003");
return Integer.parseInt(c);
}catch(Exception e){
return 0;
}
}
public int getG4(){
String c;
try{
c= (String)dict.get("G004");
return Integer.parseInt(c);
}catch(Exception e){
return 0;
}
}
public int getG5(){
String c;
try{
c= (String)dict.get("G005");
return Integer.parseInt(c);
}catch(Exception e){
return 0;
}
}
public int getG6(){
String c;
try{
c= (String)dict.get("G006");
return Integer.parseInt(c);
}catch(Exception e){
return 0;
}
}
public int getG7(){
String c;
try{
c= (String)dict.get("G007");
return Integer.parseInt(c);
}catch(Exception e){
return 0;
}
}
public int getG8(){
String c;
try{
c= (String)dict.get("G008");
return Integer.parseInt(c);
}catch(Exception e){
return 0;
}
}
public int getGF1(){
String c;
try{
c= (String)dict.get("GF01");
return Integer.parseInt(c);
}catch(Exception e){
return 0;
}
}
public int getGF2(){
String c;
try{
c= (String)dict.get("GF02");
return Integer.parseInt(c);
}catch(Exception e){
return 0;
}
}
public int getGF3(){
String c;try{
c= (String)dict.get("GF03");
return Integer.parseInt(c);}catch(Exception e){ return 0;}
}
public int getGFRA(){
String c;try{
c= (String)dict.get("GFRA");
return Integer.parseInt(c);}catch(Exception e){ return 0;}
}
public int getGFRD(){
String c;try{
c= (String)dict.get("GFRD");
return Integer.parseInt(c);}catch(Exception e){ return 0;}
}
public int getGFRB(){
String c;try{
c= (String)dict.get("GFRB");
return Integer.parseInt(c);}catch(Exception e){ return 0;}
}
public int getGFRU(){
String c;try{
c= (String)dict.get("GFRU");
return Integer.parseInt(c);}catch(Exception e){ return 0;}
}
public int getGFHA(){
String c;try{
c= (String)dict.get("GFHA");
return Integer.parseInt(c);}catch(Exception e){ return 0;}
}
public int getGFHD(){
String c;try{
c= (String)dict.get("GFHD");
return Integer.parseInt(c);}catch(Exception e){ return 0;}
}
public int getGFHB(){
String c;try{
c= (String)dict.get("GFHB");
return Integer.parseInt(c);}catch(Exception e){ return 0;}
}
public int getGFHU(){
String c;try{
c= (String)dict.get("GFHU");
return Integer.parseInt(c);}catch(Exception e){ return 0;}
}
public int getGFXA(){
String c;try{
c= (String)dict.get("GFXA");
return Integer.parseInt(c);}catch(Exception e){ return 0;}
}
public int getGFXD(){
String c;try{
c= (String)dict.get("GFXD");
return Integer.parseInt(c);}catch(Exception e){ return 0;}
}
public int getGFXB(){
String c;try{
c= (String)dict.get("GFXB");
return Integer.parseInt(c);}catch(Exception e){ return 0;}
}
public int getGFXU(){
String c;try{
c= (String)dict.get("GFXU");
return Integer.parseInt(c);}catch(Exception e){ return 0;}
}
public int getGFZA(){
String c;try{
c= (String)dict.get("GFZA");
return Integer.parseInt(c);}catch(Exception e){ return 0;}
}
public int getGFZD(){
String c;try{
c= (String)dict.get("GFZD");
return Integer.parseInt(c);}catch(Exception e){ return 0;}
}
public int getGFZB(){
String c;try{
c= (String)dict.get("GFZB");
return Integer.parseInt(c);}catch(Exception e){ return 0;}
}
public int getGFZU(){
String c;try{
c= (String)dict.get("GFZU");
return Integer.parseInt(c);}catch(Exception e){ return 0;}
}
public int getGR1(){
String c;
try{
c= (String)dict.get("GR01");
return Integer.parseInt(c);
}catch(Exception e){
return 0;
}
}
public int getGR2(){
String c;
try{
c= (String)dict.get("GR02");
return Integer.parseInt(c);
}catch(Exception e){
return 0;
}
}
public int getGR3(){
String c;
try{
c= (String)dict.get("GR03");
return Integer.parseInt(c);
}catch(Exception e){
return 0;
}
}
public int getGR4(){
String c;
try{
c= (String)dict.get("GR04");
return Integer.parseInt(c);
}catch(Exception e){
return 0;
}
}
public int getM1(){
String c;
try{
c= (String)dict.get("M001");
return Integer.parseInt(c);
}catch(Exception e){
return 0;
}
}
public int getM2(){
String c;
try{
c= (String)dict.get("M002");
return Integer.parseInt(c);
}catch(Exception e){
return 0;
}
}
public int getM3(){
String c;
try{
c= (String)dict.get("M003");
return Integer.parseInt(c);
}catch(Exception e){
return 0;
}
}
public int getM4(){
String c;
try{
c= (String)dict.get("M004");
return Integer.parseInt(c);
}catch(Exception e){
return 0;
}
}