What advantages do servlets have over CGI programs?
Answer Posted / guest
Servlets are written in Java and are platform-independent.
Servlets run under the JVM and may be secured using the Java
sandbox.
Servlets run as threads and may be preloaded to improve their
performance.
| Is This Answer Correct ? | 12 Yes | 0 No |
Post New Answer View All Answers
How can we achieve transport layer security for our web application?
If some new data has entered the database, explain how can a servlet refresh automatically?
Define servlet mapping?
How can you use a servlet to generate a plain text instead of html?
What is the difference between encodeRedirectUrl and encodeURL?
Why do we use sendredirect() method?
How do cookies work in servlets?
What is servlet attributes and their scope?
Define the life cycle of a servlets.
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 >>
Can you create a deadlock condition on a servlet?
Explains the differences between context.getrequestdispatcher() and request.getrequestdispatcher()?
What are sessions in servlets?
Which interface should be implemented by all servlets?
Why filter is used in servlet?