• 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
  • Tim Cooke
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Mikalai Zaikin
  • Himai Minh

Doubt in send the data from a text file

 
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello to all members,
any body help me to send the data from servlet to a textfile.
Actually I created a JSP page as home page.
After clicking the submit button the data must write into textfile.
for example
My home page contains Username,Address,Email,Phone no etc..
when clicking the submit the all above details must be write in a text file.

I want just file writing code

Kindly help me to this.

Thanks&Regards,
ChakraPani
 
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think should be pretty straightforward.

You should be able to query the field values from your servlet and write
them to a file.

A more elegant way, however is to use JSP and bean.

This thread should be posted in SERVLET, JSP or JSF section as it does not

deal with with database per say.
[ September 14, 2007: Message edited by: Bougnon Kipre ]
 
Ranch Hand
Posts: 2308
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by ChakraPani Margani:

I want just file writing code



Where are you struck ?
 
author & internet detective
Posts: 41184
848
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by ChakraPani Margani:
I want just file writing code


Sun's tutorial on files has file writing code. Is this what you are looking for?
 
reply
    Bookmark Topic Watch Topic
  • New Topic