Home  >  Article  >  Web Front-end  >  Jsp type mismatch occurs_html/css_WEB-ITnose

Jsp type mismatch occurs_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 12:12:181718browse

During web development, an error like this occurred. I have changed the database and the beans.
The method setMa_oicq(int) in the type Masterbean is not applicable for the arguments (String)
The above error still occurs.
I’m not sure~~

Doesn’t the above sentence mean that I need to change setMa_oicq(int) in Mastebean?
~
It still doesn’t work after changing it~~~


Reply to the discussion (solution)

The poster posted the wrong version, go to the java version Ask

The parameter you passed in is of type int but the method requires a string type, so the type is wrong

This should be somewhere, when assigning a value to a Javabean, the type No match. It is recommended to check the code used to assign values ​​to Javabeans

You are wrong, you deserve so many medals. . . The original poster posted the wrong version, go to the java version and ask

Then I'll look for it. The parameter you passed in is of type int but the method requires a string type, so the type is wrong

Well, let me take a look again. Thank you. This should be because somewhere, when assigning values ​​to Javabeans, the types do not match. It is recommended to check the code used to assign values ​​to Javabeans

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn