Hi Wendy, No, I'm not using DynaForms. I was just desperate so I started trying EVERYTHING. That included testing with and without the specific mappings inside the descriptor. I'd also checked the names and they were fine.
I'll give it a look again, though. I don't know if this will give you more information or not, but my search / delete page actually has 2 DIFFERENT forms: - One of that action that performs the search. This one doesn't have a String[] (and it shouldn't since it is not the responsible for anything that has to do with the selectors). - Another that belongs to the action that performs the delete action. That form has the String[] plus a String property for specifying the URL where control will be REDIRECTED after completion (this is to reduce the probability of facing the re-submit problem). That said, I tried this: <html:multibox property="elementsId"> <bean:write name="aBean" property="id"/> </html:multibox> INSTEAD OF <input type="checkbox" name="elementsId" value='<bean:write name="aBean" property="id"/>' /> ... and it throws this exception: INFO: Initializing, config='org.apache.struts.taglib.html.LocalStrings', returnNull=true ApplicationDispatcher[/wa]: Servlet.service() for servlet debugjsp threw exception org.apache.jasper.JasperException: Cannot find bean under name org.apache.struts.taglib.html.BEAN at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2 54) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher. java:684) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatch er.java:432) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher .java:356) at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:10 69) at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProces sor.java:455) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:256) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2416) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve. java:171) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:601) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne ction(Http11Protocol.java:392) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav a:619) at java.lang.Thread.run(Thread.java:534) Just plain amazing. Regards, Freddy. -----Mensaje original----- De: Wendy Smoak [mailto:[EMAIL PROTECTED] Enviado el: miércoles, 06 de octubre de 2004 1:37 Para: Struts Users Mailing List; [EMAIL PROTECTED] Asunto: Re: Struts not mapping checkboxes into String[] property From: "Freddy Villalba A." <[EMAIL PROTECTED]> > I've also created a String[] > property called "elementsId" inside my actionForm class. I've even added the > properties for that form inside Struts' xml descriptor. Are you using a dynamic form, or do you have get/set methods written in the form bean? I don't think you need to do both. > IT DOESN'T WORK. The values are not being mapped to the String[]. If your form property isn't getting populated, then Struts isn't calling the 'set' method. Usually that happens when the names of the request parameter & set method don't match, or your form class doesn't conform to the JavaBeans specification and confuses the introspection/reflection (never can remember which!) mechanism. -- Wendy Smoak --------------------------------------------------------------------- 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]