Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

UnZip the FormFile

 
sonu arora
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
sonu arora
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks!It resolved the issue.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic