On 03.02.2004 00:52, Anna Bikkina wrote:

This must be a basic question. I have a JSP generator and JSP reader in my sitemap. I understand that if I use the JSPReader it can read non xml jsp pages. How can I make cocoon use jspreader instead of the generator.Correct me if my understanding is wrong.

Just have a look into the sitemap you are using (I guess it's the default sitemap from JSP block).


      <map:match pattern="*.htm">
        <map:read type="jsp" src="{1}.jsp" mime-type="text/html" />
      </map:match>

The above pipeline uses the JSPReader and gives the result as text/html to the client.

      <!-- Use this to debug your JSPs -->
      <map:match pattern="*.xml">
        <map:generate type="jsp" src="{1}.jsp"/>
        <map:serialize type="xml"/>
      </map:match>

The above pipeline uses the JSPGenerator and serializes the SAX events to XML.

      <map:match pattern="*.jsp">
        <map:generate type="jsp" src="{1}.jsp"/>
        <map:serialize type="html"/>
      </map:match>

The above pipeline uses the JSPGenerator and serializes the SAX events to HTML.

map:read => Reader, map:generate => Generator.

Joerg

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to