Niall (Sorry to change the subject Richard) I was looking for where the alert box is generated in the struts source and could find that bit. I found where the JS is generated and such like.
Where should I be looking (other than the javascript tag as i can see an alert box in there)? Mark On Mon, 6 Dec 2004 02:45:09 -0000, Niall Pemberton <[EMAIL PROTECTED]> wrote: > Richard, > > There is currently no solution to either of your problems. > > 1/ The issue of four letter TLDs has already been reported as a bug. > Hopefully this will be fixed in the next version (probably version 1.2). The > existing Bug report that has been filed for this is here: > > http://issues.apache.org/bugzilla/show_bug.cgi?id=31644 > > 2/ This is a feature of how Javascript validator is currently designed. It > does validation by type - so all "required" validations first, then the next > type and so on. I have recently submitted a proposal to move the generation > of the dynamic javascript out of Struts and into Commons Validator. This > extension re-designs how the javascript is generated and will achieve the > results you are looking for. At the moment though it is still only a > proposal and hasn't yet been incorporated into Validator. If your interested > you can download and try out an Example Webapp I built, which demonstrates > its capabilities from here: > > http://www.niallp.pwp.blueyonder.co.uk/validatorjs.html > > The bugzilla enhancement ticket for the proposal is here: > > http://issues.apache.org/bugzilla/show_bug.cgi?id=32343 > > Sorry there isn't currently a solution for your issues. > > Niall > > > > ----- Original Message ----- > From: "Richard Tuquet Laburre" <[EMAIL PROTECTED]> > To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > Sent: Saturday, December 04, 2004 9:22 AM > Subject: javascript validation of e-mail and 2 fields to be equals > > > Hello and excuse me for my bad english (i am french) > > > > 1/ On a form, i use the javascript validation for an input field ; but > > when the tld is .info, the validations fails > > How can correct this ? > > > > 2/ i want to verify (validate with javascript) that 2 fields (password) > > have the same value ; i find a custom-validation.xml and actions > > (mrabble.com) but the error message doesnt' appear in the same js dialog > > box as the required messages ; > > an example : > > i click submit on a form which contains empty fields which are required > > (and the 2 password values have different different values) ; in this > > case, a javascript dialog box is displayed and contains errors messages > > about required fields but not about difference betwen the password values > > i fill the required fields ; i submit ; i see the js dialog box which > > contains message error about the validation of the 2 password fields > > (password is not equal to passsword2) > > Is this possible to get the javascript message error in the same dialog > > box ? > > I use struts 1.2.4 ; may be the validation rule which verify the same > > values of 2 fields has been added to a further (greater) version ? > > > > thanks for read this and answer if possible > > > > Richard > > > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]