Néstor Boscán wrote the following on 1/18/2006 8:06 AM:
Hi Rick

I created a class that extends DynaActionForm and checked the parameters to
determine the size of the array. After I determine the size of the array I
set the attribute with a new array. I tested the code but after the reset
method I get:

java.lang.IllegalArgumentException: No bean specified   at
org.apache.commons.beanutils.PropertyUtils.getPropertyDescriptor(PropertyUti

Skip dealing with the reset method for a while. Can you even get the form to display without the reset method? This sounds like you having something named wrong in regard to how you are trying to get a form bean property. Does the error happen on submit? We need a few more details. Show you dynaForm definition in struts config and the form on the jsp.

ls.java:837)    at
org.apache.commons.beanutils.BeanUtils.setProperty(BeanUtils.java:934)  at
org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:808)     at
org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1252)    at
org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.j
ava:821)        at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:254)
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
com.evermind[Oracle Application Server Containers for J2EE 10g
(10.1.2.0.2)].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.j
ava:65) at oracle.security.jazn.oc4j.JAZNFilter.doFilter(Unknown Source)
at com.evermind[Oracle Application Server Containers for J2EE 10g
(10.1.2.0.2)].server.http.ServletRequestDispatcher.invoke(ServletRequestDisp
atcher.java:663)        at com.evermind[Oracle Application Server Containers
for J2EE 10g
(10.1.2.0.2)].server.http.ServletRequestDispatcher.forwardInternal(ServletRe
questDispatcher.java:330)       at com.evermind[Oracle Application Server
Containers for J2EE 10g
(10.1.2.0.2)].server.http.HttpRequestHandler.processRequest(HttpRequestHandl
er.java:830)    at com.evermind[Oracle Application Server Containers for
J2EE 10g
(10.1.2.0.2)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:285
)       at com.evermind[Oracle Application Server Containers for J2EE 10g
(10.1.2.0.2)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:126
)       at com.evermind[Oracle Application Server Containers for J2EE 10g
(10.1.2.0.2)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableR
esourcePooledExecutor.java:192) at java.lang.Thread.run(Thread.java:534)

Regards,

Néstor Boscán

Néstor Boscán - Gerente de Consultoría
Teléfono Móvil: +58 416 6070610 Teléfono Oficina: +58 212 2399711 - +58 212 2398198 Fax Oficina: +58 212 2399587 “Este mensaje es privado y confidencial, y está dirigido exclusivamente a
su(s) destinatario(s). Si usted ha recibido este mensaje por error, debe
abstenerse de distribuirlo, copiarlo o usarlo en cualquier sentido.
Asimismo, le agradecemos comunicarlo al remitente y borrar el mensaje y
cualquier documento adjunto.
Cualquier opinión contenida en este mensaje pertenece únicamente al autor
remitente y no representa necesariamente la opinión de TCS "Technology
Consulting Solution", a menos que ello se señale en forma expresa.
Eventualmente, los correos electrónicos pueden ser interceptados o
alterados, llegar con demora o incompletos. Al respecto, de TCS  "Technology
Consulting Solution" no se hace responsable por los errores, defectos u
omisiones que pudieran afectar al mensaje original, con motivo de su envío
por correo electrónico. “


-----Mensaje original-----
De: Rick Reumann [mailto:[EMAIL PROTECTED] Enviado el: Tuesday, January
17, 2006 11:07 PM
Para: Struts Users Mailing List
Asunto: Re: Array of a java bean and Dynamic Form Beans

Néstor Boscán wrote:

The problem is that I have to minimize the use of object in session scope to minimize session replication. Is there any way to do this in
request scope?

Right.. as I said you can use Request scope just fine. You just have to make
sure in the reset method to either use a LazyList to wrap your Collections
or somehow figure out what size to make to your collection. (I like LazyLists).

--
Rick

---------------------------------------------------------------------
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]



--
Rick

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to