tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From craig...@locus.apache.org
Subject cvs commit: jakarta-tomcat-4.0/webapps/examples/jsp/forward forward.jsp forward.txt fwd.html one.jsp two.html er.html err.jsp err.txt error.html errorpge.jsp
Date Mon, 16 Oct 2000 21:33:11 GMT
craigmcc    00/10/16 14:33:11

  Added:       webapps/examples/jsp/forward forward.jsp forward.txt
                        fwd.html one.jsp two.html
  Removed:     webapps/examples/jsp/forward er.html err.jsp err.txt
                        error.html errorpge.jsp
  Log:
  Correct the contents of the "JSP Forward" example checked into the webapps
  tree for Tomcat 4.0.
  
  Revision  Changes    Path
  1.1                  jakarta-tomcat-4.0/webapps/examples/jsp/forward/forward.jsp
  
  Index: forward.jsp
  ===================================================================
  <html>
  <!--
    Copyright (c) 1999 The Apache Software Foundation.  All rights 
    reserved.
  -->
  
  <% 
     double freeMem = Runtime.getRuntime().freeMemory();
     double totlMem = Runtime.getRuntime().totalMemory();
     double percent = freeMem/totlMem;
     if (percent < 0.5) { 
  %>
  
  <jsp:forward page="/jsp/forward/one.jsp"/>
  
  <% } else { %>
  
  <jsp:forward page="two.html"/>
  
  <% } %>
  
  </html>
  
  
  
  1.1                  jakarta-tomcat-4.0/webapps/examples/jsp/forward/forward.txt
  
  Index: forward.txt
  ===================================================================
  <html>
  <!--
    Copyright (c) 1999 The Apache Software Foundation.  All rights 
    reserved.
  -->
  
  <% 
     double freeMem = Runtime.getRuntime().freeMemory();
     double totlMem = Runtime.getRuntime().totalMemory();
     double percent = freeMem/totlMem;
     if (percent < 0.5) { 
  %>
  
  <jsp:forward page="/jsp/forward/one.jsp"/>
  
  <% } else { %>
  
  <jsp:forward page="two.html"/>
  
  <% } %>
  
  </html>
  
  
  
  1.1                  jakarta-tomcat-4.0/webapps/examples/jsp/forward/fwd.html
  
  Index: fwd.html
  ===================================================================
  <html>
  <!--
    Copyright (c) 1999 The Apache Software Foundation.  All rights 
    reserved.
  -->
  <head>
  <title>Untitled Document</title>
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  </head>
  
  <body bgcolor="#FFFFFF">
  <p><font color="#0000FF"><a href="forward.jsp"><img src="../../images/execute.gif"
align="right" border="0"></a><a href="../index.html"><img src="../../images/return.gif"
width="24" height="24" align="right" border="0"></a></font></p>
  
  <h3><a href="forward.txt">Source Code for Forward Example<font color="#0000FF"></a>
    </font> </h3>
  
  </body>
  </html>
  
  
  
  1.1                  jakarta-tomcat-4.0/webapps/examples/jsp/forward/one.jsp
  
  Index: one.jsp
  ===================================================================
  <html>
  <!--
    Copyright (c) 1999 The Apache Software Foundation.  All rights 
    reserved.
  -->
  
  <body bgcolor="white">
  <font color="red">
  
  VM Memory usage < 50%.
  </html>
  
  
  1.1                  jakarta-tomcat-4.0/webapps/examples/jsp/forward/two.html
  
  Index: two.html
  ===================================================================
  <html>
  <!--
    Copyright (c) 1999 The Apache Software Foundation.  All rights 
    reserved.
  -->
  
  <body bgcolor="white">
  <font color="red">
  
  VM Memory usage > 50%.
  </html>
  
  

Mime
View raw message