jsp里input type是range(滑条,想要在servlet里获得用户滑动的值怎么做?

input里设置了id和name,在后端getParameter时老是null,其它类型的输入参数就能通过name 获得到,不知道是为什么

你在jsp中,调用接口前打印一下。