• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Writing to flat file

 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Could you please give me more details on how to accomplish this. Thanks a lot.
 
Ulf Dittmer
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 1780
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
No one can make you feel inferior without your consent - Eleanor Roosevelt. tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic