File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Head First Android
this week in the
unble to write the data into file
Joined: Dec 29, 2010
Feb 28, 2011 02:38:36
i am developing one sample spring web application that is for write the data into test.dat file when i click Register Button.
I wrote the below code for that. But the problem is , data is not writing into file . I thought , that is some configuration problem.
I placed that file in classes folder and WEB-INF folder. So please help me to resolve that problem.
In handle method of RegisterController class::
File file = new File("/test.dat");
fos = new
fw = new
} catch (
Joined: Feb 05, 2001
Feb 28, 2011 16:56:45
And what is the exception that you get?
Also, based on the
Spec, I don't believe you can write to a file in the WEB-INF directory. I am not positive though.
Perfect World Programming, LLC
Two Laptop Bag
How to Ask Questions the Smart Way FAQ
I agree. Here's the link:
subject: unble to write the data into file
Writing to a File
No unsigned data
Writing to a file from an EJB
PrintWriter writing not more than 1050000 lines
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015