BBS水木清华站∶精华区

发信人: alou (lou), 信区: Java        
标  题: Re:  请问jsp中bean相互调用问题 
发信站: BBS 水木清华站 (Tue Sep  5 09:08:45 2000) 
 
【 在 smashing (最后一枪) 的大作中提到: 】 
 能详细到代码吗,谢谢 
 
public class Bean2 

  private Bean2 theInstance; 
  private Bean2( ){ ... } 
  public Bean2 getInstance( ) 
  { 
    if( theInstance == null ) 
       theInstance = new Bean2; 
    return theInstance; 
  } 
  ... 

 
-- 
 
※ 来源:·BBS 水木清华站 smth.org·[FROM: 202.112.101.154] 

BBS水木清华站∶精华区