You are viewing a plain text version of this content. The canonical link for it is here.
Posted to taglibs-dev@jakarta.apache.org by lu...@apache.org on 2002/04/17 02:38:01 UTC

cvs commit: jakarta-taglibs/standard/examples/web/format MissingResourceBundle.jsp ParametricReplacement.jsp

luehe       02/04/16 17:38:01

  Modified:    standard/examples/web/format MissingResourceBundle.jsp
                        ParametricReplacement.jsp
  Log:
  Updated remaining FMT examples to work correctly
  
  Revision  Changes    Path
  1.4       +2 -2      jakarta-taglibs/standard/examples/web/format/MissingResourceBundle.jsp
  
  Index: MissingResourceBundle.jsp
  ===================================================================
  RCS file: /home/cvs/jakarta-taglibs/standard/examples/web/format/MissingResourceBundle.jsp,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- MissingResourceBundle.jsp	16 Apr 2002 15:49:50 -0000	1.3
  +++ MissingResourceBundle.jsp	17 Apr 2002 00:38:01 -0000	1.4
  @@ -9,12 +9,12 @@
   
   <ul>
    <li> Implicit collaboration with &lt;bundle&gt; (via ancestry chain):<br>
  -  <fmt:bundle basename="org.apache.taglibs.standard.examples.i18n.Resources">
  +  <fmt:bundle basename="org.apache.taglibs.standard.examples.i18n.MissingResources">
      <fmt:message key="greetingMorning"/>
     </fmt:bundle>
   
    <li> Explicit collaboration with &lt;bundle&gt; (via <tt>var</tt> attribute):<br>
  -  <fmt:setBundle basename="org.apache.taglibs.standard.examples.i18n.Resources" var="enBundle"/>
  +  <fmt:setBundle basename="org.apache.taglibs.standard.examples.i18n.MissingResources" var="enBundle"/>
     <fmt:message key="greetingEvening" bundle="${enBundle}"/>
   </ul>
   
  
  
  
  1.8       +4 -2      jakarta-taglibs/standard/examples/web/format/ParametricReplacement.jsp
  
  Index: ParametricReplacement.jsp
  ===================================================================
  RCS file: /home/cvs/jakarta-taglibs/standard/examples/web/format/ParametricReplacement.jsp,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- ParametricReplacement.jsp	16 Apr 2002 15:49:50 -0000	1.7
  +++ ParametricReplacement.jsp	17 Apr 2002 00:38:01 -0000	1.8
  @@ -8,9 +8,11 @@
   <body bgcolor="#FFFFFF">
   <h3>Parametric Replacement</h3>
   
  +<jsp:useBean id="now" class="java.util.Date" />
  +
   <fmt:setLocale value="de"/>
   <fmt:setBundle basename="org.apache.taglibs.standard.examples.i18n.Resources" var="deBundle"/>
  -<fmt:formatDate type="both" var="currentDateString"/>
  +<fmt:formatDate value="${now}" type="both" var="currentDateString"/>
   <fmt:parseDate value="${currentDateString}" type="both" var="currentDate"/>
   <ul>
    <li> Using single &lt;param&gt; with 'value' evaluating to String:<br>
  @@ -26,7 +28,7 @@
    <li> Using single &lt;param&gt; with body:<br>
     <fmt:message key="currentTime" bundle="${deBundle}">
      <fmt:param>
  -    <fmt:formatDate type="both"/>
  +    <fmt:formatDate value="${now}" type="both"/>
      </fmt:param>
     </fmt:message>
   
  
  
  

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>