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

Please follow and like us:
error








Copyright © 2019 CodesJava DMCA.com Protection Status