2011-03-10 36 views

回答

1

因为它们是由容器执行的,而不是作为独立的应用程序。

+0

你能给出一个链接,解释有关容器? – 2011-03-10 09:15:29

2

是的,我同意manoj.The JSP/Servlet的是由Web容器的网络Container.The基本定义执行: -

Web Container specifies a runtime environment for web components that includes security, concurrency, lifecycle management, transaction, deployment, and other services.

基本上大部分的Java Web应用程序开发者使用Tomcat作为Web容器。

文章或简单的关于web容器的描述可以在here找到。

Java给了一些Web容器下载Link

+0

在这里你走......... – Greenhorn 2011-05-05 08:06:01

1

可能是题外话,但仍然会有所帮助:

如果我们在JSP/servlet的使用main()方法main()方法不会在整个生命cycle.Generally JSP/Servlet的下仅Web容器执行执行。 Webcontainer仅执行JSP/servlet生命周期或回调方法才能执行JSP/Servlet.So在JSP/Servlet的整个生命周期中,webcontainer将执行init(ServletConfig),service(ServletRequest,ServletResponse),destroy()方法。

相关问题