dcsimg
<html:multibox>. Great and unknown problem!
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anonymous
Posted On:   Tuesday, November 19, 2002 03:49 AM

Hi everyone! I'm recently working with "html:multibox" tags, but i've got a very strange problem. Check this out... this is my action servlet code: 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 INF   More>>

Hi everyone!



I'm recently working with "html:multibox" tags, but i've got a very strange problem. Check this out... this is my action servlet code:



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; }

}



I take advantage highlight what my program run perfectly with only "accion" and "pagina" hidden tags...

My JSP code:






1










Everything seems to be ok, but weblogic send the next exception message:



javax.servlet.jsp.JspException: No getter method available for property opciones for bean under name org.apache.struts.taglib.html.BEA
N

at
org.apache.struts.taglib.html.MultiboxTag.doEndTag(MultiboxTag.java:271)

.

.

.


I know what this message it's sended when in actionForm don't exist some input tags whit the "opciones" property defined, isn't?, but, if you see my action servlet code, this input tag exist! :... what happening?...
More over, if i exchange html:multibox for html:text, the JSP runs correctly!!... NOOOOOO!!...

Some one can answer and tell me what happening here?...


regard masters.


PD: I speak spanish... sorry but my english, shold be bad    <<Less

Re: &lt;html:multibox&gt;. Great and unknown problem!

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


You 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