In this article we will learn how to get the HTTP Request Headers via HttpServletRequest, The HTTP request which a client browser sends to the server includes HTTP request headers with some important information, such as cookies and the referer. You can access these headers from the HttpServletRequest object passed to a doxxx method. [Read more…]
ServletContext is one of the predefined interface available in javax.servlet.* package, The object of the ServletContext is created by the web container at the time of deploying the application(which will be available one per application) . This object is used to get configuration information from web.xml file. [Read more…]
Along with accessing the body of the custom tag, you can also have the attributes which can be added to the custom tag. In order to define a attribute in the custom tag we need to have the below two entries.
- we need to define a property in the Tag Handler Class and have a setter method for it.
- Define attribute tag inside the TLD File.