aspose file tools*
The moose likes Servlets and the fly likes com.oreilly.servlet package! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "com.oreilly.servlet package!" Watch "com.oreilly.servlet package!" New topic
Author

com.oreilly.servlet package!

Jimi Rock
Ranch Hand

Joined: Feb 19, 2001
Posts: 134
I would be grateful if some one could help me in order to use com.oreilly.servlet package .
I need to upload files of any size using a frame on the client side , and may be this will be a problem .
Regards,
Jimi.
Andrew Shafer
Ranch Hand

Joined: Jan 19, 2001
Posts: 338

I've used some of the classes from that package.
What exactly have you tried to do that doesn't work or are having problems with?


!_I_Know_Kung_Fu_!
Jimi Rock
Ranch Hand

Joined: Feb 19, 2001
Posts: 134
Andrew ,As I told , I am trying to upload a file of any size , i.e. if it is a large file , I am going to upload each part (may be 10MB) individually . and this is not a problem if I am viewing only html on the client side , but if it is for example a java frame , what will be the client program ? and how the servlet is going to be invoked ?
Thanks,
vaibhav punekar
Ranch Hand

Joined: Jan 20, 2001
Posts: 134
jimi,
why don't you use applet instead so that it can be shown in the HTML file?Ya! there will be a security problem if you upload files from the remote host.So I thnink the only change you will require is to make that "input type =file" working in your application.Is it possible to have "browse" button and select the required files from the local m/c?I never tried it.You can ve workaround to this problem.You can use "filedialogbox" instead.But these com.oreilly classes are very much interrelated and you will require to make changes accordingly.So is it the absolute requirement to have frame only.Otherwise you can use HTML directly to make your life easy.


VAIBHAV <BR>SCJP
Jimi Rock
Ranch Hand

Joined: Feb 19, 2001
Posts: 134
I can use applet, no problem because I can sign it , and it is actually signed , I agree with you that using html makes my life easier , but the problem is that I am developing an existed system and the supervisor do not want me to change the current applet . if you are ready to help I will provide you with the current part of the client program that invokes servlet. and with the current servlet program . note that I can browse files using JFileChooser and every thing is working fine, but the current system is uploading the whole file , so if it becomes a large file (more than 25-30 MB), it will fail.
Waiting for your comment..
Thanks,
Jimi.
Cameron Park
Ranch Hand

Joined: Apr 06, 2001
Posts: 371
You can use the MultipartRequest class. Just invoke an instantiation and the upload is done there.
Jimi Rock
Ranch Hand

Joined: Feb 19, 2001
Posts: 134
Cameron, I would be grateful if you tell me how can I modify the current code in order to get the advantage of this orielly package, and note that I am using it for the first time .I need the client program to determine the source file, distination file , and the servlet url(as it is now) if possible.


Thanks,
Jimi.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: com.oreilly.servlet package!