Javax.el.ELException cannot convert 0e27d734-c316-4e13-8770-161092a2b3c4 of type class JAVA.LANG.STR

Source: Internet
Author: User

Project run, there is this problem, very depressed, half a day can not find the wrong source, and then Lenovo a bit before the resolution of a bug and this may be similar, try a bit, sure enough is the problem

My JSP page has such a piece of code:

<pre name= "code" class= "java" ><c:if test= "${topicmodel.userid==0}" >   <a class= "js-673810 w-icn2 W-icn2-3 a-followicon icontag1889734 ${topicmodel.userid} "href=" javascript:void (0) "onclick=" Dofocus (This) "
    Title= "Follow ${topicmodel.nickname} ${topicmodel.userid}" > Follow </a></c:if>

We note that
 
<c:if test= "${topicmodel.userid==0}" >
If there is a case of converting a string to Lang, according to my guess, I will change the code to the following

<c:if test= "${topicmodel.userid== ' 0 '}" >
Then there is no problem, that is, depressed half-day is based on the error message can not be quickly accurate positioning to the wrong place


Javax.el.ELException cannot convert 0e27d734-c316-4e13-8770-161092a2b3c4 of type class JAVA.LANG.STR

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.