my dog learned polymorphism*
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


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
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: 30392
    
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
 
Consider Paul's rocket mass heater.
 
subject: Doubt in send the data from a text file