What are the Characteristics of Servlets?
The characteristics of servlets that have gained them a wide spread acceptance are as follows:
1.Servlets are efficient:The initialization code for a servlet is executed only when the servlet is executed for the first time.Subsequently, the requests that are received by the servlet are processed by its service() method.This helps to increase the efficiency of the server by avoiding creation of unnecessary processes.
2.Servlets are robust:As servlets are based on Java,they provide all the powerful features of Java.such as exception handling and garbage collection,which make them robust.
3.Servlets are portable:Servlets are also portable because they are developed in Java.This enables easy poratability across Web servers.
4.Servlets are persistent:Servlets helps to increase the performance of the system by preventing frequent disk access.For ex.if a customer logs on to www.EarnestOnline.com, the customer can perform many activities,such as checking for the balance.applying for a aloan. And so on.Inevery stage the customer needs to be authenticated by checking for the account number against the database.Instead of checking for the account number against the database every time.servlets retain the account number in the memory till the user logs out of the Web site.
Questions by sujatham answers by sujatham
Showing Answers 1 - 1 of 1 Answers
Related Answered Questions
Related Open Questions
What are the Characteristics of Servlets?
1.Servlets are efficient:The initialization code for a servlet is executed only when the servlet is executed for the first time.Subsequently, the requests that are received by the servlet are processed by its service() method.This helps to increase the efficiency of the server by avoiding creation of unnecessary processes.
2.Servlets are robust:As servlets are based on Java,they provide all the powerful features of Java.such as exception handling and garbage collection,which make them robust.
3.Servlets are portable:Servlets are also portable because they are developed in Java.This enables easy poratability across Web servers.
4.Servlets are persistent:Servlets helps to increase the performance of the system by preventing frequent disk access.For ex.if a customer logs on to www.EarnestOnline.com, the customer can perform many activities,such as checking for the balance.applying for a aloan. And so on.Inevery stage the customer needs to be authenticated by checking for the account number against the database.Instead of checking for the account number against the database every time.servlets retain the account number in the memory till the user logs out of the Web site.
Profile Answers by sujatham Questions by sujatham
Questions by sujatham answers by sujatham
Related Answered Questions
Related Open Questions