CodesJava

Easy learning with example program codes

How to get attribute from session object in servlet?


HttpSession interface’s getAttribute() method is used to get attribute from session object.
Syntax: public Object getAttribute(String name);
Example: String value = (String) session.getAttribute(“attName”);
See more at: HttpSession in servlet.

Related topics



Copyright © 2018 CodesJava DMCA.com Protection Status SiteMap