Hi, I join to this mail the jsp file that cause the problem and the validator.xml.
Continuing the test, I use a validator.xml with only the default (no country and language tag). If I use my Opera Browser with locale : language =fr, i have the problem. If I duplicate the default formset with the language fr, it's work. I have also the problem with my IE6 with locale : language=en. Rgs Fabrice -----Message d'origine----- De : Robert Leland [mailto:rleland@;apache.org] Envoyé : jeudi 7 novembre 2002 18:04 À : Struts Users Mailing List Objet : Re: Validate and nightly build problem Fabrice BLANQUART wrote: >Hi, > >I have a strange behaviour with the validator using the nightly build (20021107). >I use the <html:javascript> tag in order to make client validation. It work well with >the 1.1B2 but when >I use the nightly build it doesn't generate the validateXXX javascript function. >Debugging with source of struts and commons-validator it seems that it is a problem >with locale( I use FR_fr in my browser). >In my validator.xml I don't specify a locale in formset,is it the problem ? > > This does sound like a bug.... Does the struts-validator example work correctly ? Also could you post the JSP code from the <html:javascript> tag ? >Any help ? > >Fabrice BLANQUART > -Rob > > *---------------------------------------------------------------* * Cet e-mail et toutes les pièces jointes sont destinés aux * * seules personnes auxquelles ils sont spécifiquement adressés * * et n'engagent que le signataire de ces documents et non la * * structure dont il dépend. * * Leur existence et leur contenu ont un caractère confidentiel. * * Toute utilisation ou diffusion non autorisée est interdite. * * Si vous avez reçu cet e-mail ou si vous détenez sans en être * * le destinataire, nous vous demandons de bien vouloir nous en * * informer immédiatement. * * Cette note assure que mimesweeper a vérifié que ce message * * ne comprenait aucun virus connu à ce jour, néanmoins tout * * message électronique est susceptible d'altération. * * Nous déclinons toute responsabilité au titre de ce message * * s'il a étéaltéré, déformé ou falsifié. * *---------------------------------------------------------------*
login.jsp
Description: Binary data
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE form-validation PUBLIC "-//Apache Software Foundation//DTD Commons Validator Rules Configuration 1.0//EN" "http://jakarta.apache.org/commons/dtds/validator_1_0.dtd"> <form-validation> <global/> <formset> <form name="loginFormBean"> <field property="champLogin" depends="required"> <arg0 key="login.loginFormBean.champLogin.prompt"/> </field> <field property="champPassword" depends="required"> <arg0 key="login.loginFormBean.champPassword.prompt"/> </field> </form> </formset> <formset language="fr"> <form name="loginFormBean"> <field property="champLogin" depends="required"> <arg0 key="login.loginFormBean.champLogin.prompt"/> </field> <field property="champPassword" depends="required"> <arg0 key="login.loginFormBean.champPassword.prompt"/> </field> </form> </formset> </form-validation>
-- To unsubscribe, e-mail: <mailto:struts-user-unsubscribe@;jakarta.apache.org> For additional commands, e-mail: <mailto:struts-user-help@;jakarta.apache.org>