Bryan:

> I'm new to struts and have a couple questions about FormBeans.

By way of example of a technique that doesn't require formbeans, but still
maintains many of their advantanges, you might want to check out how we've
integrated Struts into our OSS framework, Expresso. Expresso uses a
component called a Controller to encapsulate "states", where all the
business logic of the application occurs. When a Controller transitions from
state to state it produces a "ControllerResponse" that has all of the
outputs (and inputs and transitions to new states if appropriate). We've
enabled the Struts tags to access this response directly, meaning you *can*
use a form bean if/where appropriate, but you don't have to if you don't
want/need to, while still maintaining many of the advantages.

Just one way of doing things, certainly not the only way, but I thought it
might be useful as an example to you.

Regards,

Mike
Jcorporate Ltd.
http://www.jcorporate.com

>
> The application we're developing will have quite a few forms and I
> wanted to avoid creating a separate form bean for each JSP form.  I
> thought I read that I don't have to use FormBeans, but when I try, I get
> an exception "Cannot retrieve definition for form bean".
>
> What is the proper way of not using FormBeans?  In my struts-config, I
> left out the name attribute.  Is this correct?
>
> Do I have to use FormBeans if I'm using the HTML taglib?
>
> Thanks
> Bryan

Reply via email to