can servlet have instance variables?
Answer Posted / debapriya maity
Yeah we surely can provide instance variable,but ur servlet
implements MultithreadModel,its is not the right
approach,better use local varibles ,using SingleThreadModel
approach cause perfomance degradation
| Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
What are all the protocols supported by httpservlet?
How do we call one servlet from another servlet?
What is the purpose of dispatcherservlet properties?
What do you mean by request dispatcher in servlet?
What is session?
What do you mean by scope object and what are its types?
What is the use of send redirect () method?
Explain jsessionid?
What do you mean by mime type?
What do you mean by the servlet chaining?
How can the referrer and the target urls be used in servlet?
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 >>
When Servlet is unloaded?
How do I support both get and post from the same servlet?
Which interface must be implemented by all servlets?