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 2003/06/24 23:59:34 UTC
DO NOT REPLY [Bug 21067] New: -
tag file handler generation with array attributes
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=21067>.
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=21067
tag file handler generation with array attributes
Summary: tag file handler generation with array attributes
Product: Tomcat 5
Version: 5.0.3
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: Normal
Priority: Other
Component: Jasper2
AssignedTo: tomcat-dev@jakarta.apache.org
ReportedBy: crofton-2003@bigfoot.com
I have written a tag file with a attribute of string array. just like this:
<%@ attribute name="columns" type="java.lang.String[]"%>
I wrote a JSP file to invoke this tag file. the variable "columns" has been
set.
1. <tags:test columns="<%= columns %>"/>
When I pass attribute in the JSP file using scriptlet, it's ok.
2. <tags:test columns="{columns}"/>
But when I pass attribute using EL, something will be wrong, The following is
the error statement reported by japser compiler when compiling the JSP file:
setColumns(([Ljava.lang.String;)
org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${columns}",
[Ljava.lang.String;.class, (PageContext)pageContext, null, false));
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org