How to set session variable in jsp -
edit file web.xml session timeout value
<session-config> <session-timeout> 30 </session-timeout> </session-config>
to set variable in session
, need not edit web.xml
httpsession session = request.getsession(); string al="am session variable" session.setattribute("al", al);
and access , can ${sessionscope.al}
Comments
Post a Comment