Smart Sync : How to search a Main Servlet in an Application.
We are developing a smart Sync application.
1) We want a certain functionality in which we want to search the Main Servlet and replaceits control with the new desired code . Please suggest how is it possible to add this kind of code without hampering the existing code.
2) How do we read the web.xml dynamically and replace that Main Servlet as soon as application is loaded.