Results 1 to 1 of 1
- 09-10-2010, 09:53 PM #1
Member
- Join Date
- Sep 2010
- Posts
- 1
- Rep Power
- 0
Bad & Good Performance with Struts Validator
Hi everybody!
I have been using DynaValidatorForm to create every form in my application and I am actually validating all the forms using struts validations. at the head of every jsp I just add the following line:
So This way Struts validation create all the fuctions definen on the validations-rules.xml for every form mapped on the file validations.XMLXML Code:<head> <html:javascript formName="FormName"/> </head>
Everything is working just fine with this, It save me a lot of time and It works just ok :)
************************************
BUT ............... :eek:
************************************
Now Im having some issues, becuase It is taking a lot of time to load every JSP becuase Struts validator is inserting a lot of java functions to validate my form, wich is Ok because I want to validate my form.
But what I just noticed was that, for every form It is duplicating the same code or some of the same functions.
So for example if a field needs to be in a range between 2 numbers, It creates a function to validate this part, and It creates that for every form that need the same rule.
I was wondering if there is a way that all the common fuctions can be generated in just one place (in a jsp or js ) so I can just importe that file on every JSP
I think this will solve a lot of the time needed to load every form.
Please if you can help me I will appreciate that.
THANKS ALL!
have a great coding time :)
Similar Threads
-
Struts validator framework
By Satheeshhere in forum Web FrameworksReplies: 9Last Post: 08-19-2008, 04:44 AM -
Struts Validator validwhen
By getsridhara in forum Web FrameworksReplies: 0Last Post: 05-30-2008, 10:58 AM -
Struts Validator
By anoop.retnakumar in forum Web FrameworksReplies: 1Last Post: 03-05-2008, 06:54 AM -
Struts Validator Framework
By Albert in forum Web FrameworksReplies: 2Last Post: 02-15-2008, 11:01 AM -
Struts Validator - JScript version of Validator ´validwhen´
By Felissa in forum Web FrameworksReplies: 1Last Post: 07-06-2007, 04:39 PM


LinkBack URL
About LinkBacks

Bookmarks