I am passing a variable from one jsp page to other.
process.jsp?value=2.45
I am receiving it using request.getParameter("value");
But this is a value that is float value. I need to store it in a
float variable.
I defined a float variable
float v_value;
And then
v_value = request.getParameter("value");
It did not work. It gave me an error. I tried this way too:
String s_value;
float v_value;
s_value = request.getParameter("value");
v_value = s_value;
But did not work.
Please advise me.