Hi Mohd, As I have been doing some work on edit pages, here are few stuffs that you can incorporate.
specifically for <html:select> use <html:options> with collection. EX : imagine you have a State object wherein you have 2 variables as id and name. You can create a Collection of this objects and make use of the collection in your <html:options> tag. in your form you have : private String stateId; private Collection states; usage : <bean:define id="stateColl" name="EditOrgForm" property="states"/> <html:select property="stateId"> <html:options collection="stateColl" property="id" labelProperty="name"/> </html:select> stateColl - reference to the collection at the runtime. stateId - attr in the form that holds the state Id. states - Collection of state objects in the form bean the output of the above lines would be : <select name="stateId"> <option value="-1"></option> <option value="CA" selected="selected">CA</option> <option value="NY">NEW YORK</option> <option value="NZ">NEW JERSY</option> </select> -----Original Message----- From: Mohd Fadhly [mailto:[EMAIL PROTECTED] Sent: Saturday, November 15, 2003 8:27 AM To: Struts Users Mailing List Subject: Typical edit page hi is there any automatic way that i can polulate all the fields (including html:select with html:options) in a typical edit/update page? coz right now im doing it manually. & im basically stuck when try to select the option saved previously. im using html:options with the labelValueBean any help is greatly appreciated --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]