GTU WTAD Practical 13 : Write a Servlet to display all the attributes available from request and context.

GTU WTAD Practical 13 :  Write a Servlet to display all the attributes available from request and context.

GTU WTAD Practical 13

As I have explained earlier with other servlet program that Servlet is used to generate html pages as per the requirement of the user, Here I am going to explain how to use request object and contact object of servlet. Here i have displayed many parameters which is very useful for programmers to track the request of user and take some actions. Serverlet parameters Like IP Address, Port, Server Name etc.

File Name : index.jsp

File Location : Tomcat_Apache\webapps\gtu13\

 

File Name : web.xml

File Location : Tomcat_Apache\webapps\gtu13\WEB-INF

 

File Name : AvailableAttributesContext.java

File Location : Tomcat_Apache\webapps\gtu13\WEB-INF\classes

 Output

GTU WTAD Practical 13

Adarsh Patel

My Self Adarsh Suryakant Patel. Currently I am working as Assistant Professor at Parul Instiute of Engineering and Technology, MCA Department, Limda, Vadodara. Major Responsibility : * Lectures * Organizing Training and Expert Sessions for * Placement and Recruitment * Faculty Representative