Thanks for reply.
Actually i am passing two parameters into that action pipeline for one
of my publication. but those parameters are not necessary for other
publications.
when i am trying to create a new document in other publications, its
giving an error "parameter exception".so, how can i pass those parameters
basing on publication in usecase.xmap.
Thanks and Regards,
Srinivas Gurram.
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of
[EMAIL PROTECTED]
Sent: Saturday, June 03, 2006 8:42 PM
To: [email protected]
Subject: Re: Calling Action basing on Publication..............
On 6/2/06, Gurram, Srinivas <[EMAIL PROTECTED]> wrote:
> I am using lenya 1.2.
> I have four publications.
> I defined my own Action in sitemap.xmap which will be called in
> usecase.xmap.
> The problem is the Action pipeline should be
> called basing on the publication.
> How can i call my Action pipeline in usecase.xmap basing on
> the publication name? Please provide code for this.
public class MyAction extends AbstractConfigurableAction {
public Map act( Redirector redirector, SourceResolver resolver,
Map objectModel, String source, Parameters parameters) throws
Exception {
PageEnvelope envelope =
PageEnvelopeFactory.getInstance().getPageEnvelope(objectModel);
Publication pub = envelope.getPublication();
String publication = pub.getId();
solprovider
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
This e-mail and any attachment is for authorised use by the intended
recipient(s) only. It may contain proprietary material, confidential
information and/or be subject to legal privilege. It should not be copied,
disclosed to, retained or used by, any other party. If you are not an intended
recipient then please promptly delete this e-mail and any attachment and all
copies and inform the sender. Thank you.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]