1 Reply Latest reply on May 10, 2010 9:46 AM by anithakothandapani

    org.apache.jasper.JasperException: Unable to compile class  for JSP:The method setItems(String)  in the type ForTokensTag is not applicable for the arguments (Object)

    anithakothandapani

      Hi

       

      I am using jboss 5.1.0 GA with jdk 1.6.0_11, I am getting the following exception .

       

       

       

       

      org.apache.jasper.JasperException: Unable to compile class  for JSP:   An error occurred at line: 77 in the jsp file:  /WEB-INF/jsp/mySearch.jsp

       

      The method setItems(String)  in the type ForTokensTag is not applicable for the arguments (Object)

      74:

      75:                         <c:choose>

      76:                             <c:when test="${not empty  parent.requestedState}">

      77:                                   <c:forTokens items="${parent.requestedState}" varStatus="restat"  delims="," var="reqstate" >

      78:

      79:                                     <c:if  test="${restat.first}">

      80:                                          <c:set var="reqval" value="${reqstate}" scope="request"/>

       

       

       

      Stacktrace:        org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:92)        org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)        org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:439)

       

       

      Please help me to resolve this issue..