Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Servlet read file

843842Apr 15 2010 — edited Apr 16 2010
Hello everyone,

I'm have written a web app in netbeans 6.8. Using JSP and Servlet. Tomcat6.
My app reads xml file, do some things and writes another file. It is ok while I'm working throuth localhost. I just copy file's full path to jsp input type text, request the servlet to get parameter, it reads the file, writes another file, everything is ok.

My question would be, is it possible to do same things on web server? When client enter the file path and app reads, writes it and so on...
I tried to do that,
at first I have the problem with permissions, I solved it by editing catalina.policy file, granted permissions in it. Now it is no errors, but the servlet gives me no results, It doesnt reads file ant so on.
What could it be?

Or the only way is:
at first to upload file to server and then read it? But how could get my outputfile?

Any help would be very appreciate.

Edited by: peliukasss on Apr 15, 2010 4:54 PM

Comments

Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on May 14 2010
Added on Apr 15 2010
2 comments
129 views