dcsimg
<html:multibox>. A great and unkonown problem
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anonymous
Posted On:   Monday, November 18, 2002 07:35 AM

Hi everyone: I've the next problem... First, Let see the action form code, ok?: public final class EliminarUsuarioUIForm extends ActionForm { private String[] opciones = { }; private String pagina; private String accion; public void reset(ActionMapping mapping, HttpServletRequest request) { } public ActionErrors validate(ActionMapping mapping, HttpServletRequest request ) { System.out.println("*** [EliminarUsuarioUIForm INFO] validate process..."); return null; } public String[] getOpciones() { return this.opciones; } public String ge   More>>

Hi everyone:

I've the next problem...

First, Let see the action form code, ok?:



public final class EliminarUsuarioUIForm extends
ActionForm {


private String[] opciones = { };

private String pagina;

private String accion;


public void reset(ActionMapping mapping, HttpServletRequest request) {
}


public ActionErrors validate(ActionMapping mapping,
HttpServletRequest request
) {

System.out.println("*** [EliminarUsuarioUIForm INFO] validate process...");
return null;
}


public String[] getOpciones() { return this.opciones; }

public String getPagina() { return pagina; }

public String getAccion() { return accion; }

public void setOpciones(String[] opciones) { this.opciones = opciones; }

public void setPagina(String pagina) { this.pagina = pagina; }

public void setAccion(String accion) { this.accion = accion; }
}


My JSP code is:










"usuarios" is a Collection instance. For a html:text tags or bean:write tag inside to the iterate tag, this work correctly...
For "pagina" and "accion" hidden tags, the action form work perfecly, but when add "multibox" tag, weblogic shown this exception message:



<[WebAppServletContext(7476577,sgu,/sgu)] Root cause of ServletException

javax.servlet.jsp.JspException: No getter method available for property opciones for bean under name org.apache.struts.taglib.html.BEAN
at org.apache.struts.taglib.html.MultiboxTag.doEndTag(MultiboxTag.java:271)
at jsp_servlet.__eliminar_usuario._jspService(__eliminar_usuario.java:204)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:265)
at

.

.

.

weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2204)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
>



Where is the problem?...



Note: The actionForm instance is created correctly by weblogic. In fact, the line in actionform "System.out.println..." has been write in the weblogic debug console.    <<Less

Re: &lt;html:multibox&gt;. A great and unkonown problem

Posted By:   Anonymous  
Posted On:   Tuesday, November 19, 2002 12:21 PM


We don't answer...



I repair it!...



The problem, the form property "action" aren't
correct, then, the ActionForm instantiated aren't i
like it...





.

.

.



Instatiate the addUserForm (defined in struts-config.xml)

I didn't see that... I lose three days :.(

At last...



Seeya
About | Sitemap | Contact