1
In a program I have to do I arose this difficulty
Familia.setSalariodoPai(request.getParameter("salariodoPai"));
but this request is returning a String and I would need Integer
.Bs that stretch is on a Die doGet
1
In a program I have to do I arose this difficulty
Familia.setSalariodoPai(request.getParameter("salariodoPai"));
but this request is returning a String and I would need Integer
.Bs that stretch is on a Die doGet
3
You need to convert to Integer.
Familia.setSalariodoPai(Integer.parseInt(request.getParameter("salariodoPai")));
There are several topics explaining this, search before posting :)
Browser other questions tagged java java-ee servlet request
You are not signed in. Login or sign up in order to post.
my question seems more complete than the commented
– Luiz Claudio
But the answer you need is there. You tested?
– Pablo Almeida