I am building a web app and i need to check whether a session exists. I want to check that in a jsp page. I have created my session in an action class(Struts 2 framework). I don't want to use script-lets. Is there any way to do this using EL or anything else?
This is what i want to implement in the jsp without using script-let
<% HttpSession hs=request.getSession(false);
if(hs.isNew())
{
}
%>
Is this the right way to check a session or should i do the same in a seperate action class and then map the success to the jsp!??