Write a Servlet to display all the attributes available from headers (request and context).
Hint: Make use of getHeader() to get all the related and display all the attributes available in the getHeader() function.
All the attribute:
• Accept
• Accept-Charset
• Accept-Encoding
• Accept-Language
• Authorization
• Connection
• Content-Length
• Host
• Referer
• User-Agent
Step 1: Create GetHeader.Java using Packages Concepts for servlet which can handle all header Attributes.
Step 2: Create WEB.XML file for Mapping Servlet file.
No comments:
Post a Comment