Hello,

            Use the fully qualified path for the JSP file

 

            i.e not just sample.jsp but from the context root

            for eg:

            <map:generate type="jsp" src="/omc/docs/jsp/sample.jsp"/>

 

            where / = context directory

            omc = mount directory

 

It should work in Cocoon 2.0.1………..

 

Cocoon 2.02 has problems with JSP generator as well as JSP reader. Konstantin is working to solve it….

 

REgds,

Chiths              

 

 

-----Original Message-----
From: yuryx [mailto:[EMAIL PROTECTED]]
Sent
:
Thursday, March 28, 2002 6:54 AM
To: [EMAIL PROTECTED]
Subject: Problem with JSP in mounted sitemap

 

Hi all!

Now I have the following problem :)

When I declare jsp generator in matcher within mounted sitemap I have error
about:


type Status report

message /usr/local/jakarta/catalina-4.0.4/webapps/cocoon/mobicom-info/omc/sample.jsp

description The requested resource (/usr/local/jakarta/catalina-4.0.4/webapps/cocoon/mobicom-info/omc/sample.jsp) is not available.



in  mounted sitemap.xmap  I  declare  following:

    <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="sample">
     <map:generate type="jsp" src=""sample.jsp"/>      <map:serialize type="xml"/>
  </map:match>
        </map:pipeline>
    </map:pipelines>
</map:sitemap>
<!-- end of file -->

I use Cocoon 2.0.2 and Tomcat 4.0.4 now.
This don't work  in  Cocoon  2.0.1 and Tomcat 4.0.1 also...

Can anyone help me by problem?

Thanx.
Yury.
 

--------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>

Reply via email to