Question: what is the difference between parameter and attribute in servlet?
Answer: Attributes are objects that are attached to various scopes and can be modified, retrieved or removed. ... Important differences between attributes and parameters in JSP/servlets are: Parameters are read only, attributes are read/write objects. Parameters are String objects, attributes can be objects of any type.