Exactly like that. You can't change request parameters, you should use request attributes instead. In theory, if you need different request parameters then you should create a new request and set all the parameters you need. But I don't think that you'll need this approach for your task.
Konstantin > -----Original Message----- > From: Antonio Gallardo Rivera > [mailto:[EMAIL PROTECTED]] > Sent: Monday, October 07, 2002 11:13 AM > To: [EMAIL PROTECTED] > Subject: Re: Changing request Parameters in an Action. > > > The answer I found was using Javascript to change the values > of 2 hidden > parameters using the OnChange event of the object select. > > Antonio Gallardo > > El Lunes, 07 de Octubre de 2002 00:31, Antonio Gallardo > Rivera escribiÕ: > > Sorry but, I am reopening this, because I need to change some > > parameters on the client form before I can add it to the database. > > > > I have a 2 fields database key: > > > > cat_id (foreign key from table categories) > > pro_id > > > > In the table are some values: > > > > cat_id pro_id pro_name > > 1 1 product1 > > 1 2 product2 > > 2 1 product3 > > 2 2 product4 > > > > I need to let the user select the product from a HTML page > in a combo > > basis. Then i can code: > > > > <select name="my_product"> > > <option value="1-1">product1</option> > > <option value="1-2">product2</option> > > <option value="2-1">product3</option> > > <option value="2-2">product4</option> > > </select> > > > > When the user send the request I get a parameter my_product="x-y". > > Where x is the encoded value of cat_id and y is the value of pro_id. > > > > Now my problem comes to life: How to create new request parameters > > into an action to make 2 new parameters: > > > > cat_id="x" and pro_id="y" > > > > Please help me ;) > > > > 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: <[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/faq/index.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/faq/index.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>