Answer Posted / rajesh r
Yes we can obiviously create a contructor for SERVLETS
But it is toooo early to play with request or reponse
objects or any information regarding Context or Config
since these are not at all created if you put these in
constuctors..
Regards
Rajesh R
Rajeshr1988@gmail.com
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What do you mean by cgi and what are its drawbacks?
What is difference between GenericServlet and HttpServlet?
What is meant by a servlet?
Difference between java beans & servlets?
How do I use cookies to store session state on the client?
What is a web application and what is it’s directory structure?
If servlet receives multiple requests, how many objects will it create?
What do you mean by cgi?
I have a requirement Here we have a ResultSet object that will contain 50 records i need to print those recors in to a webpage(i.e; view according to MVC architectures that mybe servlet or jsp) . Here i need to print the records 10 per page that is 1 to 10 in page one and 11 to 20 in page two like remaining will be appeared in other pages we need to display those page numbers whenever we click on that page number we will go to that page and display 10 records like we will display 5 pages it is like this << 1 2 3 4 5 next >>
How can you create a session in servlet?
Once the destroy() method is called by the container, will the servlet be immediately destroyed? What happens to the tasks(threads) that the servlet might be executing at that time?
Tell the new features added in servletrequest interface i.e. Servlet 2.4
What is meant by cookies?
What are the benefits of using servlet over cgi?
What do you mean by servlet?