I got it working!  Thanks for your help - was a struggle but got
there...more fun to be had!  Glad to be apart of the group...



                                                                                       
                            
                    "Zachary A                                                         
                            
                    Lendon"              To:     [EMAIL PROTECTED]           
                            
                    <zalendon@JonesD     cc:                                           
                            
                    ay.com>              Subject:     RE: passing request parameters 
to xsl using cocoon 2.x: Null 
                                            Pointer                                    
                            
                                                                                       
                            
                    04/23/2002 12:44                                                   
                            
                    PM                                                                 
                            
                    Please respond                                                     
                            
                    to cocoon-users                                                    
                            
                                                                                       
                            
                                                                                       
                            





Thank you for the info.  I get the below error even when accessing the
samples in cocoon.  I've tried various map permutations, and even taken out
everything else (pipeline related) out of my "framework" dir's sitemap.  It
looks like from below that the issue is with my main sitemap, but I've
changed it back to the original!  From the java source, it appears to be
getting null when creating a new instance of EventPipeline...

Here is my sitemap log error msg:
ERROR   (2002-04-23) 12:34.08:457
[sitemap](/cocoon/framework/framework.xml) web-13/sitemap_xmap: Processing
of resource failed
java.lang.NullPointerException
     at
org.apache.cocoon.www.sitemap_xmap.process(/opt/JRun31/servers/default/tmp/cocoon/cocoon-files/org/apache/cocoon/www/sitemap_xmap.java:3105)

     at org.apache.cocoon.sitemap.Handler.process(Handler.java:222)
     at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:179)
     at
org.apache.cocoon.sitemap.SitemapManager.process(SitemapManager.java:154)
     at org.apache.cocoon.Cocoon.process(Cocoon.java:575)
     at
org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:998)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
     at allaire.jrun.servlet.JRunSE.service(JRunSE.java:1416)
     at
allaire.jrun.session.JRunSessionService.service(JRunSessionService.java:1082)

     at allaire.jrun.servlet.JRunSE.runServlet(JRunSE.java:1270)
     at
allaire.jrun.servlet.JRunRequestDispatcher.forward(JRunRequestDispatcher.java:89)

     at allaire.jrun.servlet.JRunSE.service(JRunSE.java:1552)
     at allaire.jrun.servlet.JRunSE.service(JRunSE.java:1542)
     at allaire.jrun.servlet.JvmContext.dispatch(JvmContext.java:364)
     at allaire.jrun.http.WebEndpoint.run(WebEndpoint.java:115)
     at allaire.jrun.ThreadPool.run(ThreadPool.java:272)
     at allaire.jrun.WorkerThread.run(WorkerThread.java:75)

Here is my pipeline entry:
<map:pipelines>
  <map:pipeline>

     <map:match pattern="**">
         <map:generate src="framework.xml"/>
         <map:transform type="xslt" src="framework.xsl"/>
         <map:parameter name="use-request-parameters" value="true"/>
         <map:serialize/>
   </map:match>
    <map:handle-errors>
     <map:transform src="context://stylesheets/system/error2html.xsl"/>
     <map:serialize status-code="404"/>
   </map:handle-errors>

   <!-- samples automount -->

  </map:pipeline>
 </map:pipelines>




                    "Vadim Gritsenko"

                    <vadim.gritsenko@ve     To:
<[EMAIL PROTECTED]>
                    rizon.net>              cc:

                                            Subject:     RE: passing
request parameters to xsl using cocoon 2.x

                    04/23/2002 12:16 AM

                    Please respond to

                    cocoon-users







> From: Zachary A Lendon [mailto:[EMAIL PROTECTED]]
>
>
> My sitemap entry is in there.

These are transformer's declarations, I meant pipeline entry.


> The page.xml file tells me what "logicsheet"
> to use.

There is no way in Cocoon 2 you could do this.


>  I'm not doing "mapping" persay in the sitemap file,

You must.


> only trying to
> make sure it transforms my xsl properly.  And it seems to not be
processing
> my requests properly,

Exactly my point - you must have appropriate pipeline entry.


