portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a..@apache.org
Subject cvs commit: jakarta-jetspeed-2/struts-portlet/framework project.xml
Date Sat, 24 Jul 2004 22:02:17 GMT
ate         2004/07/24 15:02:17

  Modified:    struts-portlet README.txt
               struts-portlet/framework project.xml
  Added:       struts-portlet/framework/src/java/META-INF/tlds
                        struts-portlet.tld
  Log:
  Struts-portlet framework updated for struts-1.2.1
  Struts-portlet.tld now included in the struts-portlet.jar: it doesn't have to be put under
WEB-INF anymore.
  
  Revision  Changes    Path
  1.1                  jakarta-jetspeed-2/struts-portlet/framework/src/java/META-INF/tlds/struts-portlet.tld
  
  Index: struts-portlet.tld
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN" "http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd">
  <!--
  Copyright 2004 The Apache Software Foundation
  
  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at
  
      http://www.apache.org/licenses/LICENSE-2.0
  
  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
  -->
  <taglib>
  <tlibversion>1.2</tlibversion>
  <jspversion>1.1</jspversion>
  <shortname>html</shortname>
  <uri>http://struts.apache.org/tags-portlet</uri>
  <tag>
  <name>form</name>
  <tagclass>org.apache.struts.portlet.taglib.FormTag</tagclass>
  <bodycontent>JSP</bodycontent>
  <attribute>
  <name>action</name>
  <required>true</required>
  <rtexprvalue>true</rtexprvalue>
  </attribute>
  <attribute>
  <name>enctype</name>
  <required>false</required>
  <rtexprvalue>true</rtexprvalue>
  </attribute>
  <attribute>
  <name>focus</name>
  <required>false</required>
  <rtexprvalue>true</rtexprvalue>
  </attribute>
  <attribute>
  <name>focusIndex</name>
  <required>false</required>
  <rtexprvalue>true</rtexprvalue>
  </attribute>
  <attribute>
  <name>method</name>
  <required>false</required>
  <rtexprvalue>true</rtexprvalue>
  </attribute>
  <attribute>
  <name>onreset</name>
  <required>false</required>
  <rtexprvalue>true</rtexprvalue>
  </attribute>
  <attribute>
  <name>onsubmit</name>
  <required>false</required>
  <rtexprvalue>true</rtexprvalue>
  </attribute>
  <attribute>
  <name>scriptLanguage</name>
  <required>false</required>
  <rtexprvalue>true</rtexprvalue>
  </attribute>
  <attribute>
  <name>style</name>
  <required>false</required>
  <rtexprvalue>true</rtexprvalue>
  </attribute>
  <attribute>
  <name>styleClass</name>
  <required>false</required>
  <rtexprvalue>true</rtexprvalue>
  </attribute>
  <attribute>
  <name>styleId</name>
  <required>false</required>
  <rtexprvalue>true</rtexprvalue>
  </attribute>
  <attribute>
  <name>target</name>
  <required>false</required>
  <rtexprvalue>true</rtexprvalue>
  </attribute>
  </tag>
  <tag>
  <name>link</name>
  <tagclass>org.apache.struts.portlet.taglib.LinkTag</tagclass>
  <attribute>
  <name>accesskey</name>
  <required>false</required>
  <rtexprvalue>true</rtexprvalue>
  </attribute>
  <attribute>
  <name>action</name>
  <required>false</required>
  <rtexprvalue>true</rtexprvalue>
  </attribute>
  <attribute>
  <name>module</name>
  <required>false</required>
  <rtexprvalue>true</rtexprvalue>
  </attribute>
  <attribute>
  <name>anchor</name>
  <required>false</required>
  <rtexprvalue>true</rtexprvalue>
  </attribute>
  <attribute>
  <name>forward</name>
  <required>false</required>
  <rtexprvalue>true</rtexprvalue>
  </attribute>
  <attribute>
  <name>href</name>
  <required>false</required>
  <rtexprvalue>true</rtexprvalue>
  </attribute>
  <attribute>
  <name>indexed</name>
  <required>false</required>
  <rtexprvalue>true</rtexprvalue>
  </attribute>
  <attribute>
  <name>indexId</name>
  <required>false</required>
  <rtexprvalue>true</rtexprvalue>
  </attribute>
  <attribute>
  <name>linkName</name>
  <required>false</required>
  <rtexprvalue>true</rtexprvalue>
  </attribute>
  <attribute>
  <name>name</name>
  <required>false</required>
  <rtexprvalue>true</rtexprvalue>
  </attribute>
  <attribute>
  <name>onblur</name>
  <required>false</required>
  <rtexprvalue>true</rtexprvalue>
  </attribute>
  <attribute>
  <name>onclick</name>
  <required>false</required>
  <rtexprvalue>true</rtexprvalue>
  </attribute>
  <attribute>
  <name>ondblclick</name>
  <required>false</required>
  <rtexprvalue>true</rtexprvalue>
  </attribute>
  <attribute>
  <name>onfocus</name>
  <required>false</required>
  <rtexprvalue>true</rtexprvalue>
  </attribute>
  <attribute>
  <name>onkeydown</name>
  <required>false</required>
  <rtexprvalue>true</rtexprvalue>
  </attribute>
  <attribute>
  <name>onkeypress</name>
  <required>false</required>
  <rtexprvalue>true</rtexprvalue>
  </attribute>
  <attribute>
  <name>onkeyup</name>
  <required>false</required>
  <rtexprvalue>true</rtexprvalue>
  </attribute>
  <attribute>
  <name>onmousedown</name>
  <required>false</required>
  <rtexprvalue>true</rtexprvalue>
  </attribute>
  <attribute>
  <name>onmousemove</name>
  <required>false</required>
  <rtexprvalue>true</rtexprvalue>
  </attribute>
  <attribute>
  <name>onmouseout</name>
  <required>false</required>
  <rtexprvalue>true</rtexprvalue>
  </attribute>
  <attribute>
  <name>onmouseover</name>
  <required>false</required>
  <rtexprvalue>true</rtexprvalue>
  </attribute>
  <attribute>
  <name>onmouseup</name>
  <required>false</required>
  <rtexprvalue>true</rtexprvalue>
  </attribute>
  <attribute>
  <name>page</name>
  <required>false</required>
  <rtexprvalue>true</rtexprvalue>
  </attribute>
  <attribute>
  <name>paramId</name>
  <required>false</required>
  <rtexprvalue>true</rtexprvalue>
  </attribute>
  <attribute>
  <name>paramName</name>
  <required>false</required>
  <rtexprvalue>true</rtexprvalue>
  </attribute>
  <attribute>
  <name>paramProperty</name>
  <required>false</required>
  <rtexprvalue>true</rtexprvalue>
  </attribute>
  <attribute>
  <name>paramScope</name>
  <required>false</required>
  <rtexprvalue>true</rtexprvalue>
  </attribute>
  <attribute>
  <name>property</name>
  <required>false</required>
  <rtexprvalue>true</rtexprvalue>
  </attribute>
  <attribute>
  <name>scope</name>
  <required>false</required>
  <rtexprvalue>true</rtexprvalue>
  </attribute>
  <attribute>
  <name>style</name>
  <required>false</required>
  <rtexprvalue>true</rtexprvalue>
  </attribute>
  <attribute>
  <name>styleClass</name>
  <required>false</required>
  <rtexprvalue>true</rtexprvalue>
  </attribute>
  <attribute>
  <name>styleId</name>
  <required>false</required>
  <rtexprvalue>true</rtexprvalue>
  </attribute>
  <attribute>
  <name>tabindex</name>
  <required>false</required>
  <rtexprvalue>true</rtexprvalue>
  </attribute>
  <attribute>
  <name>target</name>
  <required>false</required>
  <rtexprvalue>true</rtexprvalue>
  </attribute>
  <attribute>
  <name>title</name>
  <required>false</required>
  <rtexprvalue>true</rtexprvalue>
  </attribute>
  <attribute>
  <name>titleKey</name>
  <required>false</required>
  <rtexprvalue>true</rtexprvalue>
  </attribute>
  <attribute>
  <name>transaction</name>
  <required>false</required>
  <rtexprvalue>true</rtexprvalue>
  </attribute>
  <attribute>
  <name>useLocalEncoding</name>
  <required>false</required>
  <rtexprvalue>true</rtexprvalue>
  </attribute>
  </tag>
  <tag>
  <name>script</name>
  <tagclass>org.apache.struts.portlet.taglib.ScriptTag</tagclass>
  <info>
  Generate a context relative script tag
  language - override the default generated Javascript1.1
  src      - Context-relative URL of the javascript source
  </info>
  <attribute>
  <name>language</name>
  <required>false</required>
  <rtexprvalue>true</rtexprvalue>
  </attribute>
  <attribute>
  <name>src</name>
  <required>true</required>
  <rtexprvalue>true</rtexprvalue>
  </attribute>
  </tag>
  </taglib>
  
  
  
  
  1.2       +11 -29    jakarta-jetspeed-2/struts-portlet/README.txt
  
  Index: README.txt
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed-2/struts-portlet/README.txt,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- README.txt	19 Apr 2004 22:16:11 -0000	1.1
  +++ README.txt	24 Jul 2004 22:02:16 -0000	1.2
  @@ -16,7 +16,7 @@
   
   This is the initial version of a small framework to allow Struts to be used as Action handler
