On Tue, 23 Apr 2002, Struts Newsgroup wrote:
> Date: Tue, 23 Apr 2002 01:55:01 -0700
> From: Struts Newsgroup <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: Re: Creating beans dynamically from byte code in a byte[] with
> ClassLoader.defineClass - how to do it right?
>
> Subject: Re: Creating beans dynamically from byte code in a byte[] with
>ClassLoader.defineClass - how to do it right?
> From: "JM" <[EMAIL PROTECTED]>
> ===
> Absolutely, how did ya do it?
One approach to dynamic class generation would be to use the BCEL package
at Jakarta:
http://jakarta.apache.org/bcel
A second option is to take advantage of the new DynaActionForm
capabilities in Struts 1.1-b1 -- you declare the form bean properties in
struts-config.xml and don't actually have to write the form bean class
unless you need a custom reset() or validate() method. Even if you do
need those, they are the only methods you have to write.
Craig
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>