Mu, I think what you want to do is provide an action that sets up your form prior to forwarding to the JSP page. In that action, you can set the String[] to hold the values that you want checked for rendering by html:multibox. For example, let's say your form is something like the following:
public MyForm extends ActionForm { private String[] multiboxValues; public String[] getMultiboxValues() { if (mulitboxValues == null) multiboxValues = new String[] {}; return multiboxValues; } public setMultiboxValues(String[] vals) { multiboxValues = vals; } } Create an Action that forwards to the JSP page in its action mapping. Then in the Action initialize the multiboxValues however is needed. Something like the following: public EditMultiboxAction extends Action { public ActionForward execute(...) { MyForm myform = (MyForm) form; // call the business service to get the default settings String[] checkedVals = getDefaulSettings(); form.setMultiboxValues( checkedVals ); return mapping.findForward( "success" ); } } FYI: The above would be used if your form was in session scope. If not, then push the appropriate data into the request. Let me know if you have any questions. Bill Mu Mike wrote: > I m using a htmol:multibox tag, I want the check boxes checked or > unchecked every time differently accoriding to the data I have in my jsp > file, I m using an action form ,it has a string[] property, But I dont > know how to initate the property with the data I have in jsp file. > > any good suggestions? > > Thanks&Regards > Mike > > _________________________________________________________________ > 与联机的朋友进行交流,请使用 MSN Messenger: http://messenger.msn.com/cn --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]