tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject [Bug 56147] New: Problem Invoking overloaded methods using EL
Date Mon, 17 Feb 2014 21:35:54 GMT

            Bug ID: 56147
           Summary: Problem Invoking overloaded methods using EL
           Product: Tomcat 7
           Version: 7.0.42
          Hardware: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Servlet & JSP API

Using apache-tomcat-7.0.42 on Windows 7 64bit

Using the below code in JSP :

<c:forEach var="item" items="${listItems }">
    <p>${item.someMethod("h") }</p>

results in:

javax.el.ELException: Cannot convert h of type class java.lang.String to class

I have the below methods :
       public void someMethod(String x) {

       public void someMethod(Class clz) {
              System.out.println("Class called");

You are receiving this mail because:
You are the assignee for the bug.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message