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]

Reply via email to