cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Manish" <mani...@npi.stpn.soft.net>
Subject Re: How can i access one child sitemap from another child sitemap.
Date Sat, 02 Mar 2002 05:58:48 GMT
Hello Vadim,

Thanks for your reply...

Let me put the problem in different way. The project I am working on, has
different modules, I

have two concern...

1) I want to decide the next page (navigation of the site) from site map
only
(Not even from action class, as it will require change in class to change
the navigation).

2) As the project has lots of screen, I want separate sitemap for each
module. Thus I am required

to move from one site map to other site map frequently.

please see the sitmaps below, how can I get redirected to dssdetail match of
dss sitemap???

your guidance will be highly appreciable as i am in trouble in managing the
sitemap.

Note: Please refer attached query.txt file if you find difficulty in format
of mail.

Regards,
Manish Jain


my Main site map contains these two pipeline to mount child sitmap, apart
from other common

pipeline

--------------
main site map
--------------
<map:pipeline>
 <map:match pattern="dss/**">
  <map:mount uri-prefix="dss" src="dss/" check-reload="yes"/>
 </map:match>
</map:pipeline>
<map:pipeline>
 <map:match pattern="transaction/**">
  <map:mount uri-prefix="transaction" src="transaction/"
check-reload="yes"/>
 </map:match>
</map:pipeline>


-------------------
Transaction sitemap
-------------------
<map:action-set name="displaydss">
   <map:act type="SaveTransaction" action="invokedss"/><!--This action saves
transaction data to

database-->
</map:action-set>
<map:action-set name="UpdateTransaction">
   <map:act type="UpdateTransaction" action="update"/>
</map:action-set>

<map:pipeline>
<map:match pattern="TransactionDetail">
<map:act type="Default">
    <map:generate type="serverpages" src="transaction_detail.xsp"/>
    <map:transform src="transaction_detail.xsl"/>
    <map:act set="displaydss">
 <map:redirect-to uri=***{After insertion of data, I want to redirect to
'dssdetail' of

dss sitemap}***/>
    </map:act>
    <map:act set="UpdateTransaction">
  <map:redirect-to uri="listoftransaction"/>
    </map:act>
    <map:serialize type="html"/>
</map:act>
</map:match>
<!-- how can I get redirected to dssdetail match of dss sitemap??? -->

<map:match pattern="listoftransaction">
    <map:generate type="serverpages" src="transaction_list.xsp"/>
    <map:transform src="transaction_list.xsl"/>
    <map:serialize type="html"/>
</map:match>
</map:pipeline>


-------------------
dss sitemap
-------------------

<map:pipeline>
<map:match pattern="dssdetail">
    <map:generate type="serverpages" src="dss_detail.xsp"/>
    <map:transform src="dss_detail.xsl"/>
    <map:serialize type="html"/>
</map:match>
</map:pipeline>



----- Original Message -----
From: "Vadim Gritsenko" <vadim.gritsenko@verizon.net>
To: <cocoon-users@xml.apache.org>
Sent: Monday, March 18, 2002 9:05 PM
Subject: RE: How can i access one child sitemap from another child sitemap.


> It is hard to reply to HTML mail and without having short sitemap
> snippets... But from what you described here I still fail to see where
> your problem is.
>
> (This means: send plain text mail; and sitemap snippet short enough to
> observe the issue you are experiencing on the one page)
>
> Vadim
>
> -----Original Message-----
> From: Manish [mailto:manishj@npi.stpn.soft.net]
> Sent: Friday, March 01, 2002 10:04 AM
> To: cocoon-users@xml.apache.org
> Subject: Re: How can i access one child sitemap from another child
> sitemap.
>
> Hello Vadim,
> Let me put the problem in different way. The project I am working on,
> has different modules, I have two concern...
> 1) I want to decide the next page (navigation of the site) from site map
> only
> (Not even from action class, as it will require change in class to
> change the navigation).
> 2) As the project has lots of screen, I want separate sitemap for each
> module. Thus I am required to move from one site map to other site map
> frequently.
> Let me have an example to elaborate the situation.
> The project (has main site map) has two modules
> Transaction Manager (child map 1)
> DSS (child map 2)
> Now DSS can be invoked from transaction screen by pressing a button
> (with cocoon-action 'invoke dss'). on this action transaction class will
> save the transaction to database and will invoke DSS screen(both of
> these two module have two different sitemap). How do I redirect to other
> screen with above two concerns.
> your guidance will be highly appreciable as i am in trouble in managing
> the sitemap.
> Regards,
> Manish Jain
>
>
>
> ----- Original Message -----
> From: "Vadim Gritsenko" <vadim.gritsenko@verizon.net>
> To: <cocoon-users@xml.apache.org>
> Sent: Monday, March 18, 2002 7:13 PM
> Subject: RE: How can i access one child sitemap from another child
> sitemap.
>
> > The concepts behind Cocoon includes IoC pattern: "Inversion Of
> Control".
> > I believe it is explained in the "Developing with Avalon" book.
> >
> > What we got here is (IMHO) an example of not understanding of this
> > pattern. Instead of having pipeline to transfer execution to another
> > pipeline *after* its finish (which already sounds wrong), you should
> > think about invoking first pipeline from the second on the step of the
> > execution of the second pipeline which requires output of the first
> > pipeline.
> >
> > In two words: "child 2 pipeline" must access result of "child 1
> > pipeline", and not another way. See also
> > http://localhost:8080/cocoon/sub/xsl-dynamic sample to get an idea.
> >
> > Vadim
> >
> > -----Original Message-----
> > From: Niket Anand [mailto:niketanand@npi.stpn.soft.net]
> > Sent: Monday, March 18, 2002 12:39 AM
> > To: cocoon-users@xml.apache.org
> > Subject: Re: How can i access one child sitemap from another child
> > sitemap.
> >
> > Hello Vadim,
> > Can you suggest me something regarding following problem?
> > Thanks,
> > Niket
> > ----- Original Message -----
> > From: Manish
> > To: cocoon-users@xml.apache.org
> > Sent: Monday, March 18, 2002 1:19 PM
> > Subject: How can i access one child sitemap from another child
> sitemap.
> >
> > Hello,
> > I got stuck with this problem...
> > I have main sitemap for cocoon folder and two other child sitemap,
> > say child1 and child 2. After execution of a pipeline in child1 I want
> > to redirect the control to child 2 pipeline. I am not able to do it
> with
> > "cocoon:// " as it doesn't work with "map:redirect" tag.
> > Please help me...
> >
> > Regards,
> > Manish
>
>
>
> ---------------------------------------------------------------------
> 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: <cocoon-users-unsubscribe@xml.apache.org>
> For additional commands, e-mail: <cocoon-users-help@xml.apache.org>

Mime
View raw message