You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by rl...@apache.org on 2004/04/21 07:21:08 UTC

cvs commit: jakarta-struts/src/share/org/apache/struts/taglib/html FormTag.java LocalStrings.properties LocalStrings_ja.properties

rleland     2004/04/20 22:21:08

  Modified:    src/share/org/apache/struts/taglib/html FormTag.java
                        LocalStrings.properties LocalStrings_ja.properties
  Log:
  Bug 28508 Report and Patch submitted by Felipe Leme
  Improve error message by reporting action URL that
  form bean cannot be found for.
  
  Revision  Changes    Path
  1.59      +5 -5      jakarta-struts/src/share/org/apache/struts/taglib/html/FormTag.java
  
  Index: FormTag.java
  ===================================================================
  RCS file: /home/cvs/jakarta-struts/src/share/org/apache/struts/taglib/html/FormTag.java,v
  retrieving revision 1.58
  retrieving revision 1.59
  diff -u -r1.58 -r1.59
  --- FormTag.java	14 Mar 2004 06:23:46 -0000	1.58
  +++ FormTag.java	21 Apr 2004 05:21:08 -0000	1.59
  @@ -689,7 +689,7 @@
           FormBeanConfig formBeanConfig = moduleConfig.findFormBeanConfig(mapping.getName());
           if (formBeanConfig == null) {
               JspException e =
  -                new JspException(messages.getMessage("formTag.formBean", mapping.getName()));
  +                new JspException(messages.getMessage("formTag.formBean", mapping.getName(), action));
               pageContext.setAttribute(Globals.EXCEPTION_KEY, e, PageContext.REQUEST_SCOPE);
               throw e;
           }
  
  
  
  1.16      +1 -1      jakarta-struts/src/share/org/apache/struts/taglib/html/LocalStrings.properties
  
  Index: LocalStrings.properties
  ===================================================================
  RCS file: /home/cvs/jakarta-struts/src/share/org/apache/struts/taglib/html/LocalStrings.properties,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- LocalStrings.properties	9 Sep 2003 04:07:21 -0000	1.15
  +++ LocalStrings.properties	21 Apr 2004 05:21:08 -0000	1.16
  @@ -3,7 +3,7 @@
   enumerateTag.enumeration=Cannot create enumeration for {0}
   formTag.collections=Cannot find ActionMappings or ActionFormBeans collection
   formTag.create=Exception creating bean of class {0}: {1}
  -formTag.formBean=Cannot retrieve definition for form bean {0}
  +formTag.formBean=Cannot retrieve definition for form bean {0} on action {1}
   formTag.mapping=Cannot retrieve mapping for action {0}
   formTag.nameType=Must specify type attribute if name is specified
   forwardTag.forward=Error forwarding to page {0}: {1}
  
  
  
  1.4       +1 -1      jakarta-struts/src/share/org/apache/struts/taglib/html/LocalStrings_ja.properties
  
  Index: LocalStrings_ja.properties
  ===================================================================
  RCS file: /home/cvs/jakarta-struts/src/share/org/apache/struts/taglib/html/LocalStrings_ja.properties,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- LocalStrings_ja.properties	27 Feb 2004 00:33:24 -0000	1.3
  +++ LocalStrings_ja.properties	21 Apr 2004 05:21:08 -0000	1.4
  @@ -3,7 +3,7 @@
   enumerateTag.enumeration={0} \u306b\u5bfe\u5fdc\u3059\u308benumeration\u3092\u751f\u6210\u3067\u304d\u307e\u305b\u3093
   formTag.collections=ActionMappings\u307e\u305f\u306fActionFormBeans\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u304c\u898b\u3064\u304b\u308a\u307e\u305b\u3093
   formTag.create=\u30af\u30e9\u30b9 {0} \u306ebean\u3092\u751f\u6210\u3059\u308b\u969b\u306e\u4f8b\u5916: {1}
  -formTag.formBean=\u30d5\u30a9\u30fc\u30e0bean {0} \u306b\u5bfe\u5fdc\u3059\u308b\u5b9a\u7fa9\u3092\u53d6\u5f97\u3067\u304d\u307e\u305b\u3093
  +formTag.formBean=\u30d5\u30a9\u30fc\u30e0bean {0} on action {1} \u306b\u5bfe\u5fdc\u3059\u308b\u5b9a\u7fa9\u3092\u53d6\u5f97\u3067\u304d\u307e\u305b\u3093
   formTag.mapping=\u30a2\u30af\u30b7\u30e7\u30f3 {0} \u306b\u5bfe\u5fdc\u3059\u308b\u30de\u30c3\u30d4\u30f3\u30b0\u3092\u53d6\u5f97\u3067\u304d\u307e\u305b\u3093
   formTag.nameType=name\u304c\u6307\u5b9a\u3055\u308c\u3066\u3044\u308b\u5834\u5408\u306b\u306ftype\u5c5e\u6027\u3092\u6307\u5b9a\u3057\u306a\u3051\u308c\u3070\u306a\u308a\u307e\u305b\u3093
   forwardTag.forward=\u30da\u30fc\u30b8 {0} \u306b\u30d5\u30a9\u30ef\u30fc\u30c9\u3059\u308b\u969b\u306e\u30a8\u30e9\u30fc: {1}
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org