The method Setitems (String) in the type Fortokenstag isn't applicable for the arguments (Object)

Source: Internet
Author: User
Tags maven central

1. Questions

See this error that seems to be the JSP page is wrong, c:fortokens tag with a mistake??




An error occurred at line: 444 in the jsp file: /WEB-INF/pages/countOrder/viewCountOrderDetails.jsp
The method setItems(String) in the type ForTokensTag is not applicable for the arguments (Object)
441:  </tr>
442:  </thead>
443:   <tbody>
444:   <c:forTokens items="${carBizNumprizeBase.driverAwardCondition}" delims="-"
445:   var="driverAwardCondition" varStatus="status">

But there is no problem with the test and pre-production environment, is there a problem with the environment?

2. Workaround

On the Internet to see that there is said Jstl.jar conflict, in the project Lib does have Jstl1.2.jar but Tomcat Lib library and Jdk Lib library did not change jar;

Also see said to remove Standard.jar, remove the package and click on the original problem JSP, the page came out, but the menu next to the point can not be;

Standard.jar and Jstl.jar do not conflict (Baidu said jstl1.2 above not standard)


Finally, the project is ready for deployment in the new server (standard1.1.2 and Jstl1.2.jar).

Looking back, the MAVEN central warehouse was not standard1.2.3 and replaced with jstl1.1.

It may be that the environment is somewhat problematic, such as disharmony with other places, but the use of jars that are not in accordance with the standard may also cause the use of these problems


The method Setitems (String) in the type Fortokenstag are not applicable for the arguments (Object)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.