This is code in servlet:
HttpSession session = request.getSession(true);
session.setAttribute("user", user);
I am forwarding request to JSP, where i want to check if there is session scoped user parameter attached.
<c:if test="${??? - check if user is attached to request}">
/ /message
</c:if>
I think you mean checking the session scope right?
you can do that by using the following code
Setting session in
Servlet
Access session value by
EL
inJSP
Checking the session in
JSP
usingJSTL