aspose file tools*
The moose likes Struts and the fly likes UnZip the FormFile Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "UnZip the FormFile" Watch "UnZip the FormFile" New topic
Author

UnZip the FormFile

sonu arora
Ranch Hand

Joined: Jul 25, 2002
Posts: 30
All,

In my project user will upload a zip file on to the server . I am using Struts Framework and I have to read an individual file from that zip file.
can somebody help me to do this in struts.

regards


try & try u ll surely win.
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
The Struts framework will help you with the task of uploading the zip file. For an example of uploading using struts, see the upload example in the struts-examples.war file that comes with the Struts download.

To read a file within a zipped archive, you will need to use the classes in the java.util.zip package that is part of the java core library. Here is a link that explains how to use those classes.


Merrill
Consultant, Sima Solutions
sonu arora
Ranch Hand

Joined: Jul 25, 2002
Posts: 30
Thanks!It resolved the issue.
 
 
subject: UnZip the FormFile