由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Java版 - sevlet question
相关主题
how to sent progress message back from a servlet to a client?jBuiler 4白皮书(来自inprise网站)
[转载] Re: 觉得自己很笨Re: Expert, help me, please -Java Server Environment set up
jsp和j2ee什么关系?Run Servlet with Tomcat
纯ajax网站和sevlet优劣是啥Please Help!
java servlet question急问:装了JSDK2.0,servlet engine 不 运 行 ?
servlet读取directory的基本问题J2EE tutorial servlet help!!
which http client package is good to use?大家做JSP/Java开发的配置是怎样的?
weblogic Server中如果写一个HTTP Client的程序Servlet里面怎样简单设置数据库路径
相关话题的讨论汇总
话题: servlet话题: sevlet话题: client话题: dir
进入Java版参与讨论
1 (共1页)
f*******y
发帖数: 348
1
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
2
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 的大作中提到】
: 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

f*******y
发帖数: 348
3
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.
1 (共1页)
进入Java版参与讨论
相关主题
Servlet里面怎样简单设置数据库路径java servlet question
问一个J2EE和Tomcat问题servlet读取directory的基本问题
J2EE和未来工作问题which http client package is good to use?
光学Java Standard 本身是不是永远不够?weblogic Server中如果写一个HTTP Client的程序
how to sent progress message back from a servlet to a client?jBuiler 4白皮书(来自inprise网站)
[转载] Re: 觉得自己很笨Re: Expert, help me, please -Java Server Environment set up
jsp和j2ee什么关系?Run Servlet with Tomcat
纯ajax网站和sevlet优劣是啥Please Help!
相关话题的讨论汇总
话题: servlet话题: sevlet话题: client话题: dir