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}

read how store java objects in httpsession?


Comments

Popular posts from this blog

matlab - "Contour not rendered for non-finite ZData" -

delphi - Indy UDP Read Contents of Adata -

javascript - Any ideas when Firefox is likely to implement lengthAdjust and textLength? -