my dog learned polymorphism*
The moose likes JDBC and the fly likes using field value Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "using field value " Watch "using field value " New topic
Author

using field value

Amit kumar
Greenhorn

Joined: May 09, 2003
Posts: 16
i want to create a file with name that is the value of a particular field


tell to guide
Abhilash Vasudevan
Greenhorn

Joined: Mar 31, 2003
Posts: 19
Hi,
could you please clarify your question.
In my thinking, it is not a problem to create a File object with a field value as long as you can get it as String.
regards
Amit kumar
Greenhorn

Joined: May 09, 2003
Posts: 16
what i am trying to do is that i have created a table which automaticaly generates serial no.
when user enters data through front-end i want his data to be store in file format on the name of the serial no which he is entering the data.
eg:= when he executes the applet and enters the value, at that time if the serial no is 2 then what he has entered should be stored in a file names 2.
Abhilash Vasudevan
Greenhorn

Joined: Mar 31, 2003
Posts: 19
You can create a new FileOutputStream() with a new File() object as parameter. The File() object takes the file path as argument where you can give your newly created serial number. The entered details can be writen in the fileinputstream.
As:

Hope this helps you
Regards
[ May 13, 2003: Message edited by: Abhilash Vasudevan ]
Dirk Schreckmann
Sheriff

Joined: Dec 10, 2001
Posts: 7023
Akumar,
Welcome to JavaRanch!
We ain't got many rules 'round these parts, but we do got one. Please change your display name to comply with The JavaRanch Naming Policy.
Thanks Pardner! Hope to see you 'round the Ranch!


[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
 
 
subject: using field value
 
Similar Threads
Make email send optional for user
Form value is not clearing on HTML Reset
textfield disabled---value not sent to form bean
Regarding to retain hidden variable on click of browser back button
Form value is not clearing on HTML Reset