• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

servlet related interview questions

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,

there are some servlet related questions, pl help me

1) what is the diff between ServletContext and ServletConfig and what is the relationship between the two?
2)what is the diff between server.xml and web.xml and what is the relationship between the two?

pl help me. is urgent.

Regards

Jhanavi.
 
Ranch Hand
Posts: 425
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Jhanavi,

Difference between ServletConfig and ServletContext ?
ServletConfig is used to fetch the application specific data as the Initial parameters required for an application. Whereas ServletContext is used to get other details as to the applicatoin and server properties.
ServletConfig Object is passed in init() method which is further passed to the HTTPServlet Class.

Difference between server.xml and web.xml ?
Server.xml have the properties set which are required by the server as to the Cache size or some other properties, whereas web.xml contains properties specific to a web application.

Thanks,
Rahul Juneja
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic