GeeCON Prague 2014*
The moose likes Struts and the fly likes How to set value for Textbox,RadioButton,checkbox Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Frameworks » Struts
Bookmark "How to set value for Textbox,RadioButton,checkbox" Watch "How to set value for Textbox,RadioButton,checkbox" New topic
Author

How to set value for Textbox,RadioButton,checkbox

xinglee vn
Greenhorn

Joined: Jul 09, 2003
Posts: 9
Hi all !
I want to set value for Textbox(RadioButton/checkbox) with data from a bean . I write like this :
<bean efine id="abc" name="beanname"/>
<html:text property="usernameText" name="abc" value="name">
but the result is not right . If you had done these, please show me how . This is very important with me .
Thanks alot
Davet Kamerbeek
Greenhorn

Joined: Dec 08, 2004
Posts: 1
hi there,

can you give the code from the struts-config.xml file and the code from you bean (getters and setters)

maybe there's a typo in you configuration file..
[ December 08, 2004: Message edited by: Davet Kamerbeek ]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How to set value for Textbox,RadioButton,checkbox