and context renderer within a portlet.
   It's far from complete yet but already the standard MailReader example application does
run nicely under Jetspeed 2.
  -This example application can be found under the demo folder.
  +This example application can be found under the demo folder and is automatically build
and deployed with the default Jetspeed 2 setup.
   
   Documentation I haven't really written yet (you're looking at all there is right now) but
will be provided as soon as possible.
   
  @@ -85,7 +85,7 @@
       This interface has to be implemented for a specific portal and gives the struts-portlet
access to the servlet context
       its running in. For J2 this has already been done: org.apache.jetspeed.portlet.StrutsServletContextProviderImpl
and
       globabally available to any J2 portlet (embedded in the jetspeed-commons-<version>.jar
located in Tomcat/shared/lib).
  -    The J2 implementation with J2 running under Tomcat 4.1.29 is the only one which has
been tested so far.
  +    The J2 implementation with J2 running under Tomcat 4.1.30 and 5.0.24 is the only one
which has been tested so far.
   
       The other jar contains the framework classes. This jar has to be put in the WEB-INF/lib
of a portlet.
   
  @@ -114,12 +114,13 @@
           value:    <action mapping> to default action page
           required: no, default taken from ViewPage
   
  -  - Use the right struts.jar and its .tld files. The framework is developed against the
nightly build of 20040407. Anything
  +  - Use the right struts.jar and its .tld files. The framework currently has been tested
