Re: access files from jsp

2008-04-29 Thread henry human
Thank you. I will look at the project. --- David Fisher <[EMAIL PROTECTED]> schrieb: > Well, it looks like you can use the reading the file > part of my > approach or David Smith's approach. > > If you need to retrieve content from within a > Microsoft Office file - > including properties, et

Re: access files from jsp

2008-04-29 Thread David Fisher
Well, it looks like you can use the reading the file part of my approach or David Smith's approach. If you need to retrieve content from within a Microsoft Office file - including properties, etc then you might take a look the Apache POI project - http://poi.apache.org/ If you need to do

Re: access files from jsp

2008-04-29 Thread henry human
--- David Smith <[EMAIL PROTECTED]> schrieb: > No, I don't mean that. It should be able to retrieve > any type of file. > What you can do with it from within a jsp might be > somewhat limited thought. Ok, > What exactly do you want to do with the file > contents within the jsp? I will save

Re: access files from jsp

2008-04-29 Thread David Smith
No, I don't mean that. It should be able to retrieve any type of file. What you can do with it from within a jsp might be somewhat limited though. What exactly do you want to do with the file contents within the jsp? BTW, I highly recommend you read the documentation for the jstl taglibs and

Re: access files from jsp

2008-04-29 Thread David Fisher
Hi Henry, most of these files are PDF, XLS and not only TXT format. You are meaning that with a JSP definitvly one can reads only TXT files? When I had the trouble I was referred to the JSP spec and it is meant for serving marked up Text formats. Encoding translations can happen with JSP.

Re: access files from jsp

2008-04-29 Thread henry human
Hi David, most of these files are PDF, XLS and not only TXT format. You are meaning that with a JSP definitvly one can reads only TXT files? i understood with help of --- David Fisher <[EMAIL PROTECTED]> schrieb: > Henry doesn't say if these are text files or binary > files. > > If these are b

Re: access files from jsp

2008-04-29 Thread henry human
Thanks David. I will try it as long as i know about some details and options of my to be implemented project. please follow my other topic, maybe you can help too > Yes, in general the url="http://remoteServer/path"; /> would > fetch the file via http protocol. The actual URL > you'd use is dep

Re: access files from jsp

2008-04-29 Thread David Smith
Yes, in general the http://remoteServer/path"; /> would fetch the file via http protocol. The actual URL you'd use is dependent on the configuration of the remote server. --David henry human wrote: You gave me some idea and brought light to the issue! Thanks url="http://remoteSystem.dns.com

Re: access files from jsp

2008-04-29 Thread henry human
You gave me some idea and brought light to the issue! Thanks url="http://remoteSystem.dns.com/http/path/to/file.txt > var="fileContents" /> Am I right about above, that you mean my JSP ask the tomcat on the remote machine and consequently the remote tomcat reads the file by means of the incoming

Re: access files from jsp

2008-04-29 Thread David Fisher
Henry doesn't say if these are text files or binary files. If these are binary files like PDF, PPT and XLS files then a servlet will be needed - not a jsp. We use variations like the following in both Tomcat 4.1.31 and Tomcat 5.5.26 public class OpenFileServlet extends HttpServlet{ p

RE: access files from jsp

2008-04-29 Thread Propes, Barry L
nal Message- From: David Smith [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 29, 2008 1:39 PM To: Tomcat Users List Subject: Re: access files from jsp So... the "remote file" is available to the local system on a network drive. That's a fun one. There are a couple of dif

Re: access files from jsp

2008-04-29 Thread David Smith
So... the "remote file" is available to the local system on a network drive. That's a fun one. There are a couple of different ways to do this. 1. Using Windows fileshares Let me preface this by saying *I've* never done this. The few times I've had a tomcat server on a Windows machine, it only

Re: access files from jsp

2008-04-29 Thread henry human
Thanks David, I try to clarify my situation. I have a JSP running in local computer in tomcat. This JSP should read from a remote machine. The files are under d:\archive\files. These directory which provide a repository functionality could not be transfer somewhere else. The files “must be” saved t

Re: access files from jsp

2008-04-29 Thread David Smith
Here's the picture you painted in the original email and I based my answer on: 1. You have a jsp file on a tomcat server which needs to read information from a remote system 2. The system containing the remote file has a webserver you could put the file in. The c:import tag is a java standar

Re: access files from jsp

2008-04-29 Thread henry human
> Seems to me the simplest is the c:import tag and sorry,I don't understand what you mean, could you tell more detailed. Maybe a little code code, a sample, etc > fetch the file via http how?? > -- just my two cents. You know more about your > architecture and what's > available than any of

Re: access files from jsp

2008-04-29 Thread David Smith
Seems to me the simplest is the c:import tag and fetch the file via http -- just my two cents. You know more about your architecture and what's available than any of us. --David henry human wrote: Once again because there was a mistake in the first email : i am about to read from a JSP the

RE: access files from jsp

2008-04-29 Thread henry human
Once again because there was a mistake in the first email : i am about to read from a JSP the data at a remote computer. At remote computer is tomcat running. the files are stored in remote computer at d:\archive\files The port 80 is also accessible. Please tell me, what should be configu