如果是用request.getParameter来获取参数,都可以用String来接收 但是如果用getAttribute()来获取参数,则接收参数必须和setAttribute()中设置的参数类型相同。