Well, it recently became useful for me to control whether or not the ServletToolboxManager will create a session to hold session tools if one doesn't already exist. So here's the patch.
Now, if you are using session tools and you don't want the
ServletToolboxManager to go creating sessions on its own to save the session
tools, then you can say so.
Just apply this patch and add a <create-session> element to your toolbox.xml
like this:
<toolbox>
<create-session>no</create-session>
<tool>
<key>foo</key>
<scope>session</scope>
<class>org.foo.Tool</scope>
</tool>
</toolbox>
if you either leave out that element or set its value to 'yes', then the
ServletToolboxManager will continue to behave as it currently does and
create sessions when you have session tools defined but no session in which
to keep them.
Gabe, Geir, et. al. assuming that you guys have no problems with the
implementation or whatever, i'd love to see this committed. and, of course,
feedback is always quite welcome!
Nathan Bubna
[EMAIL PROTECTED]
diff.tmp
Description: Binary data
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
