Get your CodeRanch badge!*
The moose likes JDBC and the fly likes How to  insert data from a text file to the database and be able to show it in the web application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "How to  insert data from a text file to the database and be able to show it in the web application" Watch "How to  insert data from a text file to the database and be able to show it in the web application" New topic
Author

How to insert data from a text file to the database and be able to show it in the web application

Mustafa Okbar
Greenhorn

Joined: Apr 04, 2011
Posts: 13
Hi guys, I am currently doing a web project called alumni and got some problem with reading the data from a text file. I have database access , person and import classes. In my import class I get one mistake. Can you help me to solve it. Thanks in advance. Bellow the code where I need to solve this problem


Mustafa Okbar
Greenhorn

Joined: Apr 04, 2011
Posts: 13
The information in tex file stored like this


username: *******************************
lastname: ************************************
firstname: *****************************
email: ***************************************
password: ***************************
latitude: 50.935698
longitude: 1.330554
image: bert0000.png
school: Southampton-018, 1970 - 1974
school: Southampton-048, 1974 - 1975
school: Southampton-008, 1975 - 1977
school: Southampton-038, 1977 - 1981
school: Southampton-031, 1981 - 1985
Jan Cumps
Bartender

Joined: Dec 20, 2006
Posts: 2477
    
    7

You should never post someone's email address or account/password combination on the internet. I have removed them for you.

OCUP UML fundamental and ITIL foundation
youtube channel
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18150
    
    8

Mustafa Okbar wrote: In my import class I get one mistake. Can you help me to solve it.


We could quite likely help you to solve it, but first you have tell us what it is.
 
Consider Paul's rocket mass heater.
 
subject: How to insert data from a text file to the database and be able to show it in the web application
 
Similar Threads
Out
Axis service always reads "(MEMO)" from arguments
405 error
Sorting Field Order?
how to make a method in database access class for login