cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yuryx <yu...@mobicomk.donpac.ru>
Subject Re: Cocoon action
Date Sun, 03 Feb 2002 12:05:52 GMT
my CLASSPATH enviroment contain path to $JRE/rt.jar
and I have this compilation error's:

public Map act (Redirector redirector, <---javac can't found class
                SourceResolver resolver, <--- javac can't found class
                Map objectModel,
                String source,
                Parameters params)
What I'm doing wrong?


yuryx wrote:

> So easy? :)
> Thanx Sidharth!
> Yury
>
> Sidharth wrote:
>
>> just write
>> String myParameter=request.getParameter("name")
>> siteparams.put("hello",myparameter)
>>
>>
>> then on sitemap
>>
>> <match pattern=test>
>>    <act................>
>>        <redirect to uri="{hello}"/>
>> </act>
>> </match>
>> ----- Original Message -----
>> From: "yuryx" <yuryx@mobicomk.donpac.ru>
>> To: <cocoon-users@xml.apache.org>
>> Sent: Sunday, February 03, 2002 1:10 PM
>> Subject: Re: Cocoon action
>>
>>
>>>    String myParameter=***???parameter from my page??? (how set from 
>>> page
>>>
>> and get this?)***;
>>
>>>    sitemapParams.put("world", myParameter);
>>>
>>>
>>> Sidharth wrote:
>>>
>>>> Ofcourse why not??
>>>> ----- Original Message -----
>>>> From: "yuryx" <yuryx@mobicomk.donpac.ru>
>>>> To: <cocoon-users@xml.apache.org>
>>>> 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" <yuryx@mobicomk.donpac.ru>
>>>>>> To: <cocoon-users@xml.apache.org>
>>>>>> 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" <yuryx@mobicomk.donpac.ru>
>>>>>>>> To: <cocoon-users@xml.apache.org>
>>>>>>>> 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: <cocoon-users-unsubscribe@xml.apache.org>
>>>>>>>>> For additional commands, e-mail: 
>>>>>>>>> <cocoon-users-help@xml.apache.org>
>>>>>>>>>
>>>>>>>> ---------------------------------------------------------------------

>>>>>>>>
>>>>>>>> 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>
>>>>>>>>
>>>>>>>
>>>>>>> ---------------------------------------------------------------------

>>>>>>>
>>>>>>> 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>
>>>>>>>
>>>>>> ---------------------------------------------------------------------

>>>>>>
>>>>>> 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>
>>>>>>
>>>>>
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> 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>
>>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> 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>
>>>>
>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> 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>
>>>
>>
>>
>> ---------------------------------------------------------------------
>> 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>
>>
>
>
>
>
> ---------------------------------------------------------------------
> 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>
>




---------------------------------------------------------------------
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