File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JDBC and the fly likes Doubt in send  the  data from a text file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Doubt in send  the  data from a text file" Watch "Doubt in send  the  data from a text file" New topic
Author

Doubt in send the data from a text file

ChakraPani Margani
Greenhorn

Joined: Aug 19, 2007
Posts: 17
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

Joined: Sep 13, 2007
Posts: 21
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

Joined: Nov 29, 2005
Posts: 2308
Originally posted by ChakraPani Margani:

I want just file writing code


Where are you struck ?


Rahul Bhattacharjee
LinkedIn - Blog
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30116
    
150

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?


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Doubt in send the data from a text file
 
Similar Threads
Writing to a text file using servlet
Different reults of execution of jar from terminal and by double clicking
Save data into textfile
Need help writing to a text file
deadline is ard e corner.. need help urgently..