What is the error message you are getting?

----- Original Message ----- 
From: "Carlos Llona" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, October 01, 2003 11:57 AM
Subject: problem using html:select


> Hello:
> 
> This is my litle problem
> 
> I make a sample in struts that register data from the users, this 
> data is save in one table ("Users"), the JSP have a field 
> call "Cargo" (I'm from southamerica - cargo is like a ocupation), in 
> this field the user enter the ocupation manualy, but now I want that 
> the user select the Cargo(ocupation - this ocupations are in another 
> table) from a combo, I can show the combobox with the data from de 
> table ocupations using a bean and the tag html:select.
> 
> <jsp:useBean id="cargo" class="beans.Cargos" scope="request"/>
> 
> <html:select name='cargo' property="nombre" >
> <html:option value="0">--select--</html:option>
> <html:optionsCollection name='cargo' label='nombre' 
> value='codigo' property='cargos' />
> </html:select>
> 
> but now I cant recive tha value selected in the combo in my User 
> form. I think that the problem was the value of the atribute property 
> of tha select tag, but when i change the value of the property 
> entering a name of the variable for my user form occurs a error, 
> because property just accept the name of a variable of my Cargo bean.
> 
> Whats is the problem with this???
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to