portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pau...@apache.org
Subject cvs commit: jakarta-jetspeed/src/java/org/apache/jetspeed/util HTMLRewriter.java
Date Fri, 11 Jan 2002 23:52:31 GMT
paulsp      02/01/11 15:52:31

  Modified:    xdocs    portlet_config_WebPagePortlet.xml
               docs/site portlet_config_WebPagePortlet.html
               src/java/org/apache/jetspeed/util HTMLRewriter.java
  Log:
  Update documentation to reflect changes in HTMLRewriter
  
  Revision  Changes    Path
  1.3       +74 -1     jakarta-jetspeed/xdocs/portlet_config_WebPagePortlet.xml
  
  Index: portlet_config_WebPagePortlet.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed/xdocs/portlet_config_WebPagePortlet.xml,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- portlet_config_WebPagePortlet.xml	28 Aug 2001 03:31:20 -0000	1.2
  +++ portlet_config_WebPagePortlet.xml	11 Jan 2002 23:52:30 -0000	1.3
  @@ -325,7 +325,79 @@
         </p>
       </section>
     
  -    <section name="Questions and possible problems to be investigated (version 1.3a1)">
 
  +    <section name="Rewriting or HTML tags">  
  +      <p>
  +        The following is from the util/HTMLRewriter.java
  +      </p>
  +      <source test=""><![CDATA[
  + * The following describes how HTML tags are rewritten
  + *
  + * <!-- --> (HTML Comments)
  + *   o Unless otherwise mentioned, comments are striped.
  + * 
  + * <A>
  + *   o HREF attribute   - URL merged with base URL (See Note 1)
  + *   o TARGET attribute - Set to "_BLANK" if it does not exist 
  + *                        and openInNewWindow = TRUE
  + * <APPLET>
  + *   o Optionally included
  + *   o CODEBASE attribute - Set to the current path if it does
  + *                          not exist.
  + * 
  + * <BASE>
  + *   o <HEAD> does NOT have to be included.
  + *   o HREF attribute  - Set the Base URL of the page, but the tag
  + *                       not set in resulting HTML. URL merged with
  + *                       base URL (See Note 1)
  + * 
  + * <BODY>
  + *   o Background attribute - Always striped.
  + * 
  + * <EMBED>
  + *   o May not work.  Not supported by JDK 1.3/
  + * 
  + * <FORM>
  + *   o ACTION attribute - Set to the current URL if it does
  + *                        not exist. URL merged with base
  + *                        URL (See Note 1)
  + * 
  + * <IMG>
  + *   o SRC attribute - URL merged with base URL (See Note 1)
  + * 
  + * <INPUT>
  + *   o SRC attribute - URL merged with base URL (See Note 1)
  + * 
  + * <OBJECT>
  + *   o Optionally included
  + *   o CODEBASE attribute - Set to the current path if it does
  + *                          not exist. URL merged with base
  + *                          URL (See Note 1)
  + * 
  + * <SCRIPT>
  + *   o Optionally included
  + *   o Contents may be striped if this tag appears in the <HEAD>
  + *     and the contents are NOT in a comment
  + *   o SRC attribute - URL merged with base URL (See Note 1)
  + *   o Script code that is NOT enclosed in a comment (<!-- -->)
  + *     and in the <HEAD> may NOT be in the resulting HTML.  This
  + *     is related to the HTML parser in included in the JDK 
  + * 
  + * <TD>
  + *   o BACKGROUND attribute - URL merged with base URL (See Note 1)
  + * 
  + * Note 1: URL Merging.
  + *   This is done because the source of the page sent to the
  + *   user's browser is different then source the current page.
  + *   Example:
  + *     Base URL........ http://jakarta.apache.org/jetspeed
  + *     URL............. logo.gif
  + *     Resulting URL... http://jakarta.apache.org/jetspeed/logo.gif
  + *
  + ]]></source>
  +    </section>
  +
  + <!--
  +     <section name="Questions and possible problems to be investigated (version 1.3a1)">
 
         <p>    
           <ul>      
             <li>Property "dont_remove_head does" not seem to work. Head tag is always
removed</li>
  @@ -341,5 +413,6 @@
           </ul>
         </p>
       </section>
  +-->
     </body>
   </document>
  
  
  
  1.6       +86 -14    jakarta-jetspeed/docs/site/portlet_config_WebPagePortlet.html
  
  Index: portlet_config_WebPagePortlet.html
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed/docs/site/portlet_config_WebPagePortlet.html,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- portlet_config_WebPagePortlet.html	28 Dec 2001 15:42:57 -0000	1.5
  +++ portlet_config_WebPagePortlet.html	11 Jan 2002 23:52:30 -0000	1.6
  @@ -647,25 +647,97 @@
                                                   <table border="0" cellspacing="0" cellpadding="2"
width="100%">
         <tr><td bgcolor="#525D76">
           <font color="#ffffff" face="arial,helvetica,sanserif">
  -          <a name="Questions and possible problems to be investigated (version 1.3a1)"><strong>Questions
and possible problems to be investigated (version 1.3a1)</strong></a>
  +          <a name="Rewriting or HTML tags"><strong>Rewriting or HTML tags</strong></a>
           </font>
         </td></tr>
         <tr><td>
           <blockquote>
  -                                    <p>    
  -        <ul>      
  -          <li>Property "dont_remove_head does" not seem to work. Head tag is always
