You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by di...@apache.org on 2001/08/14 15:59:14 UTC

cvs commit: xml-cocoon2/src/org/apache/cocoon/components/language/markup/xsp/java request.xsl xsp.xsl

dims        01/08/14 06:59:14

  Modified:    src/org/apache/cocoon ProcessingException.java
               src/org/apache/cocoon/components/language/markup/xsp/java
                        request.xsl xsp.xsl
  Log:
  Miscellaneous Patches from Ovidiu Peridescu.
  - ProcessingException adds a new constructor.
  - Patch for request.xsl adds xsp-request:get-session-id.
  - Patch for xsp.xsl adds a xsp:init-page.
  
  Revision  Changes    Path
  1.2       +10 -1     xml-cocoon2/src/org/apache/cocoon/ProcessingException.java
  
  Index: ProcessingException.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/org/apache/cocoon/ProcessingException.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- ProcessingException.java	2001/05/09 20:49:27	1.1
  +++ ProcessingException.java	2001/08/14 13:59:14	1.2
  @@ -17,7 +17,7 @@
    *
    * @author <a href="mailto:fumagalli@exoffice.com">Pierpaolo Fumagalli</a>
    *         (Apache Software Foundation, Exoffice Technologies)
  - * @version CVS $Revision: 1.1 $ $Date: 2001/05/09 20:49:27 $
  + * @version CVS $Revision: 1.2 $ $Date: 2001/08/14 13:59:14 $
    */
   public class ProcessingException extends CascadingException {
   
  @@ -28,6 +28,15 @@
           super(message, null);
       }
   
  +    /**
  +     * Creates a new <code>ProcessingException</code> instance.
  +     *
  +     * @param ex an <code>Exception</code> value
  +     */
  +    public ProcessingException(Exception ex) {
  +        super(ex.getMessage(), ex);
  +    }
  + 
       /**
        * Construct a new <code>ProcessingException</code> that references
        * a parent Exception.
  
  
  
  1.4       +7 -1      xml-cocoon2/src/org/apache/cocoon/components/language/markup/xsp/java/request.xsl
  
  Index: request.xsl
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/org/apache/cocoon/components/language/markup/xsp/java/request.xsl,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- request.xsl	2001/05/23 12:32:17	1.3
  +++ request.xsl	2001/08/14 13:59:14	1.4
  @@ -11,7 +11,7 @@
   
   <!--
    * @author <a href="mailto:ricardo@apache.org>Ricardo Rocha</a>
  - * @version CVS $Revision: 1.3 $ $Date: 2001/05/23 12:32:17 $
  + * @version CVS $Revision: 1.4 $ $Date: 2001/08/14 13:59:14 $
   -->
   
   <!-- XSP Request logicsheet for the Java language -->
  @@ -101,6 +101,12 @@
           </xsp:logic>
         </xsl:when>
       </xsl:choose>
  +  </xsl:template>
  +
  +  <xsl:template match="xsp-request:get-session-id">
  +    <xsp:expr>
  +      (XSPRequestHelper.getSessionId(objectModel))
  +    </xsp:expr>
     </xsl:template>
   
     <xsl:template match="xsp-request:get-parameter">
  
  
  
  1.7       +4 -1      xml-cocoon2/src/org/apache/cocoon/components/language/markup/xsp/java/xsp.xsl
  
  Index: xsp.xsl
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/org/apache/cocoon/components/language/markup/xsp/java/xsp.xsl,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- xsp.xsl	2001/08/09 10:43:21	1.6
  +++ xsp.xsl	2001/08/14 13:59:14	1.7
  @@ -12,7 +12,7 @@
   <!--
    * @author <a href="mailto:ricardo@apache.org>Ricardo Rocha</a>
    * @author <a href="sylvain.wallez@anyware-tech.com">Sylvain Wallez</a>
  - * @version CVS $Revision: 1.6 $ $Date: 2001/08/09 10:43:21 $
  + * @version CVS $Revision: 1.7 $ $Date: 2001/08/14 13:59:14 $
   -->
   
   <!-- XSP Core logicsheet for the Java language -->
  @@ -101,6 +101,9 @@
           * Generate XML data.
           */
         public void generate() throws SAXException, IOException, ProcessingException {
  +            <!-- Do any user-defined necessary initializations -->
  +            <xsl:value-of select="xsp:init-page"/>
  +
               this.contentHandler.startDocument();
               AttributesImpl xspAttr = new AttributesImpl();
   
  
  
  

----------------------------------------------------------------------
In case of troubles, e-mail:     webmaster@xml.apache.org
To unsubscribe, e-mail:          cocoon-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-cvs-help@xml.apache.org