• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Writing to flat file

 
Wrick Sharma
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Wrick Sharma
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Could you please give me more details on how to accomplish this. Thanks a lot.
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1780
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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."
 
Wrick Sharma
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Got it. I got the book head first sevlets/jsp and going through it. Did'nt know its that complicated.

Appreciate your suggestions guys.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic