Solved

J2EE browser based UI to accept multiple file and bundle it to a war file output

Posted on 2008-06-10
4
280 Views
Last Modified: 2013-12-02
Hi Experts,
 I need a direction as to how I could go about to develop a simple browser based UI, which would accept files and bundle it and give a output in a war file format.

Desirable Features:
1. Browser based UI running on Jboss
2. The page should have multiple browse links to accept files
3. should have a browse field asking for output location
4. Output as a war file format.

Any help would be greatly appreciated.
0
Comment
Question by:itsme_asif
  • 3
4 Comments
 
LVL 10

Expert Comment

by:mukundha_expert
ID: 21751217
ya its possible,

for uploading files using forms, you can use FileUpload from Apache,

for converting into a webarchive you might want to use the java.util.zip
and give the extension as war

and you can send that war file to the client.

0
 
LVL 10

Expert Comment

by:mukundha_expert
ID: 21751234
0
 

Author Comment

by:itsme_asif
ID: 21751933
Thanks much , its exactly what i wanted. I need to ask a another dumb favor as well, i am new J2EE or Java, can you please tell me how i can go about starting a project, i am using eclipse IDE and also how i can connect the codes FileUpload and Creating Archive. is there any sample project you can provide me which i can reference?
0
 
LVL 10

Accepted Solution

by:
mukundha_expert earned 500 total points
ID: 21752249
you can refer to the code for FileUpload -> http://www.experts-exchange.com/Programming/Languages/Java/J2EE/Servlets/Q_23452603.html

once you get the files in the list, you can use the examples for Creating archive to create the war file,
but before that you would need to know the structure of the WAR file, how the user is going to specify the folders,
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Suggested Solutions

Verbose logging is used to diagnose garbage collector problems. By default, -verbose:gc output is written to either native_stderr.log or native_stdout.log.   It is also possible to redirect the logs to a user-specified file. This article will de…
Most of the developers using Tomcat find it easy to configure the datasource in Server.xml and use the JNDI name in the code to get the connection.  So the default connection pool using DBCP (or any other framework) is made available and the life go…
The viewer will learn how to implement Singleton Design Pattern in Java.
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now