由买买提看人间百态

topics

全部话题 - 话题: sevlet
(共0页)
S****h
发帖数: 558
1
来自主题: Java版 - jsp和j2ee什么关系?
Yeah. Nowadays, mostly, web layer with jave technology would be java +
jstl(part of jsp). I rarely use embedded java code in jsp like what most old
jsp books would show. No serious programmer will use jsp with lots of
embedded java code. So not really a good starting point at all.
JSPs are all translated into sevlets automatically by jsp container (tomcat/
jetty/google app engine) first. Then those generated sevlets are run along
with the sevlets you write by hand.
w**z
发帖数: 8232
2
可能是我没说清楚,
J2EE顾名思义,是在JDK 2 的时候引进的。现在应该叫做JEE了。那个时候主要有
EJB, JSP/Sevlet/ JNDI/JDBC/JMS等等, 现在加了好多新东西。
可能不同的人有不同的理解,就我接触到的人,一般来说,提J2EE主要是指Server
Side Technology, 既指EJB
所以我说的的J2EE不流行,确切的说是EJB不流行了。用Spring的更多一些了吧。
如果说到web framework, 就更多了。听说 lift, play比较热,好像还有node.js...
web不是很精通,就不瞎说,露怯了。
H**********5
发帖数: 2012
3
终于完全转到后端java了,特此记录下自己的学习体验,
比较好的对付后端面试问题的Link:
http://www.javatpoint.com/spring-interview-questions
http://career.guru99.com/top-50-j2ee-interview-questions/
http://www.javatpoint.com/hibernate-interview-questions
以前总是对bean,sevlet,factorydao 头晕,
现在总算有点头绪了,对spring,struts,mvc,从前端到后端,数据库整个流程有点理
解。
个人认为值得入手的书籍:
(1)Pro Spring 3 ,亚麻上入手了一本打印版,25刀。
(2)开发者突击:java web主流框架整合开发。个人认为这本书值得入手,但北美买不
到,
有人在湾区准备卖这本书的,本人愿意买,可站内。
(3)core java career essentials 。讲core java的,问题形式,有示范代码。
以上适合任何想从其他方向转java后端的。
n*****a
发帖数: 4
4
来自主题: Java版 - Re: Need help with EJB

seems WebLogic is very popular now, u can download it.
I think EJB is just as other Java programs, you do not need
special tool for it. EJB only contains your business logic.
You can find tutorial about EJB at Javasoft, I download it
before, you shld also download J2EE to run examples.
Did your sevlet and JDBC guarantee transaction, multi-user
safe and scalability? That's the most important issues in
business world. EJB automatically guarantee it and you just
need to concentrate on business log
z**k
发帖数: 65
5
小妹刚刚出道,很多不懂,请问服务端的日志是不是TOMCAT 的LOG
FILE(我的AXIS装在TOMCAT上)?我看了一下LOCALHOST_LOGXXX, 好像没有相关的信息。
请问AXIS有自己的LOG FILE 吗?
另外,为什么我从自己的LOCAL computer 可以成功调用(用main
function),可是从SEVLET
里就不行?错误里和weblogic.servlet.internal.ServletStubImpl.invokeServlet有关
,是不是因为THREAD的问题。请问在哪里可以找到相关的例子?
多谢多谢!
f*******y
发帖数: 348
6
来自主题: Java版 - sevlet question
I am trying to use apache fileupload to load file from a desktop application
to a server by using HttpClient. I could do the upload. The problem is I
need also sent some other information from the client to the server, so the
servlet knows where to store those upload files and also send the actural
directory back.
My questions is how could I send those information to the servlet and how
can I get the directory information back?? I am new to J2EE, I am really
confused, please help. Thanks
A**o
发帖数: 1550
7
来自主题: Java版 - sevlet question
it's pretty hard indeed if you don't know http basic before using servlet.
hint: put all the info in http request and get your dir info in http
response.
let's discuss more details after this.

