Lyid, according to my years of Chinese knowledge, should mean message ID, that is, there is a text box on your page. His name is Lyid.
Then, if you use request.getParameter("lyid "), you will get the value you entered in this text box first. However, the value obtained is a string. How to convert it into an integer? Just use the parseInt () method of the int wrapper class Integer to convert this value into an integer.
You can try, int b=lyid.
There is absolutely nothing wrong.