tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From patri...@apache.org
Subject cvs commit: jakarta-tomcat-4.0/webapps/admin dumpRegistry.jsp dumpServer.jsp error.jsp header.jsp index.jsp login.jsp tree-control-test.jsp
Date Sat, 10 Nov 2001 18:06:39 GMT
patrickl    01/11/10 10:06:39

  Modified:    webapps/admin dumpRegistry.jsp dumpServer.jsp error.jsp
                        header.jsp index.jsp login.jsp
                        tree-control-test.jsp
  Log:
  Changed webapp to use frames like the prototype posted to the tomcat-dev mailing list. Also,
added workaround so that login.jsp will not load within a frame.
  
  Revision  Changes    Path
  1.2       +2 -0      jakarta-tomcat-4.0/webapps/admin/dumpRegistry.jsp
  
  Index: dumpRegistry.jsp
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-4.0/webapps/admin/dumpRegistry.jsp,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- dumpRegistry.jsp	2001/10/27 22:18:49	1.1
  +++ dumpRegistry.jsp	2001/11/10 18:06:39	1.2
  @@ -13,6 +13,8 @@
   
   <!-- Body -->
   
  +<body bgcolor="white">
  +
   <table border="1" cellpadding="5">
   
     <tr>
  
  
  
  1.2       +2 -0      jakarta-tomcat-4.0/webapps/admin/dumpServer.jsp
  
  Index: dumpServer.jsp
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-4.0/webapps/admin/dumpServer.jsp,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- dumpServer.jsp	2001/10/28 03:39:17	1.1
  +++ dumpServer.jsp	2001/11/10 18:06:39	1.2
  @@ -13,6 +13,8 @@
   
   <!-- Body -->
   
  +<body bgcolor="white">
  +
   <table border="1" cellpadding="5">
   
     <tr>
  
  
  
  1.3       +2 -0      jakarta-tomcat-4.0/webapps/admin/error.jsp
  
  Index: error.jsp
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-4.0/webapps/admin/error.jsp,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- error.jsp	2001/11/08 21:47:15	1.2
  +++ error.jsp	2001/11/10 18:06:39	1.3
  @@ -13,6 +13,8 @@
   
   <!-- Body -->
   
  +<body bgcolor="white">
  +
   <center>
   
   <h2>
  
  
  
  1.3       +0 -2      jakarta-tomcat-4.0/webapps/admin/header.jsp
  
  Index: header.jsp
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-4.0/webapps/admin/header.jsp,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- header.jsp	2001/11/09 18:43:17	1.2
  +++ header.jsp	2001/11/10 18:06:39	1.3
  @@ -8,5 +8,3 @@
     <html:base/>
     <link rel="stylesheet" type="text/css" href="tree-control-test.css">
   </head>
  -
  -<body bgcolor="white">
  
  
  
  1.3       +7 -47     jakarta-tomcat-4.0/webapps/admin/index.jsp
  
  Index: index.jsp
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-4.0/webapps/admin/index.jsp,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- index.jsp	2001/11/09 18:51:03	1.2
  +++ index.jsp	2001/11/10 18:06:39	1.3
  @@ -13,56 +13,16 @@
   
   <!-- Body -->
   
  -<center>
  +<frameset rows="100,*" border="0">
  +  <frame name="banner" src="banner.jsp" scrolling="no">
  +  <frameset cols="300,*" border="0">
  +    <frame name="tree" src="tree-control-test.jsp" scrolling="auto">
  +    <frame name="content" src="sample.jsp" scrolling="auto">
  +  </frameset>
  +</frameset>
   
  -<h2><bean:message key="index.success"/></h2>
  -<p>
  -<h2>
  -  <bean:message key="index.logout"/>
  -  <html:link page="/logOut.do">
  -    <bean:message key="index.here"/>
  -  </html:link>
  -</h2>
  -<p>
  -<h2>
  -  <bean:message key="index.redirect"/>
  -  <html:link page="/tree-control-test.jsp">
  -    <bean:message key="index.here"/>
  -  </html:link>
  -</h2>
  -
  -<!-- Select language -->
  -
  -<hr>
  -
  -<h2><bean:message key="login.changeLanguage"/></h2>
  -
  -<html:form action="/setLocale" method="POST">
  -  <table border="0" cellspacing="5">
  -    <tr>
  -      <td align="right">
  -        <html:select property="locale">
  -          <html:options name="applicationLocales"
  -                    property="localeValues"
  -                   labelName="applicationLocales"
  -               labelProperty="localeLabels"/>
  -        </html:select>
  -      </td>
  -      <td align="left">
  -        <html:submit>
  -          <bean:message key="button.change"/>
  -        </html:submit>
  -      </td>
  -    </tr>
  -  </table>
  -</html:form>
  -
  -</center>
  -
   <!-- Standard Footer -->
   
   <%@ include file="footer.jsp" %>
  -
  -</body>
   
   </html:html>
  
  
  
  1.2       +14 -0     jakarta-tomcat-4.0/webapps/admin/login.jsp
  
  Index: login.jsp
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-4.0/webapps/admin/login.jsp,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- login.jsp	2001/10/25 16:36:06	1.1
  +++ login.jsp	2001/11/10 18:06:39	1.2
  @@ -7,11 +7,25 @@
   
   <html:html locale="true">
   
  +<!-- Make sure window is not in a frame -->
  +
  +<script language="JavaScript" type="text/javascript">
  +
  +  <!--
  +    if (window.self != window.top) {
  +      window.open(window.location, "_top");
  +    }
  +  // -->
  +
  +</script>
  +
   <!-- Standard Content -->
   
   <%@ include file="header.jsp" %>
   
   <!-- Body -->
  +
  +<body bgcolor="white">
   
   <center>
   
  
  
  
  1.4       +9 -62     jakarta-tomcat-4.0/webapps/admin/tree-control-test.jsp
  
  Index: tree-control-test.jsp
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-4.0/webapps/admin/tree-control-test.jsp,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- tree-control-test.jsp	2001/11/09 18:51:03	1.3
  +++ tree-control-test.jsp	2001/11/10 18:06:39	1.4
  @@ -14,70 +14,17 @@
   
   <!-- Body -->
   
  -<table border="0" cellpadding="0" cellspacing="0" width="100%">
  +<body bgcolor="white">
   
  -  <!-- Application Header -->
  -  <tr>
  -    <td align="center" colspan="2">
  -      <h2>
  -        <bean:message key="index.success"/>
  -        <br>
  -        <bean:message key="index.logout"/>
  -        <html:link page="/logOut.do">
  -          <bean:message key="index.here"/>
  -        </html:link>
  -      </h2>
  -    </td>
  -  </tr>
  +<!-- Tree Component -->
   
  -  <tr valign="top">
  -    <!-- Tree Component -->
  -    <td width="200">
  -      <tree:render tree="treeControlTest"
  -                 action="treeControlTest.do?tree=${name}"
  -                  style="tree-control"
  -          styleSelected="tree-control-selected"
  -        styleUnselected="tree-control-unselected"
  -      />
  -    </td>
  -    <!-- Input Form -->
  -    <td>
  -      <html:errors/>
  -      <html:form method="POST" action="/sample" focus="someText">
  -        <table border="0" cellspacing="5">
  -          <tr>
  -            <th align="right">
  -              <bean:message key="prompt.someText"/>
  -            </th>
  -            <td align="left">
  -              <html:text property="someText" size="16" maxlength="16"/>
  -            </td>
  -          </tr>
  -          <tr>
  -            <th align="right">
  -              <bean:message key="prompt.moreText"/>
  -            </th>
  -            <td align="left">
  -              <html:text property="moreText" size="16" maxlength="16"/>
  -            </td>
  -          </tr>
  -          <tr>
  -            <td align="right">
  -              <html:submit>
  -                <bean:message key="button.save"/>
  -              </html:submit>
  -            </td>
  -            <td align="left">
  -              <html:reset>
  -                <bean:message key="button.reset"/>
  -              </html:reset>
  -            </td>
  -          </tr>
  -        </table>
  -      </html:form>
  -    </td>
  -  </tr>
  -</table>
  +<td width="200">
  +  <tree:render tree="treeControlTest"
  +             action="treeControlTest.do?tree=${name}"
  +              style="tree-control"
  +      styleSelected="tree-control-selected"
  +    styleUnselected="tree-control-unselected"
  +  />
   
   <!-- Standard Footer -->
   
  
  
  

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


Mime
View raw message