I'm pretty new to struts to, but here is what I have figured out about this...
That 36k of stuff is code specified in the validation-rules.xml file. Think of it as the architecture behind client side validations. You need it if you want to do client side validations.
Hopefully the brower will cache that and not download it for each page, but that is not under your control.
The problem is that if you add a new validation rule you must remember to update the .js file you created.
Does that make sense? I think it does.
Joined: May 06, 2003
The problem with that is that in the call to generate the js
It will imbed the page with both logic for that form, and general checking logic.
So part of it does need to be dynamically generated for that particualar form , while a huge chunck of it can be copied and put in an external .js file.
I guess i'll just modify the source to do this. Just checking to see if anyone else has noticed this or had a way around it.