To set multiple values for the same header, use the __________ method in HttpServletResponse.
- addHeader()
- appendHeader()
- setHeader()
- setMultipleValuesHeader()
The addHeader() method in HttpServletResponse is used to add multiple values for the same header, allowing for flexibility in handling headers with multiple values.
Loading...
Related Quiz
- The __________ method is essential for managing user logouts in secure web applications.
- How does connection pooling improve the performance of database-driven applications?
- A servlet needs to load database settings at startup. How should these settings be passed to the servlet?
- In database optimization, _________ refers to the process of storing frequently accessed data in a temporary storage area.
- How does the servlet container handle thread safety in the case of servlets?