i have an action which contains a variable that contains value from database. now i want to assign the action variable value to a jsp page local variable initialized in scriplet.
i want to how value of 'a' can be assigned to 'b'
posted 6 years ago
String setValue = Integer.toString(a);
set the converted value into request.setAttribute("dummyName",setValue);
In jsp page you can get the value by calling the request.getAttribute("dummyName");
I'm not sure whether integer can be used to set in request.setAttribute so that i converted int into String.