What is the difference between getAttribute() and getParameter() methods within HttpServletRequest class?
getAttribute()
getParameter()
HttpServletRequest
Another case when you should use .getParameter() is when forwarding with parameters in jsp:
.getParameter()
In destination.jsp, you can access userName like this:
destination.jsp
userName
request.getParameter("userName")