> and my syntax appears proper so I feel it must be a
> setting thing.  Documentation is not clear on how to set up the
sitemap so
> that request parameters can be handled.  Is my sitemap entry below
correct?
>
> > <map:transformers default="xslt">
> >     <map:transformer logger="sitemap.transformer.xslt" name="xslt"
> > pool-grow="2" pool-max="32" pool-min="8" src
> > ="org.apache.cocoon.transformation.TraxTransformer">
> >       <use-request-parameters>true</use-request-parameters>
> >
<use-browser-capabilities-db>false</use-browser-capabilities-db>
> >       <use-deli>false</use-deli>
> >     </map:transformer>
> >
> > <map:transformer name="xslt-with-parameters"
> >     src="org.apache.cocoon.transformation.TraxTransformer">
> >     <use-request-parameters>true</use-request-parameters>
> >   </map:transformer>

Yes. Declarations are fine.


> if not, how should it be?  If it is, why doesn't my sample from below
work?
> Thank you all in advance for any help you might be able to provide...

You should have pipeline which will use declared transformer.

Vadim


>
>                     "Vadim Gritsenko"
>                     <vadim.gritsenko@ve     To:     <cocoon-
> [EMAIL PROTECTED]>
>                     rizon.net>              cc:
>                                             Subject:     RE: passing
request
> parameters to xsl using cocoon 2.x
>
>                     04/19/2002 07:10 PM
>                     Please respond to
>                     cocoon-users
>
>
>
>
>
>
> > From: Zachary A Lendon [mailto:[EMAIL PROTECTED]]
> >
> > In using the syntax:
> > http://www.somesite.com/page.xml?param1=test
> >
> > and having an associated xsl stylesheet with:
> >
> > <?xml version="1.0"?>
> > <xsl:stylesheet version="1.0" xmlns:xsl
> > ="http://www.w3.org/1999/XSL/Transform"; xmlns:xsp
> > ="http://www.apache.org/1999/XSP/Core";>
> >
> > <xsl:param name="param1"/>
> > ..
> > <h1><xsl:value-of select="$param1"/></h1>
> >
> > I am getting the page to render (in html) but am not getting the
> request
> > parameter values to show up.  Reading through the documentation, I
> > attempted to do the following edits to sitemap.xmap:
> > ..
> > <map:transformers default="xslt">
> >     <map:transformer logger="sitemap.transformer.xslt" name="xslt"
> > pool-grow="2" pool-max="32" pool-min="8" src
> > ="org.apache.cocoon.transformation.TraxTransformer">
> >       <use-request-parameters>true</use-request-parameters>
> >
<use-browser-capabilities-db>false</use-browser-capabilities-db>
> >       <use-deli>false</use-deli>
> >     </map:transformer>
> >
> > <map:transformer name="xslt-with-parameters"
> >     src="org.apache.cocoon.transformation.TraxTransformer">
> >     <use-request-parameters>true</use-request-parameters>
> >   </map:transformer>
> > ..
> >
> > Any advice?  This seems simple...
>
> You forgot to tell what your sitemap entry looks like.
>
> Vadim
>
>
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
>
>
>
>
>
> ==========
> The preceding e-mail message (including any attachments) contains
> information that may be confidential, be protected by the
attorney-client
> or other applicable privileges, or constitute non-public information.
It
> is intended to be conveyed only to the designated recipient(s).  If
you are
> not an intended recipient of this message, please notify the sender by
> replying to this message and then delete it from your system.  Use,
> dissemination, distribution, or reproduction of this message by
unintended
> recipients is not authorized and may be unlawful.
> ==========
>
>
>
>
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

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





==========
The preceding e-mail message (including any attachments) contains
information that may be confidential, be protected by the attorney-client
or other applicable privileges, or constitute non-public information.  It
is intended to be conveyed only to the designated recipient(s).  If you are
not an intended recipient of this message, please notify the sender by
replying to this message and then delete it from your system.  Use,
dissemination, distribution, or reproduction of this message by unintended
recipients is not authorized and may be unlawful.
==========




---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

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





==========
The preceding e-mail message (including any attachments) contains
information that may be confidential, be protected by the attorney-client
or other applicable privileges, or constitute non-public information.  It
is intended to be conveyed only to the designated recipient(s).  If you are
not an intended recipient of this message, please notify the sender by
replying to this message and then delete it from your system.  Use,
dissemination, distribution, or reproduction of this message by unintended
recipients is not authorized and may be unlawful.
==========




---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

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

Reply via email to