against version 1.2.1. Anything
       after that will probably/hopefully work.
   
  -  - Copy the struts-portlet.tld from this project to your tld folder.
  -
  -  - modify struts-config.xml:
  +  - The struts-portlet.tld is included in the struts-portlet.jar so you can refer to it
directly from within jsp files
  +    using something like <%@ taglib uri="http://struts.apache.org/tags-portlet" prefix="sp"
%>.
  +   
  +   - modify struts-config.xml:
       Define as controller processorClass: org.apache.struts.portlet.PortletRequestProcessor.
       Note, tiles usage isn't possible yet (probably won't be difficult to support so maybe
soon).
   
  @@ -134,8 +135,8 @@
   
   Demo:
   
  -  As example implementation and proof of concept the Struts MailReader example application
(from nightly build 20040407) is
  -  is converted to a Struts portlet.
  +  As example implementation and proof of concept the Struts MailReader example application
(from version 1.2.1) is
  +  converted to a Struts portlet.
   
     The example has been modified on the following points:
     - all jsp files and the tour.html are moved below WEB-INF in folder view.
  @@ -150,28 +151,9 @@
     - Logoff doesn't invalidate the session anymore which could interfere with the current
session implementation in J2 (which
       as far as I know is shared between all portlets, not sure if that's according to the
specs though).
   
  -  Known issues:
  -  - JS2-11 (http://nagoya.apache.org/jira/browse/JS2-11) currently requires web-app_2_3.dtd
to be available from the working
  -    directory when deploying the demo application. [FIXED 2004-04-19 DST]
  -  - JS2-14 (http://nagoya.apache.org/jira/browse/JS2-14) breaks the local anchor references
in the tour. [FIXED 2004-04-19 DST]
  -
  -  To build and deploy navigate to the demo folder and run (make sure the production database
is running):
  -    maven deploy
  -
  -  Note that the project.properties in the demo folder should be adapted to your environment
first!
  -
  -  Undeploy using:
  -    maven undeploy
  -
  -  During deployment/undeployment an example portlet-entity is inserted/removed from the
database using ID 15 (the next one
  -  available if just the jetspeed demo portlets are all deployed).
  -
  -  Under subfolder jetspeed an example struts-demo.psml and an extended Log4J.properties
file can be found for testing the
  -  example under jetspeed. Simply copy these files over to your deployed jetspeed webapp
folder.
  -
  -  As the demo is configured for deployment under Jetspeed-2 a Struts Portlet SPI implementation
will be available at runtime.
  +  As the demo is configured for deployment under Jetspeed-2 a Struts Portlet SPI implementation
is already available at runtime.
     To get it running under a different portal an implementation for StrutsServletContextProvider
has to be provided. If its not
     delivered by the portal itself you can try to define one yourself and include it in the
demo together with the spi jar.
   
   
  -20040418, Ate Douma
  \ No newline at end of file
  +20040724, Ate Douma
  \ No newline at end of file
  
  
  
  1.5       +9 -1      jakarta-jetspeed-2/struts-portlet/framework/project.xml
  
  Index: project.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed-2/struts-portlet/framework/project.xml,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- project.xml	11 Jul 2004 03:31:33 -0000	1.4
  +++ project.xml	24 Jul 2004 22:02:17 -0000	1.5
  @@ -54,7 +54,7 @@
       <dependency>
         <groupId>struts</groupId>
         <artifactId>struts</artifactId>
  -      <version>1.2.1-dev-20040407</version>
  +      <version>1.2.1</version>
       </dependency>
       <dependency>
         <groupId>struts-portlet</groupId>
  @@ -64,6 +64,14 @@
     </dependencies>
     <build>
       <sourceDirectory>src/java</sourceDirectory>
  +    <resources>
  +      <resource>
  +        <directory>${basedir}/src/java</directory>
  +        <includes>
  +          <include>META-INF/tlds/*</include>
  +        </includes>
  +      </resource>
  +    </resources>
     </build>
     <reports>
       <report>maven-jdepend-plugin</report>
  
  
  

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


Mime
View raw message