cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Helma van der Linden (JIRA)" <j...@apache.org>
Subject [jira] Reopened: (COCOON-131) JSP transform problem
Date Tue, 25 Oct 2005 13:15:56 GMT
     [ http://issues.apache.org/jira/browse/COCOON-131?page=all ]
     
Helma van der Linden reopened COCOON-131:
-----------------------------------------


reopened just to set the resolution to fixed

> JSP transform problem
> ---------------------
>
>          Key: COCOON-131
>          URL: http://issues.apache.org/jira/browse/COCOON-131
>      Project: Cocoon
>         Type: Bug
>   Components: - Components: Avalon
>     Versions: 2.0
>  Environment: Operating System: Linux
> Platform: PC
>     Reporter: alan ho
>     Assignee: Cocoon Developers Team

>
> I use tomcat as my serlet engine.I plan to use JSP->XML->XSLT->HTML to 
> construct a web app.
> I have add the following to my root sitemap.xmap
> -----------------------------------------------------------------------
>   <map:pipeline>
>    <map:match pattern="jsp/**">
>     <map:mount uri-prefix="jsp" src="j/" check-reload="yes"/>
>    </map:match>
>   </map:pipeline>
> ------------------------------------------------------------------------
> And write a simple sitemap.xmap at j/
> <?xml version="1.0"?>
> <map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
> <!-- =========================== Components ================================ -->
>   <map:components>
>      <map:generators default="file"/>
>         <map:transformers default="xslt"/>
>         <map:readers default="resource"/>
>         <map:serializers default="html"/>
>         <map:selectors default="browser"/>
>         <map:matchers default="wildcard"/>
>   </map:components>
> <!-- =========================== Pipelines ================================= -->
> <map:pipelines>
>    <map:pipeline>
>      <map:match pattern="*.jsp">
>         <map:generate type="jsp" src="{1}.jsp"/>
>         <map:transform src="../stylesheets/sites/htmlbasepage.xsl"/>
>         <map:serialize/>
>      </map:match>
>      <map:match pattern="*.xml">
>         <map:generate src="{1}.xml"/>
>         <map:transform src="../stylesheets/sites/htmlbasepage.xsl"/>
>         <map:serialize/>
>      </map:match>
>      <map:handle-errors>
>         <map:transform src="../stylesheets/system/error2html.xsl"/>
>         <map:serialize status-code="500"/>
>      </map:handle-errors>
>   </map:pipeline>
> </map:pipelines>
> </map:sitemap>
> <!-- end of file -->
> Then I write a simple page(test.jsp) and make it a symbolic to test.html.
> ---------------------------------------------------------------------
> <page>
> <title>"Welcome to Login"</title>
> <menu>
>     </menu>
>         <main>
>         </main>
>     <footer>
>       <copyright>Owned by Hibit</copyright>
>     </footer>
> <login-table/>
> </page>
> ------------------------------------------------------------
> When I browse http://localhost:8081/cocoon/j/test.html,cocoon works fine to 
> transform the page to a html file.
> Then I browse http://localhost:8081/cocoon/j/test.jsp,cocoon fails to transform 
> the page to html.Cocoon generates a original page as I typed.The transformer 
> has broken!
> Does anybody know what's going wrong?

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Mime
View raw message