jmitchell    2002/11/03 22:27:59

  Modified:    web/example logon.jsp
               web/example/WEB-INF struts-config.xml validation.xml
  Log:
  Force Validator to use alternate resource bundle for password label
  
  Revision  Changes    Path
  1.22      +1 -1      jakarta-struts/web/example/logon.jsp
  
  Index: logon.jsp
  ===================================================================
  RCS file: /home/cvs/jakarta-struts/web/example/logon.jsp,v
  retrieving revision 1.21
  retrieving revision 1.22
  diff -u -r1.21 -r1.22
  --- logon.jsp 18 Jul 2002 11:20:57 -0000      1.21
  +++ logon.jsp 4 Nov 2002 06:27:59 -0000       1.22
  @@ -26,7 +26,7 @@
   
     <tr>
       <th align="right">
  -      <bean:message key="prompt.password"/>:
  +      <bean:message key="prompt.password" bundle="alternate"/>:
       </th>
       <td align="left">
         <html:password property="password" size="16" maxlength="18"
  
  
  
  1.27      +5 -0      jakarta-struts/web/example/WEB-INF/struts-config.xml
  
  Index: struts-config.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-struts/web/example/WEB-INF/struts-config.xml,v
  retrieving revision 1.26
  retrieving revision 1.27
  diff -u -r1.26 -r1.27
  --- struts-config.xml 18 Oct 2002 15:27:43 -0000      1.26
  +++ struts-config.xml 4 Nov 2002 06:27:59 -0000       1.27
  @@ -161,6 +161,11 @@
     <message-resources
       parameter="org.apache.struts.webapp.example.ApplicationResources"/>
   
  +  <message-resources
  +    parameter="org.apache.struts.webapp.example.AlternateApplicationResources"
  +    key="alternate">
  +  </message-resources>
  +
   
     <!-- ========== Plug Ins Configuration ================================== -->
   
  
  
  
  1.7       +3 -2      jakarta-struts/web/example/WEB-INF/validation.xml
  
  Index: validation.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-struts/web/example/WEB-INF/validation.xml,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- validation.xml    26 Oct 2002 00:25:24 -0000      1.6
  +++ validation.xml    4 Nov 2002 06:27:59 -0000       1.7
  @@ -36,7 +36,8 @@
               </field>
   
               <field property="password"
  -                    depends="minlength,maxlength">
  +                    depends="minlength,maxlength"
  +                    bundle="alternate">
                   <arg0   key="prompt.password"/>
                   <arg1   key="${var:minlength}" name="minlength"
                      resource="false"/>
  
  
  

--
To unsubscribe, e-mail:   <mailto:struts-dev-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-dev-help@;jakarta.apache.org>

Reply via email to