Ofcourse why not??
----- Original Message -----
From: "yuryx" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, February 03, 2002 12:40 PM
Subject: Re: Cocoon action


> Like this?
>
> public class HelloWorldAction extends AbstractAction {
>   public Map act (Redirector redirector,
>                   SourceResolver resolver,
>                   Map objectModel,
>                   String source,
>                   Parameters params) {
>     Map sitemapParams = new HashMap();
>     sitemapParams.put("world", "hello");
>
>     Request request = (Request) objectModel.get(Constants.REQUEST_OBJECT);
>
>     request.setAttribute("hello", "world");
>
>     return sitemapParams;
>   }
> }
>
> but I have like
>
> public class HelloWorldAction extends AbstractAction {
>   public Map act (Redirector redirector,
>                   SourceResolver resolver,
>                   Map objectModel,
>                   String source,
>                   Parameters params) {
>     Map sitemapParams = new HashMap();
> file://***************************************************************
>     String myParameter=***parameter from my page***;
>     sitemapParams.put("world", myParameter);
> file://****************************************************************
> // It's possible?
>     Request request = (Request) objectModel.get(Constants.REQUEST_OBJECT);
>
>     request.setAttribute("hello", "world");
>
>     return sitemapParams;
>   }
> }
>
>
>
>
>
>
>
>
> Sidharth wrote:
>
> >Then put the parameter into siteparams *Map* of action class and terieve
it
> >on the sitemap
> >As been examplified in actions under docs
> >----- Original Message -----
> >From: "yuryx" <[EMAIL PROTECTED]>
> >To: <[EMAIL PROTECTED]>
> >Sent: Sunday, February 03, 2002 12:13 PM
> >Subject: Re: Cocoon action
> >
> >
> >>Sorry, but I have sent parameter *into* action  code. And setting
> >>pipeline parameter with this parameter ...
> >>
> >>Sidharth wrote:
> >>
> >>>Yes thgis is
> >>>If the current page submits to a single page then write
> >>>
> >request.getParameter
> >
> >>>code in the second page controller
> >>>----- Original Message -----
> >>>From: "yuryx" <[EMAIL PROTECTED]>
> >>>To: <[EMAIL PROTECTED]>
> >>>Sent: Sunday, February 03, 2002 11:41 AM
> >>>Subject: Cocoon action
> >>>
> >>>
> >>>>Hello All!
> >>>>
> >>>>I have sent some parameters from  page (within onClick event, sample)
> >>>>into  cocoon action.
> >>>>And switch pipelines with this parameters. It's possible?
> >>>>Thanx.
> >>>>Yury.
> >>>>
> >>>>
> >>>>
> >>>>---------------------------------------------------------------------
> >>>>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]>
> >>>
> >>
> >>
> >>
> >>---------------------------------------------------------------------
> >>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]>
> >
>
>
>
>
> ---------------------------------------------------------------------
> 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