commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jstrac...@apache.org
Subject cvs commit: jakarta-commons-sandbox/jelly/src/test/org/apache/commons/jelly testThread.jelly
Date Wed, 26 Jun 2002 09:17:44 GMT
jstrachan    2002/06/26 02:17:44

  Added:       jelly/src/test/org/apache/commons/jelly testThread.jelly
  Log:
  Added Vinay's <thread> tag which supports evaluating a block of Jelly script asynchronously
in another thread.
  
  Revision  Changes    Path
  1.1                  jakarta-commons-sandbox/jelly/src/test/org/apache/commons/jelly/testThread.jelly
  
  Index: testThread.jelly
  ===================================================================
  <?xml version="1.0"?>
  <j:jelly trim="false" xmlns:j="jelly:core" xmlns:x="jelly:xml">
  
  About to spawn another thread...
  
  <!--
  <j:thread name="thread1" file="target/thread.xml">
    <x:parse var="doc">
      <web-app>
        <servlet>
          <servlet-name>snoop</servlet-name>
          <servlet-class>SnoopServlet</servlet-class>
        </servlet>
        <servlet>
          <servlet-name>file</servlet-name>
          <servlet-class>ViewFile</servlet-class>
          <init-param>
            <param-name>initial</param-name>
            <param-value>1000</param-value>
            <description>
              The initial value for the counter  
            </description>
          </init-param>
        </servlet>
        <servlet-mapping>
          <servlet-name>snoop</servlet-name>
          <url-pattern>/foo/snoop</url-pattern>
        </servlet-mapping>
      </web-app>
    </x:parse>
  
    <j:whitespace>	
    <x:set var="count" select="count($doc//servlet)"/>
    <x:forEach var="s" select="$doc//servlet">
      name: <x:expr select="$s/servlet-name"/>
      class: <x:expr select="$s/servlet-class"/>
    </x:forEach>
  
    There are <x:expr select="$count"/> servlet(s)
    </j:whitespace>	
  </j:thread>
  -->
  
  The thread should have started now!
  
  </j:jelly>
  
  
  
  
  
  
  

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


Mime
View raw message