application
the
f*******y
发帖数: 348
8
来自主题: Java版 - sevlet question
Currently I am using the following code on in servlet to send my dir back
PrintWriter out = response.getWriter();
out.println(dir);
out.close();
and on the client side, I use
postMethod.getResponseBodyAsString()
to get the dir back. But I feel this is not the best method, is there a
better way to do it?
****************************************************************************
**
For sending information from client to the servlet, I was tring to use the
following on the client side
postMethod.
z*******g
发帖数: 132
9
看了些东东,还没明白, 我想import javax.servlet.* 怎么找不到呢。。。
————
在这个专题中我们由浅入深地向大家介绍Java Servlet的基本特征、开发环境的配置
以及Servlet的一些主要API类。
Servlet是一种独立于平台和协议的服务器端的Java应用程序,可以生成动态的Web页面
一、概述
Servlet是一种独立于平台和协议的服务器端的Java应用程序,可以生成动态的Web页面。
Servlet是位于Web 服务器内部的服务器端的Java应用程序,与传统的从命令行启动的
Java应用程序不同,Servlet由Web服务器进行加载,该Web服务器必须包含支持Servlet
的Java虚拟机。
Java Servlet 与 Applet 的比较:
相似之处:
* 它们不是独立的应用程序,没有main()方法。
* 它们不是由用户或程序员调用,而是由另外一个应用程序(容器)调用。
* 它们都有一个生存周期,包含init()和destroy()方法。
不同之处:
* Applet具有很好的图形界面(AWT),与浏览器一起,在客户端运行。
* Serv... 阅读全帖
z****n
发帖数: 1933
10
来自主题: Java版 - 纯ajax网站和sevlet优劣是啥
如果客户端完全用html+javascript。所有request都是call服务器端的web service。
这样的设计有啥问题。 和通用servlet框架,像springmvc, strut2, jsf,比有啥优劣?
现在有没有这样的网站采取这种架构?
c*********e
发帖数: 16335
11
来自主题: Java版 - 纯ajax网站和sevlet优劣是啥
ajax call的不一定是web services。ajax只是把从server-side得到的数据,inject到
client-side的某一個tag里面。
ajax可以就更新一個网页自身,然后数据也update了。jsp里面本身可以用javabean,
java code来做动态网页。比如一个网页上的读者的留言,更新就是用ajax.

劣?
c*********e
发帖数: 16335
12
来自主题: Java版 - 纯ajax网站和sevlet优劣是啥
struts沒有servlet灵活。ajax只是动态更新网页的某一個部分,而且用戶感觉不到网
页刷新。

劣?
z****n
发帖数: 1933
13
来自主题: Java版 - 纯ajax网站和sevlet优劣是啥
你没看懂我帖子。我说的是静态html+javascript,完全不用jsp
s******e
发帖数: 493
14
来自主题: Java版 - 纯ajax网站和sevlet优劣是啥
Yes. you should be fine by either way.
But before you choose between them, you might want to ask yourself some
questions:
1. do you need to keep states on the server side? For example http session..
. Web service by nature is stateless. You can make it stateful, but that
will imply the extra works on both client and server sides. On the other
hand, servlet/jsp automatically support states via http session.
2. Do you need to do the whole page navigation a lot? Ajax was introduced to
update a html... 阅读全帖
z****n
发帖数: 1933
15
来自主题: Java版 - 纯ajax网站和sevlet优劣是啥
谢谢回复,这个说到点子上了。

..
to
c******r
发帖数: 231
16
来自主题: Programming版 - 该买32位的还是64位的笔记本呢
在自己机器上跑呢
装一个tomacat, 写点jsp, sevlet
w**z
发帖数: 8232
17
来自主题: Programming版 - 关于Restful+Json
Jersey is built on top of sevlet, there are open source lib to use it with
netty. I never tried and not sure how good they are.
f*****w
发帖数: 2602
18
晕了 本来到底选择play 还是其他得framework就已经让我很头大了
再来个websocket versus sevlet 3.0 ....
c*******9
发帖数: 9032
19
来自主题: Programming版 - Vert.x3 says "hello" to NPM users
如果是http web为主的项目,Vert.x3 和sevlet开发难易程度差不多吧, 能代替多少
struts+spring+hibernate的功能?
(共0页)