Yep.  You can specify the scope like this:

<command name="foo">
  <controller class="org.foo.Bar"/>
  <view name="success" path="foo.jsp" scope="session"/>
  <view...
</command>

You can also specify the name of the model with a "bean" attribute on
the view element.  Normally the place to look for this is the javadocs
for the appropriate ViewFactory (in this case DocumentViewFactory), but
I just noticed that the documentation is missing.  I'll add it today.

Note that if you want the Struts-like separation of FormBean and Action,
you'll need to implement your own ControllerSingleton base class.  If
you would like a bit of help with this I can post a rough skeleton to
start with.

Enjoy,
Jeff Schnitzer
[EMAIL PROTECTED]

> -----Original Message-----
> From: Roman V. Petrov [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, March 06, 2002 2:26 AM
> To: [EMAIL PROTECTED]
> Subject: [Mav-user] FormBeans in the Maverick
> 
> Can I do something like session scope FormBean in the Apache Struts
> with the Maverick?
> 
>                      Sincerely yours, Roman Petrov
> 
> 
> _______________________________________________
> Mav-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/mav-user

_______________________________________________
Mav-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mav-user

Reply via email to