You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2004/02/07 18:00:42 UTC

DO NOT REPLY [Bug 26760] New: - issue.

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=26760>.
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=26760

<bean:define /> issue.

           Summary: <bean:define /> issue.
           Product: Tomcat 5
           Version: 5.0.18
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Jasper
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: dnavitaniuk@yahoo.com


Please look at this code:
-----------
<%@ taglib uri='/WEB-INF/struts-bean.tld' prefix='bean' %>

<%if (1 == 1) {%>
  <bean:define id="tmp_caption" value="tab.caption" toScope="request" />
<%} else {%>
  <bean:define id="tmp_caption" value="val.pluralDesc" toScope="request" />
<%}%>
----------
This code is not compilable by current jasper.
I know that bean:define has the following issue:

USAGE NOTE - There is a restriction in the JSP 1.1 Specification that disallows
using the same value for an id  attribute more than once in a single JSP page.
Therefore, you will not be able to use <bean:define> for the same bean name more
than once in a single page.

But:
This one is compiled:
--------
<%@ taglib uri='/WEB-INF/struts-bean.tld' prefix='bean' %>

  <bean:define id="tmp_caption" value="tab.caption" toScope="request" />
  <bean:define id="tmp_caption" value="val.pluralDesc" toScope="request" />
--------
can you please provide a little comment on what kind of bug this is? a jasper or
struts?

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