0

Hello all,

I need to develop a simple web application in java that will take MS excel files as input and generate output in excel format as well. Since I am not very experienced in java I am not sure what framework should I be using. Do I need to use JSP or can I develop a user interface using JSwing and use servlets to make it available on web? Will appreciate any help.

Thanks.

2
Contributors
10
Replies
11
Views
7 Years
Discussion Span
Last Post by peter_budo
0

Thanks for your response! Can I use simple HTML to send user form input to servlet? For manipulating excel which api is better, JExcel or Apache POI?

You need JSP to get file from user and forward it to user. To download it you should use Commons FileUpload or similar. Once you have file in servlet you want to use Apache POI to manipulate Excel

0

Yes for upload you need form.
As for which is better JExcel or POI, I cannot say as I used only POI which was very easy and painless.

0

Hi,

I've been testing my application on my local Tomcat server and it works perfectly fine. Now I need to run it on a shared server. I have access to a common development server (\\xyzserver) that has Tomcat installed on it. I uploaded my applicaiton under Tomcat->webapps folder. Do I need to know server ip-address to run my app
(e.g. http://xyzserver_ip/tomcat/.../myapp/index.html)? I tried running it by going into the directory \\xyzserver\tomcat\...\index.html. The html page opened fine but servlet code does not seem to respond.

Thanks.

Yes for upload you need form.
As for which is better JExcel or POI, I cannot say as I used only POI which was very easy and painless.

0

Got this issue resolved .. Thanks.

Hi,

I've been testing my application on my local Tomcat server and it works perfectly fine. Now I need to run it on a shared server. I have access to a common development server (\\xyzserver) that has Tomcat installed on it. I uploaded my applicaiton under Tomcat->webapps folder. Do I need to know server ip-address to run my app
(e.g. http://xyzserver_ip/tomcat/.../myapp/index.html)? I tried running it by going into the directory \\xyzserver\tomcat\...\index.html. The html page opened fine but servlet code does not seem to respond.

Thanks.

0

Hi,

I am using POI to manipulate excel input and generate excel output. But the output has to follow a certain format. Is it possible to copy worksheet from a template file to the output file? Will appreciate any help.

Thanks.

You need JSP to get file from user and forward it to user. To download it you should use Commons FileUpload or similar. Once you have file in servlet you want to use Apache POI to manipulate Excel

0

By template file I mean another excel file from which the output excel file needs to copy some fixed rows and column values. So basically the output excel file will have similar format as that of a template excel file but it will be filled with data that is manipulated from the input file uploaded by user from form. Hope this is more clear.

What you mean by template file? Can you provide more descriptive example?

0

I figured out how to do this. Thanks for your response anyway!

What you mean by template file? Can you provide more descriptive example?

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.