I need help.
I transfer parameter from jsp to servlet and the opposite.
first I transfet the parameter from servlet to jsp by the code :request.setAttribute("KEY",i2);
and it works.
now I want new servlet to read the parameter from the jsp that I send the parameter from the former servlet .I try two ways
1-
String pss=(String) request.getParameter("i2");
2-String pss=(String) request.getParameter("KEY");
but the parameter did not transfer to the new servlet
What Is the problem?
I transfer parameter from jsp to servlet and the opposite.
first I transfet the parameter from servlet to jsp by the code :request.setAttribute("KEY",i2);
and it works.
now I want new servlet to read the parameter from the jsp that I send the parameter from the former servlet .I try two ways
1-
String pss=(String) request.getParameter("i2");
2-String pss=(String) request.getParameter("KEY");
but the parameter did not transfer to the new servlet
What Is the problem?