Question - Can we fetch the attributes related to a servlet on a different servlet?
Answer -
The attributes of another servlet that we are looking for can be accessed by using its name. The syntax is described as follows:
- Context.setAttribute (“name”,” value”)
- Context.getAttribute (“name”)