You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-dev@portals.apache.org by pa...@apache.org on 2001/10/23 03:25:52 UTC

cvs commit: jakarta-jetspeed/docs/site portlet_config_JSP.html

paulsp      01/10/22 18:25:52

  Modified:    xdocs    portlet_config_JSP.xml
               docs/site portlet_config_JSP.html
  Log:
  o Document the TagLib requestInfo
  o Update "template" documentation
  o General cleanup
  
  Revision  Changes    Path
  1.3       +59 -5     jakarta-jetspeed/xdocs/portlet_config_JSP.xml
  
  Index: portlet_config_JSP.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed/xdocs/portlet_config_JSP.xml,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- portlet_config_JSP.xml	2001/08/28 03:30:06	1.2
  +++ portlet_config_JSP.xml	2001/10/23 01:25:52	1.3
  @@ -32,6 +32,57 @@
         <li>Specific task can not be achieved with WebPagePortlet</li>
       </ul>
     </p>
  +  <subsection name='Jetspeed Tag Library'>
  +  <p>
  +    The JSP can display information from Jetspeed by using Jetspeed's Tag Library.  The
  +    type of information ranges from username to Link information.  
  +    <tt>&lt;jetspeed_home&gt;/WEB-INF/templates/jsp/tld/template.tld</tt> contains the TagLib
  +    declarations.  
  +  </p>
  +  <p>
  +    The following table documents some of the available tags.  The template.tdl file will
  +    contain a more complete list.
  +  </p>
  +  <table>
  +    <tr>
  +      <th>Tag Name</th>
  +      <th>Description</th>
  +    </tr>
  +    <tr>
  +      <td>jetspeed:info</td>
  +      <td>
  +        Return value of requestInfo<br/>
  +        <table>
  +          <tr>
  +            <th>Value</th>
  +            <th>Description</th>
  +          </tr>
  +          <tr>
  +            <td>Email</td>
  +            <td>E-Mail address of the logged in user</td>
  +          </tr>
  +          <tr>
  +            <td>FirstName</td>
  +            <td>First name of the logged in user</td>
  +          </tr>
  +          <tr>
  +            <td>LastName</td>
  +            <td>Last name of the logged in user</td>
  +          </tr>
  +          <tr>
  +            <td>Username</td>
  +            <td>Username of the logged in user</td>
  +          </tr>
  +          <tr>
  +            <td>ServerDate</td>
  +            <td>Current Data and Time on the server</td>
  +          </tr>
  +        </table>
  +      </td>
  +    </tr>
  +  </table>
  +  <br/>
  +  </subsection>
     <subsection name='Supported Media Types'>
       <p>
         <a href="portlet_config_common.html#Supported Media Types">
  @@ -63,7 +114,10 @@
      </tr>
      <tr>
        <td>template</td>
  -     <td>Name of JSP file.  This must include the path relative to &lt;jetspeed_home&gt;</td>
  +     <td>
  +       Name of JSP file.  The actual file will be located by using the current media type, language,
  +       and country in the directory &lt;jetspeed_home&gt;/WEB-INF/templates/jsp/portlets
  +      </td>
      </tr>
     </table>
   </section>
  @@ -76,7 +130,7 @@
           <description>Simple JSP Portlet Example</description>
       </meta-info>
       <parameter name="template"
  -        value="/WEB-INF/templates/jsp/portlets/html/hello.jsp" hidden="false"/>
  +        value="hello.jsp" hidden="false"/>
   </portlet-entry>
       ]]></source>
   </section>
  @@ -93,14 +147,14 @@
     </p>
   </section>
   -->
  -<section name='Questions (version 1.3a1)'>
  +<!--
  +<section name='Questions (version 1.3a2-dev)'>
     <p>
       <ul>
         <li>Does the JSP have access to Parameters, i.e. Can I add parameters that only the JSP will use?</li>
  -      <li>What is available to the JSP from Jetspeed, like username...?</li>
  -      <li>What JSP stuff should NOT be done?</li>
       </ul>
     </p>
   </section>
  +-->
   </body>
   </document>
  
  
  
  1.4       +82 -22    jakarta-jetspeed/docs/site/portlet_config_JSP.html
  
  Index: portlet_config_JSP.html
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed/docs/site/portlet_config_JSP.html,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- portlet_config_JSP.html	2001/09/29 05:42:34	1.3
  +++ portlet_config_JSP.html	2001/10/23 01:25:52	1.4
  @@ -141,6 +141,83 @@
                                                       <table border="0" cellspacing="0" cellpadding="2" width="100%">
         <tr><td bgcolor="#828DA6">
           <font color="#ffffff" face="arial,helvetica,sanserif">
  +          <a name="Jetspeed Tag Library"><strong>Jetspeed Tag Library</strong></a>
  +        </font>
  +      </td></tr>
  +      <tr><td>
  +        <blockquote>
  +                                    <p>
  +    The JSP can display information from Jetspeed by using Jetspeed's Tag Library.  The
  +    type of information ranges from username to Link information.  
  +    <tt>&lt;jetspeed_home&gt;/WEB-INF/templates/jsp/tld/template.tld</tt> contains the TagLib
  +    declarations.  
  +  </p>
  +                                                <p>
  +    The following table documents some of the available tags.  The template.tdl file will
  +    contain a more complete list.
  +  </p>
  +                                                <table>
  +                        <tr>
  +                        <td bgcolor="#039acc" colspan="" rowspan="" valign="top" align="left">
  +    <font color="#000000" size="-1" face="arial,helvetica,sanserif">
  +                Tag Name
  +            </font>
  +</td>
  +                                <td bgcolor="#039acc" colspan="" rowspan="" valign="top" align="left">
  +    <font color="#000000" size="-1" face="arial,helvetica,sanserif">
  +                Description
  +            </font>
  +</td>
  +            </tr>
  +                                <tr>
  +                        <td bgcolor="#a0ddf0" colspan="" rowspan="" valign="top" align="left">
  +    <font color="#000000" size="-1" face="arial,helvetica,sanserif">
  +                jetspeed:info
  +            </font>
  +</td>
  +                                <td bgcolor="#a0ddf0" colspan="" rowspan="" valign="top" align="left">
  +    <font color="#000000" size="-1" face="arial,helvetica,sanserif">
  +                
  +        Return value of requestInfo<br />
  +        <table>
  +          <tr>
  +            <th>Value</th>
  +            <th>Description</th>
  +          </tr>
  +          <tr>
  +            <td>Email</td>
  +            <td>E-Mail address of the logged in user</td>
  +          </tr>
  +          <tr>
  +            <td>FirstName</td>
  +            <td>First name of the logged in user</td>
  +          </tr>
  +          <tr>
  +            <td>LastName</td>
  +            <td>Last name of the logged in user</td>
  +          </tr>
  +          <tr>
  +            <td>Username</td>
  +            <td>Username of the logged in user</td>
  +          </tr>
  +          <tr>
  +            <td>ServerDate</td>
  +            <td>Current Data and Time on the server</td>
  +          </tr>
  +        </table>
  +      
  +            </font>
  +</td>
  +            </tr>
  +            </table>
  +                                                <br />
  +                            </blockquote>
  +      </td></tr>
  +      <tr><td><br/></td></tr>
  +    </table>
  +                                                    <table border="0" cellspacing="0" cellpadding="2" width="100%">
  +      <tr><td bgcolor="#828DA6">
  +        <font color="#ffffff" face="arial,helvetica,sanserif">
             <a name="Supported Media Types"><strong>Supported Media Types</strong></a>
           </font>
         </td></tr>
  @@ -200,7 +277,10 @@
   </td>
                                   <td bgcolor="#a0ddf0" colspan="" rowspan="" valign="top" align="left">
       <font color="#000000" size="-1" face="arial,helvetica,sanserif">
  -                Name of JSP file.  This must include the path relative to &lt;jetspeed_home&gt;
  +                
  +       Name of JSP file.  The actual file will be located by using the current media type, language,
  +       and country in the directory &lt;jetspeed_home&gt;/WEB-INF/templates/jsp/portlets
  +      
               </font>
   </td>
               </tr>
  @@ -235,7 +315,7 @@
           &lt;description&gt;Simple JSP Portlet Example&lt;/description&gt;
       &lt;/meta-info&gt;
       &lt;parameter name=&quot;template&quot;
  -        value=&quot;/WEB-INF/templates/jsp/portlets/html/hello.jsp&quot; hidden=&quot;false&quot;/&gt;
  +        value=&quot;hello.jsp&quot; hidden=&quot;false&quot;/&gt;
   &lt;/portlet-entry&gt;
       </pre></td>
         <td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
  @@ -247,26 +327,6 @@
       </tr>
       </table>
       </div>
  -                            </blockquote>
  -        </p>
  -      </td></tr>
  -      <tr><td><br/></td></tr>
  -    </table>
  -                                                <table border="0" cellspacing="0" cellpadding="2" width="100%">
  -      <tr><td bgcolor="#525D76">
  -        <font color="#ffffff" face="arial,helvetica,sanserif">
  -          <a name="Questions (version 1.3a1)"><strong>Questions (version 1.3a1)</strong></a>
  -        </font>
  -      </td></tr>
  -      <tr><td>
  -        <blockquote>
  -                                    <p>
  -    <ul>
  -      <li>Does the JSP have access to Parameters, i.e. Can I add parameters that only the JSP will use?</li>
  -      <li>What is available to the JSP from Jetspeed, like username...?</li>
  -      <li>What JSP stuff should NOT be done?</li>
  -    </ul>
  -  </p>
                               </blockquote>
           </p>
         </td></tr>
  
  
  

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