I started learning JSP recently.
After learning the different JSP elements and the pageContext implicit object, I have one confusion. The pageContext object has the removeAttribute() method to remove attributes.
Can this removed attributes be set using JSP directives or only JSP actions?
Also, what is the default scope of JSP directive attributes?
Thanks in advance.
Forget about JSP actions. Just as scriptlets, they should not be usd anymore. Learn how JSP tags work, and learn the JSTL (JSP Standard Tag Library). A page-scope attribute is typically set using the JSTL tags:
or
for example.