jsp - java.lang.IllegalArgumentException: No bean specified in Struts -


i have problem web application, use actionform have objects (with gets , sets).

public class myform extends extendform {      private list<myclass> listmyclass;     private myclass detail;     ...     // , set implemented 

in specific jsp need see fields of "detail" object (which valorize in previous passage.) implemented page this:

<html:form action="/action.do?method=updateclass"> ... <td><html:text property="detail.id">${myform.detail.id}</html:text></td> .... <html:submit>ok</html:submit> </html:form> 

i can see value of detail.id inside textbox, when hit ok go method updateclass see exception:

[28/07/17 14.41.43:528 cest] 0000002d webapp        e com.ibm.ws.webcontainer.webapp.webapp logservleterror srve0293e: [errore servlet]-[xxx]: java.lang.illegalargumentexception: no bean specified     @ org.apache.commons.beanutils.propertyutilsbean.getpropertydescriptor(propertyutilsbean.java:874)     @ org.apache.commons.beanutils.beanutilsbean.setproperty(beanutilsbean.java:933)     @ org.apache.commons.beanutils.beanutilsbean.populate(beanutilsbean.java:830)     @ org.apache.commons.beanutils.beanutils.populate(beanutils.java:433)     @ org.apache.struts.util.requestutils.populate(requestutils.java:473)     @ org.apache.struts.chain.commands.servlet.populateactionform.populate(populateactionform.java:50)     @ org.apache.struts.chain.commands.abstractpopulateactionform.execute(abstractpopulateactionform.java:60)     @ org.apache.struts.chain.commands.actioncommandbase.execute(actioncommandbase.java:51)     @ org.apache.commons.chain.impl.chainbase.execute(chainbase.java:191)     @ org.apache.commons.chain.generic.lookupcommand.execute(lookupcommand.java:305)     @ org.apache.commons.chain.impl.chainbase.execute(chainbase.java:191)     @ org.apache.struts.chain.composablerequestprocessor.process(composablerequestprocessor.java:283)     @ org.apache.struts.action.actionservlet.process(actionservlet.java:1913)     @ org.apache.struts.action.actionservlet.dopost(actionservlet.java:462)     @ javax.servlet.http.httpservlet.service(httpservlet.java:738)     @ javax.servlet.http.httpservlet.service(httpservlet.java:831)     @ com.ibm.ws.webcontainer.servlet.servletwrapper.service(servletwrapper.java:1443)     @ com.ibm.ws.webcontainer.servlet.servletwrapper.handlerequest(servletwrapper.java:790)     @ com.ibm.ws.webcontainer.servlet.servletwrapper.handlerequest(servletwrapper.java:443)     @ com.ibm.ws.webcontainer.servlet.servletwrapperimpl.handlerequest(servletwrapperimpl.java:175)     @ com.ibm.ws.webcontainer.servlet.cacheservletwrapper.handlerequest(cacheservletwrapper.java:91)     @ com.ibm.ws.webcontainer.webcontainer.handlerequest(webcontainer.java:859)     @ com.ibm.ws.webcontainer.wswebcontainer.handlerequest(wswebcontainer.java:1557)     @ com.ibm.ws.webcontainer.channel.wcchannellink.ready(wcchannellink.java:173)     @ com.ibm.ws.http.channel.inbound.impl.httpinboundlink.handlediscrimination(httpinboundlink.java:455)     @ com.ibm.ws.http.channel.inbound.impl.httpinboundlink.handlenewinformation(httpinboundlink.java:384)     @ com.ibm.ws.http.channel.inbound.impl.httpiclreadcallback.complete(httpiclreadcallback.java:83)     @ com.ibm.ws.tcp.channel.impl.aioreadcompletionlistener.futurecompleted(aioreadcompletionlistener.java:165)     @ com.ibm.io.async.abstractasyncfuture.invokecallback(abstractasyncfuture.java:217)     @ com.ibm.io.async.asyncchannelfuture.firecompletionactions(asyncchannelfuture.java:161)     @ com.ibm.io.async.asyncfuture.completed(asyncfuture.java:138)     @ com.ibm.io.async.resulthandler.complete(resulthandler.java:202)     @ com.ibm.io.async.resulthandler.runeventprocessingloop(resulthandler.java:766)     @ com.ibm.io.async.resulthandler$2.run(resulthandler.java:896)     @ com.ibm.ws.util.threadpool$worker.run(threadpool.java:1527) 

in struts-config.xml wrote form bean this

<form-beans>     <form-bean name="myform" type="aaa.bbb.ccc.myform"/>         </form-beans> 

but can't resolve error. think must "say" struts exist "detail" object can't understand how.

can me?


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -