cmlenz      02/03/17 11:47:17

  Modified:    web/taglib-examples index.html jstl_xpath_example.jsp
  Log:
  Update to JSTL Beta 1
  - JavaScript (Rhino) no longer a dependancy
  - <c:expr> is now <c:out>
  - <x:expr> is now <x:out>
  - Expression syntax changes
  
  Revision  Changes    Path
  1.2       +0 -7      jakarta-slide/web/taglib-examples/index.html
  
  Index: index.html
  ===================================================================
  RCS file: /home/cvs/jakarta-slide/web/taglib-examples/index.html,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- index.html        28 Jan 2002 12:33:58 -0000      1.1
  +++ index.html        17 Mar 2002 19:47:17 -0000      1.2
  @@ -83,13 +83,6 @@
                 <br><br>
                 <table border="0" cellpadding="5" cellspacing="0">
                   <tr>
  -                  <td><code>js.jar</code></td>
  -                  <td>
  -                    <a href="http://www.mozilla.org/rhino/";>Mozilla 
Rhino</a>&nbsp;-&nbsp;
  -                    A Java implementation of JavaScript/ECMAScript.
  -                  </td>
  -                </tr>
  -                <tr>
                     <td><code>jaxen-full.jar</code></td>
                     <td>
                       <a href="http://jaxen.org/";>Jaxen</a>&nbsp;-&nbsp;
  
  
  
  1.2       +11 -18    jakarta-slide/web/taglib-examples/jstl_xpath_example.jsp
  
  Index: jstl_xpath_example.jsp
  ===================================================================
  RCS file: /home/cvs/jakarta-slide/web/taglib-examples/jstl_xpath_example.jsp,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- jstl_xpath_example.jsp    28 Jan 2002 12:33:58 -0000      1.1
  +++ jstl_xpath_example.jsp    17 Mar 2002 19:47:17 -0000      1.2
  @@ -1,6 +1,6 @@
  -<%@ taglib uri="http://java.sun.com/jstl/ea/core";  prefix="core" %>
  -<%@ taglib uri="http://java.sun.com/jstl/ea/xml";  prefix="xml" %>
  -<%@ taglib uri="http://jakarta.apache.org/slide/tags-jstl-1.0";  prefix="slide" %>
  +<%@ taglib prefix='c'     uri='http://java.sun.com/jstl/ea/core' %>
  +<%@ taglib prefix='x'     uri='http://java.sun.com/jstl/ea/xml' %>
  +<%@ taglib prefix='slide' uri='http://jakarta.apache.org/slide/tags-jstl-1.0' %>
   
   <html>
     <head>
  @@ -17,20 +17,13 @@
       <p>
         <form method='GET'>
           Enter location of a web.xml file in the Slide namespace:<br>
  -        <core:choose>
  -          <core:when test="$params.uri != null">
  -            <input name='uri' type='text' size='80' value='<core:expr 
value="$params.uri[0]" default=""/>'/>
  -          </core:when>
  -          <core:otherwise>
  -            <input name='uri' type='text' size='80' value='/files/WEB-INF/web.xml'/>
  -          </core:otherwise>
  -        </core:choose>
  +        <input name='uri' type='text' size='80' value='<c:out value="${param.uri}" 
default="/files/WEB-INF/web.xml"/>'/>
           <input type='submit'>
           <input type='reset'>
         </form>
       </p>
  -    <core:if test="$params.uri != null">
  -      <slide:node uri="$params.uri[0]">
  +    <c:if test="${param.uri != null}">
  +      <slide:node uri="${param.uri}">
           <xml:parse var="webxml"><slide:content/></xml:parse>
           <center><h2>Servlets</h2>
           <table bgcolor='#cccccc' border='2' cellpadding='2' cellspacing='2' 
width='90%'>
  @@ -40,8 +33,8 @@
             </tr>
             <xml:forEach select="$webxml/web-app/servlet">
               <tr>
  -              <td><xml:expr select="servlet-name"/></td>
  -              <td><code><xml:expr select="servlet-class"/></code></td>
  +              <td><xml:out select="servlet-name"/></td>
  +              <td><code><xml:out select="servlet-class"/></code></td>
               </tr>
             </xml:forEach>
           </table></center>
  @@ -53,13 +46,13 @@
             </tr>
             <xml:forEach select="$webxml/web-app/servlet-mapping">
               <tr>
  -              <td><xml:expr select="servlet-name"/></td>
  -              <td><code><xml:expr select="url-pattern"/></code></td>
  +              <td><xml:out select="servlet-name"/></td>
  +              <td><code><xml:out select="url-pattern"/></code></td>
               </tr>
             </xml:forEach>
           </table></center>
         </slide:node>
  -    </core:if>
  +    </c:if>
       <br><hr>
       <center><a href="index.html"><img src="images/return.gif" alt="Return" 
border="0"></a></center>
     </body>
  
  
  

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to