- 
                    
- 
                    
- 
                    In servlets, what is the use of sendredirect(),include( ), forward() ?and in applecation level at what scnario they will be usedI know only that send redircet is of client side. and remaing are severside functions 
- 
                    
- 
                    
- 
                    
- 
                    
- 
                    
- 
                    
- 
                    
- 
                    Controller FunctionsDescribe the functions of Controller? 
- 
                    If you want a servlet to take the same action for both GET and POST request, what should you do?Simply have doGet call doPost, or vice versa. 
- 
                    Which code line must be set before any of the lines that use the PrintWriter?setContentType() method must be set before transmitting the actual document. 
- 
                    How HTTP Servlet handles client requests?An HTTP Servlet handles client requests through its service method. The service method supports standard HTTP client requests by dispatching each request to a method designed to handle that request. 
- 
                    
- 
                    
- 
                    
- 
                    
- 
                    
- 
                    Is servlet is used to create a dynamic webpage or Static webpage or both?Yes both servlet is used to create a static and dynamic webpage,it also create a static webpage using serverside include it is .shtml extension,and so servlet is flexible character. 
Servlets Interview Questions

 
  
  
  
		
Ans