-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Nathan,
Nathan Bubna wrote: > On 3/23/07, Christopher Schultz <[EMAIL PROTECTED]> wrote: >> I think a better architecture would be to create a helper class that is >> called by either VelocityViewServlet or VelocityToolboxFilter (a better >> name IMHO), instead of actually initializing a VelocityViewServlet >> inside the filter just for the purposes of accessing a >> "prepareToolboxes" method. > > like this one? > http://svn.apache.org/viewvc/velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/view/VelocityView.java?view=markup > > i never said anything about initializing a servlet within a filter. ;-) Sorry, it was this line that threw me: >>> So, we would just need to create a VelocityViewFilter that >>> initializes the VelocityView when it is init'ed, and then calls >>> velocityView.prepareToolboxes(request) for every request it >>> handles. For some reason, I was thinking that VelovityView was the servlet. It looks like VelocityView was similar to the utility class that I was envisioning. - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGBEUK9CaO5/Lv0PARAvQeAJ9mvVtIwN6MkoiE6y9XBvngJVsTCACeMjKV pDNSmYfPUY3ZUY52m1Za0Vk= =wJ8l -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
