java guru wrote:
> 
> Hi.,
>   I have just used the following successfully..
> ************************************************
>    <map:match pattern="welcome2">
>         <map:act type="session-isvalid">
>                 <map:generate src="docs/samples/samples.xml"/>
>                 <map:serialize/>
>         </map:act>
>                 <map:generate src="docs/samples/hello-page.xml"/>
>                 <map:serialize/>
>    </map:match>
> 
> ****************************************
> As u can see., i am using two generators...


Actually, The sitemap only uses the first one set.  What will happen
with this construct is this:

If the Action returns null, the second generate/serialize pair will
be executed.

If the Action returns a Map, the first generate/serialize pair will
be executed.


As u can see, You are really only using 1 (one) generator...

> 
>  --- Philipp Schmidt <[EMAIL PROTECTED]> wrote: > Hi
>  all,
> >
> >  why does something like this
> >
> >  <map:match pattern="navigation.xml">
> >   <map:act type="session-validator">
> >     <map:parameter name="descriptor"
> > value="context://auth//descriptors//params.xml"/>
> >        <map:parameter name="validate"
> > value="username"/>
> >       <map:generate src="myNavigation.xml"/>
> >       <map:transform src="myNavigation.xsl"/>
> >    </map:act>
> >        <map:generate src="anotherNavigation.xml"/>
> >        <map:serialize/>
> >    </map:match>
> >
> > generate a  "org.apache.cocoon.ProcessingException:
> > Generator already
> > set. You can only select one Generator (file)"
> > error.
> > I can't switch to  <map:redirect-to
> > uri="anotherNavigation.xml"/>
> > beacuse navigation.xml will be aggregated and this
> > gives me no result .
> > Any clues how to fix this or is there any reason why
> > i can't do two
> > <map:generate> ?
> >
> > Thanks advance
> >
> > Philipp
> >
> >
> >
> >
> ---------------------------------------------------------------------
> > 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]>
> >
> 
> =====
> Thanks and have great day
> srini
> 
> ____________________________________________________________
> Do You Yahoo!?
> Send a newsletter, share photos & files, conduct polls, organize chat events. Visit 
>http://in/ groups.yahoo.com
> 
> ---------------------------------------------------------------------
> 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]>

Reply via email to