cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Piroumian Konstantin <KPiroum...@protek.com>
Subject RE: [announcement] JSP, Servlet2.3 Filter CocoonFilterGeneratorIm pl, and RequestAttributeGenerator
Date Mon, 22 Apr 2002 09:28:17 GMT
> From: Bernhard Huber [mailto:berni_huber@a1.net] 
> 
> hi, folks
> 
> Intro
> as i could not make JSPEngine working under WLS6.1,
> i choose a different approach which is more general and
> ASFAIK servlet 2.3 conformant.

<snip/>

> 
> Note by default jsp files are handled by the JSP servlet. 
> Cocoon servlet does not need to get mapped to *.jsp anymore.
> 
> Configuration snippet for sittemap.xmap:

I just want to remind that JSP samples where moved to /samples/jsp and the
following pipelines where removed from the root sitemap (only the HEAD
version), so please, do not add them there again.

--
Konstantin

> ...
>    <map:match pattern="docs/samples/jsp/*">
>     <map:generate type="req-attr"/>
>     <!--map:generate src="docs/samples/jsp/{1}.jsp" type="jsp"/-->
> 
>     <map:transform src="stylesheets/page/simple-page2html.xsl">
>         <map:parameter name="view-source" 
> value="docs/samples/jsp/{1}.jsp"/>
>     <!--
>        Run-time configuration is done through these
>        <map:parameter/> elements. Again, let's have a look at the
>        javadocs:
> 
>        "[...] All <map:parameter> declarations will be made
>        available in the XSLT stylesheet as xsl:variables. [...]"
>     -->
>     </map:transform>
>    
>     <map:transform type="log"/>
>    
>     <map:serialize/>
>    </map:match>
> ...
> Note: You must use the request URI, as matching is already 
> done by the 
> servlet container,
> thus the original sitemap JSP sample matching="jsp/*" will not work.
> 
> bye bernhard
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> For additional commands, email: cocoon-dev-help@xml.apache.org
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message