是啊,那是一个包,在Win2000server上运行可以,可如果加了sp3就报这个错,非常的急
解决方案 »
- 想用java做一个基于B/S结构的系统,要学什么?
- 用java程序显示目录列表
- 重定义父类的数据域,常不常见? 20分钟后结贴
- opennms怎么配置
- 程序中加入package后,执行时出现问题~!!!!!!!
- [讨论]大家一般用java开发什么类型的软件
- 如何设置JtextField可以输入的字符宽度
- byte[7]数组,内容为1,2,...7,转换为String,String显示为"1234567"怎么转换
- 什么时候应该try{}catch(){}
- 请问如何用Java从Oracle数据库中读取媒体文件,如图片,mpeg 等
- 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;
}
}