xml-xang-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mdier...@locus.apache.org
Subject cvs commit: xml-xang/java/samples/hello hello.xap system.script.xml
Date Fri, 26 May 2000 16:19:41 GMT
mdierken    00/05/26 09:19:40

  Modified:    java/samples/hello hello.xap system.script.xml
  Log:
  Update the way layout resources are referenced during loading.
  
  Revision  Changes    Path
  1.2       +2 -4      xml-xang/java/samples/hello/hello.xap
  
  Index: hello.xap
  ===================================================================
  RCS file: /home/cvs/xml-xang/java/samples/hello/hello.xap,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- hello.xap	2000/03/24 22:25:44	1.1
  +++ hello.xap	2000/05/26 16:19:38	1.2
  @@ -48,7 +48,7 @@
   		function base64Decode(text)
   		{
   			decoder = new Packages.org.apache.xang.util.encoding.BASE64Decoder();
  -			text = new Packages.java.lang.String(decoder.decodeBuffer(parameters.get("text")));
  +			text = decoder.processToText(parameters.get("text"));
   			return text;
   		}				
   		/** Encode base64 text
  @@ -56,9 +56,7 @@
   		function base64Encode(text)
   		{
   			encoder = new Packages.org.apache.xang.util.encoding.BASE64Encoder();
  -			
  -			text = new Packages.java.lang.String(text);
  -			text = encoder.encodeBuffer(text.getBytes());
  +			text = encoder.processToText(text);
   			return text;
   		}
   		
  
  
  
  1.2       +4 -1      xml-xang/java/samples/hello/system.script.xml
  
  Index: system.script.xml
  ===================================================================
  RCS file: /home/cvs/xml-xang/java/samples/hello/system.script.xml,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- system.script.xml	2000/03/24 22:25:44	1.1
  +++ system.script.xml	2000/05/26 16:19:39	1.2
  @@ -55,7 +55,10 @@
   	}
   
   	if (base != null && (layout.indexOf(':') <= 1))
  -		layout = base + layout;
  +	{
  +		media_root = Packages.org.apache.xang.util.ServletUtil.getRealPath(context);
  +		layout = media_root + "/" + base + layout;
  +	}
   
   	if (layout != null)
   	{
  
  
  

Mime
View raw message