create servelet instance from another servlet

want to create an instance of a servlet from another servlet.how do i proceed with.
[97 byte] By [sandipsamantaa] at [2007-11-27 5:04:19]
# 1
Why? This just sounds like a workaround for bad design.If you want to reuse methods, then refractor to utility classes. If you actually want to invoke the servlet, then just gently do an URI request (using redirect or PostMethod).
BalusCa at 2007-7-12 10:22:37 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2

yaha. we can directly invoke a servlet using URI. My experience says we don't need to instantiate a servlet, it will be loaded and instantiated by the servlet container once we invoke the servlet class.

actually i'm not sure abt the usage of it (creation of servlet instance from another ), as someone else asked this to me.

but is it possible to do so. how?

sandipsamantaa at 2007-7-12 10:22:37 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3
hey man you know how to invaoke the servlet ? when the servlet coming the request will be instantatedu can't need to create or invoking from another u can loaded the servlet (instated ) when the contaner startfrom web.xml thanks
javaskilleda at 2007-7-12 10:22:37 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 4
You are never going to create an instance for a servlet...it is the job of the container..
santhoshreddythuragaa at 2007-7-12 10:22:37 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 5
not to mention Servlet is an interface, GenericServlet and HttpServlet are abstract classes
developer_jbsa at 2007-7-12 10:22:37 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 6
u can't create a servlet instance
Viplava at 2007-7-12 10:22:37 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 7
Isn't that already said yet?
BalusCa at 2007-7-12 10:22:37 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...