For Edit what i want is to get the values from database and display it on form as default.
What i am doing is ->
1)First calling one action handler getting the values from database and putting inside one data bean. Putting that bean inside request scope then forwarding to Edit Form
2)Inside Edit form I want to get these values as by default for text box
Rather than putting your bean in request scope, populate the form bean before forwarding to EditForm. The easiest way is with BeanUtils.copyProperties() [assuming the property names match]. You can see an example of this in struts-example.war.
Using the 'value' attribute (or nested <bean:write> tag) means that the form will always be rendered with the values from the database-- this could be a problem if you need to validate the form and re-display the incorrect input.
--
Wendy Smoak
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]