struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 19724] New: - The typing error in bean:message key produce empty output and no warnning
Date Wed, 07 May 2003 12:51:35 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=19724>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=19724

The typing error in bean:message key produce empty output and no warnning

           Summary: The typing error in bean:message key produce empty
                    output and no warnning
           Product: Struts
           Version: 1.1 RC1
          Platform: Macintosh
               URL: http://www.pse.cz
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Tiles framework
        AssignedTo: struts-dev@jakarta.apache.org
        ReportedBy: jung@pse.cz


My config is Tomcat 4.1.24, JDK 1.4.1 but with 1.3.1 i can the bug produce too.
I use 1.1 RC1 and the most recent build with the same result.

Important i use tiles, validation, structs 1.1 features (exceptions)
I use JSTL too.
I use czech cp windows-1250 and locale

PROBLEM: When I have typing error in the <bean:message key=".."/>, I get an 
empty body of tile and i can see only the chroma layout (envelope)

f.e:  Wrong typed key, the key ciselniky.somethingWrong NOT EXIST in any 
resources
 
  <bean:message key = "ciselniky.somethingWrong"/>

AND WORKING FULL VERSION of TILE

<%@ page contentType="text/html; charset=windows-1250" %>
<%@ page errorPage="../pages/error.jsp" %>
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-logic" prefix="logic" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html" %>

<html:form  action="/read.do" method="POST">
  <bean:message key = "ciselniky.title"/>
  <html:select property = "ciselnik.idCiselnik"  >
    <html:optionsCollection label="nazev" value="idCiselnik" property="index" />
  </html:select><BR>

  <html:submit styleId = "submitButton" property = "submit">
     <bean:message key = "submit"/>
  </html:submit>
  &nbsp&nbsp&nbsp
  <html:cancel>
    <bean:message key = "back"/>
  </html:cancel>
</html:form>
<html:errors/>

I SUPPOSE THERE ARE SOME EXCEPTION CATCHED BY TILES AND NOT REPORTED.

To find what going on leads to comment the parts of tile, and find the wrong 
block. Some error report would be extremly usefull. 
Petr Jung

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


Mime
View raw message