removed</li>
  -          <li>Can values in the HTTP Request be set, i.e. User-Agent...?
  -              This would allow a "Netscape 4" or "IE 5" only site to get browser specific
pages
  -              from the web server
  -          </li>
  -          <li>Cookie support?</li>
  -          <li>"dont_remove_script" does not appear to work</li>
  -          <li>Why use "dont_remove_head"?</li>
  -          <li>Why use "dont_remove_meta", how is it related to "dont_remove_head"?</li>
  -          <li>Frame support?</li>
  -        </ul>
  +                                    <p>
  +        The following is from the util/HTMLRewriter.java
         </p>
  +                                                    <div align="left">
  +    <table cellspacing="4" cellpadding="0" border="0">
  +    <tr>
  +      <td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1"
height="1" vspace="0" hspace="0" border="0"/></td>
  +      <td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1"
vspace="0" hspace="0" border="0"/></td>
  +      <td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1"
height="1" vspace="0" hspace="0" border="0"/></td>
  +    </tr>
  +    <tr>
  +      <td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1"
vspace="0" hspace="0" border="0"/></td>
  +      <td bgcolor="#ffffff"><pre>
  + * The following describes how HTML tags are rewritten
  + *
  + * &lt;!-- --&gt; (HTML Comments)
  + *   o Unless otherwise mentioned, comments are striped.
  + * 
  + * &lt;A&gt;
  + *   o HREF attribute   - URL merged with base URL (See Note 1)
  + *   o TARGET attribute - Set to &quot;_BLANK&quot; if it does not exist 
  + *                        and openInNewWindow = TRUE
  + * &lt;APPLET&gt;
  + *   o Optionally included
  + *   o CODEBASE attribute - Set to the current path if it does
  + *                          not exist.
  + * 
  + * &lt;BASE&gt;
  + *   o &lt;HEAD&gt; does NOT have to be included.
  + *   o HREF attribute  - Set the Base URL of the page, but the tag
  + *                       not set in resulting HTML. URL merged with
  + *                       base URL (See Note 1)
  + * 
  + * &lt;BODY&gt;
  + *   o Background attribute - Always striped.
  + * 
  + * &lt;EMBED&gt;
  + *   o May not work.  Not supported by JDK 1.3/
  + * 
  + * &lt;FORM&gt;
  + *   o ACTION attribute - Set to the current URL if it does
  + *                        not exist. URL merged with base
  + *                        URL (See Note 1)
  + * 
  + * &lt;IMG&gt;
  + *   o SRC attribute - URL merged with base URL (See Note 1)
  + * 
  + * &lt;INPUT&gt;
  + *   o SRC attribute - URL merged with base URL (See Note 1)
  + * 
  + * &lt;OBJECT&gt;
  + *   o Optionally included
  + *   o CODEBASE attribute - Set to the current path if it does
  + *                          not exist. URL merged with base
  + *                          URL (See Note 1)
  + * 
  + * &lt;SCRIPT&gt;
  + *   o Optionally included
  + *   o Contents may be striped if this tag appears in the &lt;HEAD&gt;
  + *     and the contents are NOT in a comment
  + *   o SRC attribute - URL merged with base URL (See Note 1)
  + *   o Script code that is NOT enclosed in a comment (&lt;!-- --&gt;)
  + *     and in the &lt;HEAD&gt; may NOT be in the resulting HTML.  This
  + *     is related to the HTML parser in included in the JDK 
  + * 
  + * &lt;TD&gt;
  + *   o BACKGROUND attribute - URL merged with base URL (See Note 1)
  + * 
  + * Note 1: URL Merging.
  + *   This is done because the source of the page sent to the
  + *   user's browser is different then source the current page.
  + *   Example:
  + *     Base URL........ http://jakarta.apache.org/jetspeed
  + *     URL............. logo.gif
  + *     Resulting URL... http://jakarta.apache.org/jetspeed/logo.gif
  + *
  + </pre></td>
  +      <td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1"
vspace="0" hspace="0" border="0"/></td>
  +    </tr>
  +    <tr>
  +      <td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1"
height="1" vspace="0" hspace="0" border="0"/></td>
  +      <td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1"
vspace="0" hspace="0" border="0"/></td>
  +      <td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1"
height="1" vspace="0" hspace="0" border="0"/></td>
  +    </tr>
  +    </table>
  +    </div>
                               </blockquote>
           </p>
         </td></tr>
  
  
  
  1.8       +3 -0      jakarta-jetspeed/src/java/org/apache/jetspeed/util/HTMLRewriter.java
  
  Index: HTMLRewriter.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed/src/java/org/apache/jetspeed/util/HTMLRewriter.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- HTMLRewriter.java	11 Jan 2002 23:29:56 -0000	1.7
  +++ HTMLRewriter.java	11 Jan 2002 23:52:31 -0000	1.8
  @@ -121,6 +121,9 @@
    *   o Contents may be striped if this tag appears in the <HEAD>
    *     and the contents are NOT in a comment
    *   o SRC attribute - URL merged with base URL (See Note 1)
  + *   o Script code that is NOT enclosed in a comment (<!-- -->)
  + *     and in the <HEAD> may NOT be in the resulting HTML.  This
  + *     is related to the HTML parser in included in the JDK 
    * 
    * <TD>
    *   o BACKGROUND attribute - URL merged with base URL (See Note 1)
  
  
  

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


Mime
View raw message