You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by po...@apache.org on 2004/02/05 23:32:31 UTC

cvs commit: jakarta-commons/jelly/src/java/org/apache/commons/jelly JellyContext.java

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