Just decalre your IuserType as Integer upon submission Struts will
convert the value.

> -----Original Message-----
> From: Andy Cheng [mailto:[EMAIL PROTECTED]
> Sent: Monday, August 04, 2003 5:52 AM
> To: [EMAIL PROTECTED]
> Subject: Can
> 
> Is there anyway of having the code below to return int value? I have
> variables that match the datatype in the database, and I really want
to
> keep it instead of having String methods in the form class and do
> conversion everytime I need to read and modified using the get method.
> 
> <html:select property="IUserType">
> <html:option value="1" >Type1</html:option>
> <html:option value="2" >Type2</html:option>
> <html:option value="0" >Type3</html:option>
> </html:select>
> 
> Andy
> 


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

  • Can Andy Cheng
    • RE: Can Andrew Hill
    • Alex Shneyderman

Reply via email to