we use velocity, also in our lagecy code there are so many $form vars.
velocity sees the key word form, will call the FormTool to validate the form
and print the java reference on the page…. which is very annoy . how to tell
velocity to disable it?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
In VelocityTools 2, you can overwrite tool references by default. You can also specify your own $form tool that does not do that in your toolbox. Or even easier, specify “form” as data in your toolbox. Then the $form reference lookup will find that first for all your pages:
Best of all, if you are not using VelocityStruts, then just ditch the full VelocityTools jar and use the VelocityView jar.