You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Antonio Gallardo Rivera <ag...@agsoftware.dnsalias.com> on 2002/10/07 02:47:50 UTC

Changing paramaters of request inside Action

Is posible to change parameters request inside an Action?

I need to set some parameters before insert into the database.

For example:
1-generate a random key
2-Create a timestamp
3-Validate a code numer based on the category of the selected product after 
the user select a product and write a number.

Thanks in advance, :)

Antonio Gallardo

---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>


Re: Changing parameters of request inside Action

Posted by Antonio Gallardo Rivera <ag...@agsoftware.dnsalias.com>.
Thanks. I will try in another way:

1-generate a random key - I will generate at the request time from the XSP.
2-Create a timestamp - Like above.
3-Validate a code numer based on the category of the selected product - 
Validate in an action.

Thanks.

El Domingo, 06 de Octubre de 2002 20:59, Ryan Agler escribió:
> I am not sure how to alter request parameters, but I do know you can
> set/change request attributes.  So, If you had an action with a
> statement like request.setAttribute("myAtt","10"), and then you could
> call request.getAttribute("myAtt") from subsequent actions or xsp.
>
> -----Original Message-----
> From: Antonio Gallardo Rivera [mailto:agallardo@agsoftware.dnsalias.com]
>
> Sent: Sunday, October 06, 2002 8:48 PM
> To: cocoon-users@xml.apache.org
> Subject: Changing paramaters of request inside Action
>
> Is posible to change parameters request inside an Action?
>
> I need to set some parameters before insert into the database.
>
> For example:
> 1-generate a random key
> 2-Create a timestamp
> 3-Validate a code numer based on the category of the selected product
> after
> the user select a product and write a number.
>
> Thanks in advance, :)
>
> Antonio Gallardo
>
> ---------------------------------------------------------------------
> Please check that your question  has not already been answered in the
> FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>
>
> To unsubscribe, e-mail:     <co...@xml.apache.org>
> For additional commands, e-mail:   <co...@xml.apache.org>
>
> ---------------------------------------------------------------------
> Please check that your question  has not already been answered in the
> FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>
>
> To unsubscribe, e-mail:     <co...@xml.apache.org>
> For additional commands, e-mail:   <co...@xml.apache.org>

---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>


RE: Changing parameters of request inside Action

Posted by Ryan Agler <ry...@hotmail.com>.
I am not sure how to alter request parameters, but I do know you can
set/change request attributes.  So, If you had an action with a
statement like request.setAttribute("myAtt","10"), and then you could
call request.getAttribute("myAtt") from subsequent actions or xsp.

-----Original Message-----
From: Antonio Gallardo Rivera [mailto:agallardo@agsoftware.dnsalias.com]

Sent: Sunday, October 06, 2002 8:48 PM
To: cocoon-users@xml.apache.org
Subject: Changing paramaters of request inside Action

Is posible to change parameters request inside an Action?

I need to set some parameters before insert into the database.

For example:
1-generate a random key
2-Create a timestamp
3-Validate a code numer based on the category of the selected product
after 
the user select a product and write a number.

Thanks in advance, :)

Antonio Gallardo

---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>

---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>