In case you are interested:

(I am still on CVS. I can ony hope it's still valid, since I saw Velocity
has made the transition to SVN).

I am using Struts 1.2.4 and  a "roll-your-own" copy of velocity-tools 1.2.

The only way I found to get validator to work in this setup was to add the
following two lines to ValidatorTool. I am sorry that I cannot provide a
proper patch, but here is a cut-and-paste from my WinCVS diff command:

Index: src/java/org/apache/velocity/tools/struts/ValidatorTool.java
===================================================================
RCS file:
/home/cvspublic/jakarta-velocity-tools/src/java/org/apache/velocity/tools/st
ruts/ValidatorTool.java,v
retrieving revision 1.10
diff -r1.10 ValidatorTool.java
431a432,433
> results.append(form.getName()); // FV: Change made according to static
script generated by commons-validator-1.1.3
> results.append("_");    // FV

I cannot tell if this change won't break cooperation with other versions of
Struts, but it surely works for me.

Florin

P.S.: BTW, keeping the generated javadoc HTML files in the repository is
really confusing, if I may say so....
And I believe it has an unwanted impact on any versioning system, by adding
versions and versions without them being really needed.



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

Reply via email to