Would it be possible - and how - to pass some initialization parameters to the tools ?

Those parameters would be defined in toolbox.xml, like :

<toolbox>
  <tool>
     <key>toytool</key>
     <class>ToyTool</class>
     <tool-param>
        <param-name>my param</param-name>
        <param-value>my  value</param-value>
     </tool-param>
  </tool>
</toolbox>

We would need something like the ViewTool interface, but the VelocityViewServlet 
considers implicitely that the init method of this
interface is meant to receive the ViewContext.
Maybe another interface ? Like ParametrizableTool ?

Another problem : when the parameter is to be a filename (an initialization file 
needed by the tool), how can we ensure that the
default path is the WEB-INF of the web-app ?

Thanks for your help.

CloD



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to