jakarta-bsf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From orlikow...@apache.org
Subject cvs commit: jakarta-bsf/samples/xsl TableFiller.java
Date Tue, 08 Jul 2003 14:29:34 GMT
orlikowski    2003/07/08 07:29:34

  Modified:    samples/calc TestCalc.java
               samples/jsplike JSPLikeInJavaScript.java
                        JSPLikeInNetRexx.java
               samples/scriptedui ScriptedUI.java
               samples/xsl TableFiller.java
  Log:
  Sigh.
  Ant'll tell you when you miss something.
  
  Fix the build break due to the samples still using the old parameter list.
  Let the apologies for build breakages Jakarta-wide commence.
  
  Revision  Changes    Path
  1.2       +1 -1      jakarta-bsf/samples/calc/TestCalc.java
  
  Index: TestCalc.java
  ===================================================================
  RCS file: /home/cvs/jakarta-bsf/samples/calc/TestCalc.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- TestCalc.java	25 Jun 2003 09:14:13 -0000	1.1
  +++ TestCalc.java	8 Jul 2003 14:29:31 -0000	1.2
  @@ -31,7 +31,7 @@
       manager.declareBean("frame", this, this.getClass());
       try
       {
  -     manager.exec(manager.getLangFromFilename(fileName), fileName, 0, 0, 
  +     manager.exec(manager.getLangFromFilename(fileName), 
                    IOUtils.getStringFromReader(new FileReader(fileName)));
       }catch(BSFException e )
       {
  
  
  
  1.2       +6 -7      jakarta-bsf/samples/jsplike/JSPLikeInJavaScript.java
  
  Index: JSPLikeInJavaScript.java
  ===================================================================
  RCS file: /home/cvs/jakarta-bsf/samples/jsplike/JSPLikeInJavaScript.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- JSPLikeInJavaScript.java	25 Jun 2003 09:14:13 -0000	1.1
  +++ JSPLikeInJavaScript.java	8 Jul 2003 14:29:31 -0000	1.2
  @@ -43,24 +43,23 @@
       System.out.println ("<head><title>JSPLike</title></head>");
       System.out.println ("<body>");
       
  -    result = js.eval ("", 0, 0,
  -		      "var response = bsf.lookupBean (\"response\");" +
  +    result = js.eval ("var response = bsf.lookupBean (\"response\");" +
   		      "var startDate = new java.util.Date ();" +
   		      "var startDateStr = startDate + \"\";");
       System.out.print ("<h1>Welcome at ");
  -    result = js.eval ("", 0, 0,"startDateStr");
  +    result = js.eval ("startDateStr");
       System.out.println (result + "</h1>");
       System.out.println ("stuff");
       System.out.print ("Response bean's length is: ");
  -    result = js.eval ("", 0, 0,"response.length() + \"\"");
  +    result = js.eval ("response.length() + \"\"");
       System.out.println (result);
       System.out.print ("Response bean's uppercase value is: ");
  -    result = js.eval ("", 0, 0,"response.toUpperCase() + \"\"");
  +    result = js.eval ("response.toUpperCase() + \"\"");
       System.out.println (result);
  -    result = js.eval ("", 0, 0,"var endDate = new java.util.Date ();" +
  +    result = js.eval ("var endDate = new java.util.Date ();" +
   		      "var endDateStr = endDate + \"\";");
       System.out.print ("<h5>Page generation done at ");
  -    result = js.eval ("", 0, 0,"endDateStr");
  +    result = js.eval ("endDateStr");
       System.out.println (result + "</h5>");
       System.out.println ("</body>");
       System.out.println ("</html>");
  
  
  
  1.2       +5 -5      jakarta-bsf/samples/jsplike/JSPLikeInNetRexx.java
  
  Index: JSPLikeInNetRexx.java
  ===================================================================
  RCS file: /home/cvs/jakarta-bsf/samples/jsplike/JSPLikeInNetRexx.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- JSPLikeInNetRexx.java	25 Jun 2003 09:14:13 -0000	1.1
  +++ JSPLikeInNetRexx.java	8 Jul 2003 14:29:31 -0000	1.2
  @@ -40,7 +40,7 @@
     public JSPLikeInNetRexx () throws BSFException {
       rexx = mgr.loadScriptingEngine ("netrexx");
   
  -    System.out.println("<!- Using "+rexx.eval ("", 0, 0,"Version")+" ->");
  +    System.out.println("<!- Using "+rexx.eval ("Version")+" ->");
       
       // first register the response bean into the runtime 
       mgr.registerBean ("response", new String ("howdy-doody"));
  @@ -52,18 +52,18 @@
       System.out.println ("<body>");
       
       System.out.print ("<h1>Welcome at ");
  -    result = rexx.eval ("", 0, 0,"java.util.Date().toString()");
  +    result = rexx.eval ("java.util.Date().toString()");
       System.out.println (result + "</h1>");
       System.out.println ("stuff");
       System.out.print ("Response bean's length is: ");
  -    result = rexx.eval ("", 0, 0,"java.lang.Integer((java.lang.String " +
  +    result = rexx.eval ("java.lang.Integer((java.lang.String " +
                                    "bsf.lookupBean('response')).length)");
       System.out.println (result);
       System.out.print ("Response bean's uppercase value is: ");
  -    result = rexx.eval ("", 0, 0,"(java.lang.String bsf.lookupBean('response')).toUpperCase()");
  +    result = rexx.eval ("(java.lang.String bsf.lookupBean('response')).toUpperCase()");
       System.out.println (result);
       System.out.print ("<h5>Page generation done at ");
  -    result = rexx.eval ("", 0, 0,"java.util.Date().toString()");
  +    result = rexx.eval ("java.util.Date().toString()");
       System.out.println (result + "</h5>");
       System.out.println ("</body>");
       System.out.println ("</html>");
  
  
  
  1.2       +1 -1      jakarta-bsf/samples/scriptedui/ScriptedUI.java
  
  Index: ScriptedUI.java
  ===================================================================
  RCS file: /home/cvs/jakarta-bsf/samples/scriptedui/ScriptedUI.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- ScriptedUI.java	25 Jun 2003 09:14:13 -0000	1.1
  +++ ScriptedUI.java	8 Jul 2003 14:29:31 -0000	1.2
  @@ -32,7 +32,7 @@
         FileReader in = new FileReader (fileName);
         String script = IOUtils.getStringFromReader (in);
   
  -      mgr.exec (language, fileName, -1, -1, script);
  +      mgr.exec (language, script);
       } catch (BSFException e) {
         System.err.println ("Ouch: " + e.getMessage ());
         e.printStackTrace ();
  
  
  
  1.2       +1 -1      jakarta-bsf/samples/xsl/TableFiller.java
  
  Index: TableFiller.java
  ===================================================================
  RCS file: /home/cvs/jakarta-bsf/samples/xsl/TableFiller.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- TableFiller.java	25 Jun 2003 09:14:14 -0000	1.1
  +++ TableFiller.java	8 Jul 2003 14:29:31 -0000	1.2
  @@ -45,7 +45,7 @@
       // load and run the xsl file to fill in the table. Note that we're
       // running the xsl script for its side effect of filling in the table
       // and so we don't care what the resulting document is.
  -    mgr.exec ("xslt", xslfilename, 0, 0, 
  +    mgr.exec ("xslt", 
   	      IOUtils.getStringFromReader (new FileReader (xslfilename)));
   
       // display the frame
  
  
  

Mime
View raw message