how to combine html:text and bean:write

1k Views Asked by At

I am using <bean:write/> tag in my struts program to catch my data into text field but I want to update/edit those data which is coming by this tag so I want to use <html:text/> tag with <bean:write/>, is it possible? is there any other option to update <bean:write/> tag's data.

I am using this tag like -

<bean:write name="Customer" property="lastname"/>

1

There are 1 best solutions below

2
On

It's not entirely clear to me what you want to update, and under what circumstances.

If you're saying to want to have the customer's last name be an editable text field, then initialize the ActionForm with the appropriate values before displaying it to the user; you don't need the <bean:write> tag at all if you're just trying to initialize/show a form field.