Mike Kienenberger said: ... > In order to promote extension, it'd be nice if the tools were a bit more > extension-friendly. > > Last week, I tried to extend the org.apache.velocity.tools.struts package to > support an ActionMessagesTool, but > org.apache.velocity.tools.struts.StrutsUtils is a protected class.
this has already been remedied in cvs; in the next release, the StrutsUtils class and methods will be public. if you like, checkout the latest code in cvs and use that. it's quite stable. > I tried to extend StrutsLinkTool for a different task, but all of the > LinkTool uri components are declared private. hmm. you'll have to do a *lot* of convincing to get me to change this. the LinkTool was very carefully designed to be extensible while still ensuring it will behave in a particular way. can you give more explanation of this "different task"? perhaps there is another way to solve your problem. > There are ways around these problems (stick my class in tools.struts, > decompose the output of toString), but it would have been nice to have done > it cleanly. hope you don't mind me CCing this to the velocity-dev list. i think this would be a useful conversation to carry on there where others might have valuable input or have similar questions/problems. i'd be happy to discuss ways we can improve the tools and their extensibility in that forum. :) Nathan Bubna [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
