5 pts.
 Please help me to solve this Java Servlet
Hi i solved the classloader problem now its working good but if v create two servlet container named sample1 and sample2 example: i have created two servlet container named sample1 and sample2 i had created same package name for both. In sample1, i created one servlet class with package name like com.sample.Hellowrold and /hello1 is alias name In sample2, i created one servlet class like com.sample.Hellowrold and /hello2 is alias name. i need to register the servlet in registerServlet method. it takes only the first class name. pls help me to define the registerServlet for this. see below code in mainThread class hs = (HttpServlet) cls.newInstance(); System.out.println("war : "+wars[i]+" context:"+contexts[j][0]); httpService.registerServlet(wars[i]+contexts[j][0],hs, null,null); output: war : /sample1 context:/hello hs : /sample1 com.sample.HelloWorld@16ba008 war : /sample2 context:/hello hs : /sample2 com.sample.HelloWorld@@9f2cff sample1 only work.. pls help me to solve this problem..

Software/Hardware used:
ASKED: April 29, 2009  7:46 AM
UPDATED: April 29, 2009  12:48 PM

Answer Wiki:
Last Wiki Answer Submitted:  Be the first to answer this question.
All Answer Wiki Contributors:  Be the first to answer this question.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _