File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes Writing to flat file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Writing to flat file" Watch "Writing to flat file" New topic
Author

Writing to flat file

Wrick Sharma
Greenhorn

Joined: Apr 03, 2005
Posts: 17
We are creating a enrollment form and I need to capture this information and write to flat file when a user click on the submit button. Any efficient ideas on how to accomplish this.
Wrick Sharma
Greenhorn

Joined: Apr 03, 2005
Posts: 17
Let me be little more clear. I do know the classes to use for writing to a flat file.

I am looking for help more on the how to deploy the class on web server. We are using apache web server. I am not sure where to deploy the class file and how to send the data to this file from the form. The requirement is to write the data to a flat file on submission from the html form.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39549
    
  27
Assuming you want a Java solution, you would use servlet technology to accomplish this. To run servlets you need a servlet engine like Tomcat, which can also double as a web server, or work together with Apache.


Ping & DNS - updated with new look and Ping home screen widget
Wrick Sharma
Greenhorn

Joined: Apr 03, 2005
Posts: 17
Could you please give me more details on how to accomplish this. Thanks a lot.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39549
    
  27
It's not possible to explain a huge subject like servlets in a message like this. You should get a book on servlets/JSPs and start working through that, and download and install Tomcat, and try to understand it and its examples.
Jeff Albertson
Ranch Hand

Joined: Sep 16, 2005
Posts: 1780
Originally posted by Wrick Sharma:
Could you please give me more details on how to accomplish this. Thanks a lot.


That's a bit like writing, "I'be been instructed to build an ark, 300 cubits long, and gather two of every animal that walketh on the Earth. Any advice in shipbuilding and zoology is greatly appreciated."


There is no emoticon for what I am feeling!
Wrick Sharma
Greenhorn

Joined: Apr 03, 2005
Posts: 17
Got it. I got the book head first sevlets/jsp and going through it. Did'nt know its that complicated.

Appreciate your suggestions guys.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Writing to flat file
 
Similar Threads
In this Developer assignment database Flat file
Which design pattern to use ?
trying to use a txt file like a database
The earth
WA #1.....word association