avatar
servlet到底是啥玩意# Java - 爪哇娇娃
Y*x
1
【 以下文字转载自 Immigration 讨论区 】
发信人: YaoMingRox (Let), 信区: Immigration
标 题: MS degree for I-140
发信站: BBS 未名空间站 (Tue May 4 22:40:05 2010, 美东)
for EB1A, should the photocopy of MS degree diploma also included in the app
lication?
avatar
z*s
2
刚刚看到最新版本3.1,跟随jee7去年分布的。
这东西不是早淘汰了嘛,怎么还在更新?比它还新的jsp,struts都基本没有什么改进
了。
因为它是jee的核心?
avatar
g*g
3
Not at all, servlet is the foundation of many web frameworks. e.g. Spring
MVC which still has largest market share for Java web frameworks to date.
Servlet 3.0 adds async support, servlet 3.1 adds non-blocking.

【在 z***s 的大作中提到】
: 刚刚看到最新版本3.1,跟随jee7去年分布的。
: 这东西不是早淘汰了嘛,怎么还在更新?比它还新的jsp,struts都基本没有什么改进
: 了。
: 因为它是jee的核心?

avatar
d*i
4
I agree with goodbug. Servlet is actually the lower-level API for almost all
Java web framework. Not only Spring MVC, but also JAX-RS uses underlying
servlet implementation.jsp and structs are relatively out-dated.

【在 g*****g 的大作中提到】
: Not at all, servlet is the foundation of many web frameworks. e.g. Spring
: MVC which still has largest market share for Java web frameworks to date.
: Servlet 3.0 adds async support, servlet 3.1 adds non-blocking.

avatar
z*s
5
能不能这么理解,上层的struts,spring,jsf啥的,归根结底还是靠javax.servlet
里面的东西?所以struts被spring淘汰了,jsf完蛋了,但servlet一直离不了?
其实还是我疑惑很久的一个问题,啥是java ee?现在最新的servlet连web.xml都可以
不要了,用annotation来代替。这都是JEE的规范?
就是jee的servlet,web.xml由他们说了算,没法绕过去,而上层的ejb,jsf你可以不遵
守?

all

【在 d****i 的大作中提到】
: I agree with goodbug. Servlet is actually the lower-level API for almost all
: Java web framework. Not only Spring MVC, but also JAX-RS uses underlying
: servlet implementation.jsp and structs are relatively out-dated.

avatar
z*s
6
如果3.0, 3.1不增加这些支持,spring等等东西会缺失某些feature很难弥补?

【在 g*****g 的大作中提到】
: Not at all, servlet is the foundation of many web frameworks. e.g. Spring
: MVC which still has largest market share for Java web frameworks to date.
: Servlet 3.0 adds async support, servlet 3.1 adds non-blocking.

avatar
g*g
7
ejb doesn't build on top of servlet, but jsp and jsf are.
Annotation is just some convenience, the architecture doesn't change.
Java ee are just a bunch of specs. The naming itself is not as important as
the popular frameworks.

【在 z***s 的大作中提到】
: 能不能这么理解,上层的struts,spring,jsf啥的,归根结底还是靠javax.servlet
: 里面的东西?所以struts被spring淘汰了,jsf完蛋了,但servlet一直离不了?
: 其实还是我疑惑很久的一个问题,啥是java ee?现在最新的servlet连web.xml都可以
: 不要了,用annotation来代替。这都是JEE的规范?
: 就是jee的servlet,web.xml由他们说了算,没法绕过去,而上层的ejb,jsf你可以不遵
: 守?
:
: all

avatar
z*s
8
好吧,servlet肯定属于a bunch of specs了?那ejb是上层的不依赖servlet的spec。
sun自己的ejb都不依赖,为什么spring却依赖呢?
web.xml被annotation代替,这个可以由jee来规范,但由不得spring?
spring到底能不能只依赖core java而跟jee无关?

as

【在 g*****g 的大作中提到】
: ejb doesn't build on top of servlet, but jsp and jsf are.
: Annotation is just some convenience, the architecture doesn't change.
: Java ee are just a bunch of specs. The naming itself is not as important as
: the popular frameworks.

avatar
g*g
9
spring core doesn't need a web container. spring mvc does. spring mvc and
struts are so called front controller pattern implemented on top of servlet.
You can take it to any jee server.
spec is a vendor neutral thing.

【在 z***s 的大作中提到】
: 好吧,servlet肯定属于a bunch of specs了?那ejb是上层的不依赖servlet的spec。
: sun自己的ejb都不依赖,为什么spring却依赖呢?
: web.xml被annotation代替,这个可以由jee来规范,但由不得spring?
: spring到底能不能只依赖core java而跟jee无关?
:
: as

avatar
w*z
10
servlet 和EJB没关系, 不同的spec. spring 和 servlet 更没关系。

