Hi all I really need some help, I have code like this 
 
This is my input form jsp
 
<html:form action="halAction">
<logic:iterate id="ide" property="items" name="halForm">
<html:multibox property="selectedItems" >
<bean:write name="ide" />
</html:multibox>
<bean:write name="ide" />
</logic:iterate>
<html:submit value="submit" property="tombol" />
</html:form>
 
from that form  users can checked one or more of the checkbox that show
up  and the output value show in my output form jsp
<html:form action="halAction2">
<logic:iterate id="ide" name="halForm" property="items">
<bean:write name="halForm" property="selectedItems" />
</logic:iterate>
</html:form>
 
and this is my actionForm
 
package pak;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionError;
import org.apache.struts.action.ActionMapping;
import javax.servlet.http.HttpServletRequest;
 
public class halForm extends ActionForm 
{
   private String[] selectedItems={};
   private String[] items={"No 1","No 2","No 3"};
   private String tombol;
   
   public String[] getSelectedItems()
   {
     return this.selectedItems;
   }
   public void setSelectedItems(String[] selectedItems)
   {
     this.selectedItems=selectedItems;
   }
   public String[] getItems()
   {
     return this.items;
   }
   
 
  public void reset(ActionMapping mapping, HttpServletRequest request)
  {
    super.reset(mapping, request);
  }
 
  public ActionErrors validate(ActionMapping mapping, HttpServletRequest
request)
  {
    return super.validate(mapping, request);
  }
 
  public String getTombol()
  {
    return tombol;
  }
 
  public void setTombol(String newTombol)
  {
    tombol = newTombol;
  }
}
 
and my problem is the value from the multibox can't show up in my output
form, is it something wrong with my code ,can somebody help me I really
get frustration with this problem
thanks for all answer...

Reply via email to