A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
why don't we use main() in Servlet,Jsp?
Joined: Aug 29, 2007
Jan 07, 2008 02:26:00
why don't we use main() in
Joined: Mar 22, 2005
Jan 07, 2008 02:38:00
"main" is a method called when Java classes are invoked using the "java" executable. Since
and JSPs are invoked by the servlet container through the lifecycle methods defined in the Servlet interface, there is no place for it.
Ping & DNS
- my free Android networking tools app
I agree. Here's the link:
subject: why don't we use main() in Servlet,Jsp?
Diff Between Servlet and JSP
MVC - Controller
difference between jsp and servlet
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014