|
| Total Answers and Comments: 7 |
Last Update: August 06, 2008 Asked by: m.pavankumar |
|
| | |
|
Submitted by: mullangi13 Servlet will execute in webcontainer only. The life cycle of servlet is
init(ServletConfig cg) service(ServletRequest,ServletResponse) destroy()
So our webcontainer will call these methods only to execute our servlet. So even you defined main() method in your servlet there is no wrong but there is no use why because it never execute throughout the servlet life cycle.
Rgds, Mullangi
Above answer was rated as good by the following members: ramana123123 | Go To Top
|