ابدأ بالتواصل مع الأشخاص وتبادل معارفك المهنية

أنشئ حسابًا أو سجّل الدخول للانضمام إلى مجتمعك المهني.

متابعة

What is the context between Servlet Context Object and Servlet Config in the Servlets programming?

user-image
تم إضافة السؤال من قبل مستخدم محذوف‎
تاريخ النشر: 2014/01/23
Ramy Diab
من قبل Ramy Diab , eBanking Senior Java Developer / Service Delivery Engineer , ejada

Hello ,

 

ServletContext object give you reference over all the application -context- , but servletConfig object give you reference on only one servlet.

 

For example you can use ServletContext to get the context initial parameters , and use servletConfig to get the servlet initial parameters.

note that there is only one servletConfig object avaliable to any servlet.

 

There is many other uses to both types of objects , you can getRequestDispatcher from servletContext , and you can log to the server using servletConfig ,.....

المزيد من الأسئلة المماثلة

هل تحتاج لمساعدة في كتابة سيرة ذاتية تحتوي على الكلمات الدلالية التي يبحث عنها أصحاب العمل؟