Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Doubt in send the data from a text file

 
ChakraPani Margani
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • 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
 
Bougnon Kipre
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • 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 ]
 
Rahul Bhattacharjee
Ranch Hand
Posts: 2308
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by ChakraPani Margani:

I want just file writing code


Where are you struck ?
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 35279
384
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • 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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic