wood burning stoves 2.0*
The moose likes Struts and the fly likes Editable Text Box with Value Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Editable Text Box with Value" Watch "Editable Text Box with Value" New topic
Author

Editable Text Box with Value

subhasish nag
Ranch Hand

Joined: Apr 25, 2008
Posts: 101
How can I create a textbox which will be populated from formbean and will show those datas .I have tried with the code given belowbut unable to display those datas in textbox.


Thanks,<br />Subhasish
paddy Mahadeva Iyer
Ranch Hand

Joined: Feb 10, 2007
Posts: 63
i am not so clear with struts 1 tags but i think you should be trying to set the value in the property to the "value" attribute on <html:text> for it to display
Tom Rispoli
Ranch Hand

Joined: Aug 29, 2008
Posts: 349
You'll want to take the bean:write out and specify the name of your form bean in the name attribute of the text tag and the name of the property you want in the property attribute.
 
Consider Paul's rocket mass heater.
 
subject: Editable Text Box with Value
 
Similar Threads
help with tags
difference between html textbox and struts-html textbox?
html:text problem...
Please help me. Error when show data on the textbox
disabling html:select and html:text by the value in another html:select