This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Doubt in send the data from a text file

 
ChakraPani Margani
Greenhorn
Posts: 19
  • 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: 34095
337
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