struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yanroy <rmea...@wpi.edu>
Subject how do I use a LazyDynaBean as an ActionForm?
Date Tue, 11 Jul 2006 16:38:44 GMT

Hi,
You may recall I posted a message similar to this one several days ago.  I
never received a reply, so I'm hoping that this shorter (and hopefully
simpler) version will get one.  I'm using a LazyDynaBean as the form
associated with a strut, which the docs seem to say will work by being
wrapped inside some other kind of ActionForm.  I haven't found any examples
online of exactly how to do this (none contain struts-config.xml, strut and
JSP all from the same app).  I'll give you a couple lines from my
struts-config.xml:

<form-bean 
	name="AnalysisForm" 
	type="org.apache.commons.beanutils.LazyDynaBean">
	<form-property 
		name="runnableTables" 
		type="java.lang.Integer"
		initial="1" 
		/>
</form-bean>

I also specify some array fields in that bean, but I edited that out for the
sake of brevity.

I also have my action:

<action
			path="/AnalysisConfig"
			name="AnalysisForm"
			type="org.assistment.apps.newReporting.analysis.struts.AnalysisConfig"
			scope="request"
			parameter="method">
</action>

The real problem here is that I have no idea how to get the data out of the
LazyDynaBean.  In my action strut, the form parameter passed to the handler
is null.  To me, this indicates some kind of misconfiguration, but I can't
see what it could be.  I'd greatly appreciate any help you can give... this
problem is completely holding up my work (it's the last part of the webapp
I'm making).

Thank you very much,
Ryan

PS - If anyone cares, my previous message was titled "ActionForm is null
when using dynabean"
-- 
View this message in context: http://www.nabble.com/how-do-I-use-a-LazyDynaBean-as-an-ActionForm--tf1925661.html#a5273110
Sent from the Struts - User forum at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message