【在 z***s 的大作中提到】
: 好吧,servlet肯定属于a bunch of specs了?那ejb是上层的不依赖servlet的spec。
: sun自己的ejb都不依赖,为什么spring却依赖呢?
: web.xml被annotation代替,这个可以由jee来规范,但由不得spring?
: spring到底能不能只依赖core java而跟jee无关?
:
: as

avatar
g*g
11
spring mvc is built on top of servlet similar to struts.
Newbies may be confused what spring is. It's a swiss army knife now.

【在 w**z 的大作中提到】
: servlet 和EJB没关系, 不同的spec. spring 和 servlet 更没关系。
avatar
z*s
12
我知道spring core(ioc?)甚至可以用在java se上,那spring mvc,struts等跟前
台比较近的都需要servlet?绕不过去是吧?

servlet.

【在 g*****g 的大作中提到】
: spring core doesn't need a web container. spring mvc does. spring mvc and
: struts are so called front controller pattern implemented on top of servlet.
: You can take it to any jee server.
: spec is a vendor neutral thing.

avatar
g*g
13
你写网站不一定要用 servlet,甚至不一定要 java. 但 spring mvc是基于 servlet的。
servlet就是个规范,写应用和写 web app server的可以分开。

【在 z***s 的大作中提到】
: 我知道spring core(ioc?)甚至可以用在java se上,那spring mvc,struts等跟前
: 台比较近的都需要servlet?绕不过去是吧?
:
: servlet.

avatar
z*s
14
大牛越说我越糊涂了。 应用和web app server分别是? spring mvc算啥?
你说的app server好像不是tomcat/weblogic之类的东西?

的。

【在 g*****g 的大作中提到】
: 你写网站不一定要用 servlet,甚至不一定要 java. 但 spring mvc是基于 servlet的。
: servlet就是个规范,写应用和写 web app server的可以分开。

avatar
g*g
15
There are 2 types of containers when we talk about jee.
1. web container, e.g. tomcat and jetty that implements servlet/jsp/jsf
2. full fledged jee server that supports 1 plus ejb. e.g. Jboss, Websphere,
weblogic.
Spring mvc is just a web framework. Obviously it can be ran in both.

【在 z***s 的大作中提到】
: 大牛越说我越糊涂了。 应用和web app server分别是? spring mvc算啥?
: 你说的app server好像不是tomcat/weblogic之类的东西?
:
: 的。

avatar
w*z
16
tomcat is servlet container , wls is jee container.

【在 z***s 的大作中提到】
: 大牛越说我越糊涂了。 应用和web app server分别是? spring mvc算啥?
: 你说的app server好像不是tomcat/weblogic之类的东西?
:
: 的。

avatar
z*s
17
tomcat更基本更简单。
再回到你前面的话 “servlet就是个规范,写应用和写 web app server的可以分开”
应用和web app server分别指啥?给几个例子吧。

,

【在 g*****g 的大作中提到】
: There are 2 types of containers when we talk about jee.
: 1. web container, e.g. tomcat and jetty that implements servlet/jsp/jsf
: 2. full fledged jee server that supports 1 plus ejb. e.g. Jboss, Websphere,
: weblogic.
: Spring mvc is just a web framework. Obviously it can be ran in both.

avatar
g*g
18
这里说的应用就是web app,spring mvc就是一个web app framework. web app server
, 前面提的servlet container,jee container都算。

【在 z***s 的大作中提到】
: tomcat更基本更简单。
: 再回到你前面的话 “servlet就是个规范,写应用和写 web app server的可以分开”
: 应用和web app server分别指啥?给几个例子吧。
:
: ,

avatar
z*s
19
明白。 原谅我打破砂锅 你说“写web app server”啥意思?这东西不就是配置一下嘛
,比如改改xml,难道还需要编程?

server

【在 g*****g 的大作中提到】
: 这里说的应用就是web app,spring mvc就是一个web app framework. web app server
: , 前面提的servlet container,jee container都算。

avatar
c*e
20
现在ajax出来了,是当红明星,servlet被它的光芒掩盖了。

【在 z***s 的大作中提到】
: 刚刚看到最新版本3.1,跟随jee7去年分布的。
: 这东西不是早淘汰了嘛,怎么还在更新?比它还新的jsp,struts都基本没有什么改进
: 了。
: 因为它是jee的核心?

avatar
g*g
21
你是不用写,tomcat, weblogic总得有人写。

【在 z***s 的大作中提到】
: 明白。 原谅我打破砂锅 你说“写web app server”啥意思?这东西不就是配置一下嘛
: ,比如改改xml,难道还需要编程?
:
: server

avatar
z*s
22
这个不是js+XHR嘛 跟servlet有交集?

【在 c*********e 的大作中提到】
: 现在ajax出来了,是当红明星,servlet被它的光芒掩盖了。
相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。