https://bz.apache.org/bugzilla/show_bug.cgi?id=60431

            Bug ID: 60431
           Summary: EL function varargs with array
           Product: Tomcat 6
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Jasper
          Assignee: dev@tomcat.apache.org
          Reporter: apa...@ben.eflow.org
  Target Milestone: default

The varargs implementation of the ASTFunction treats arrays in the final
parameter as a single parameter. 

Example jsp:

<%@ taglib uri="/myfunctions" prefix="myfn"%>
<c:set var="myarray" value="${myfn:split( myvar, '@' )}")
<c:set var="pageTitle" value="${myfn:getTitle( myobj, myarray )}"/>

myfunctions.java has:
public static String getTitle(String key, String... args) { }

The array passed in jsp should be treated as the whole argument to getTitle. 
The current implementation converts the passed array to be the first element in
a new array and passes that to getTitle.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to