commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From p...@apache.org
Subject cvs commit: jakarta-commons/jelly/src/java/org/apache/commons/jelly JellyContext.java
Date Thu, 05 Feb 2004 22:32:31 GMT
polx        2004/02/05 14:32:31

  Modified:    jelly/src/java/org/apache/commons/jelly JellyContext.java
  Log:
  Fixing bug #JELLY-90 which should allow jelly to run in a sandboxed environment.
  We could work so that demoes are actually also applets.
  paul
  
  Revision  Changes    Path
  1.50      +8 -4      jakarta-commons/jelly/src/java/org/apache/commons/jelly/JellyContext.java
  
  Index: JellyContext.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/jelly/src/java/org/apache/commons/jelly/JellyContext.java,v
  retrieving revision 1.49
  retrieving revision 1.50
  diff -u -r1.49 -r1.50
  --- JellyContext.java	18 Dec 2003 17:05:23 -0000	1.49
  +++ JellyContext.java	5 Feb 2004 22:32:30 -0000	1.50
  @@ -168,10 +168,14 @@
           this.rootURL = rootURL;
       }
   
  -    private void init() {
  -        variables.put("context", this);
  -        variables.put("systemScope", System.getProperties());
  -    }    
  +	private void init() {
  +		variables.put("context",this);
  +		try {
  +			variables.put("systemScope", System.getProperties() );
  +		} catch (SecurityException e) {
  +			// ignore security exceptions
  +		}
  +	}
       
       /**
        * @return the parent context for this context
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message