Search Results

Showing results 1 to 15 of 15
Search took 0.01 seconds.
Search: Posts Made By: lookof2day ; Forum: Java and child forums
Forum: Java Nov 24th, 2007
Replies: 7
Views: 4,329
Posted By lookof2day
This was interesting. It was really skipping the readLine(). So try this..

System.out.println( "\n¿De que pueblo desea buscar informacion? " );
input = new Scanner(System.in);
...
Forum: Java Nov 24th, 2007
Replies: 7
Views: 4,329
Posted By lookof2day
if you didn't got the exception here

nombreDocTXT = input.next();

then you can't get it when calling nextLine(); because it's just another method of Scanner class. However, can you provide your...
Forum: Java Nov 23rd, 2007
Replies: 7
Views: 4,329
Posted By lookof2day
Have you used Scanner.nextLine()??
Forum: Java Sep 22nd, 2007
Replies: 4
Views: 1,700
Posted By lookof2day
So what's ur exact problem? Displaying the result, or reading from commandline or what?
Forum: Java Sep 21st, 2007
Replies: 12
Views: 2,747
Posted By lookof2day
It works pretty fine. I think your source file name is different than the class name i.e., PayrollApp. Rename the source file to PayrollApp.java.
Forum: Java Sep 17th, 2007
Replies: 6
Views: 1,033
Posted By lookof2day
Ok ! I thought you wanted a reusable bean so I made the changes that way.

However, I think you are missing to put the mysql jdbc driver in the classpath of your program.
You can download it...
Forum: Java Sep 17th, 2007
Replies: 6
Views: 1,033
Posted By lookof2day
Ok I didn't closely examined the mysql stuff sent by you. Your's is also running on 3306 (default port). But you've to change the password to whatever your root password is.
Forum: Java Sep 17th, 2007
Replies: 6
Views: 1,033
Posted By lookof2day
Hi,

I have made some changes to the source code and made it work. You have to do the additional CreditCard related stuff yourself. In any case feel free to drop a message. Find the source in...
Forum: Java Sep 16th, 2007
Replies: 8
Views: 1,113
Posted By lookof2day
You are making the same mistake. You are not giving the database name in your URL. Your URL should be jdbc:mysql://localhost:8084/ccbd
Forum: Java Sep 16th, 2007
Replies: 8
Views: 1,113
Posted By lookof2day
Your code doesn't seem to be correct. It should be something thing like:

package db;
import java.sql.*;
import java.sql.DriverManager;
import java.sql.Connection;
/**
*
* @author James
*/
Forum: Java Sep 16th, 2007
Replies: 8
Views: 1,113
Posted By lookof2day
Moreover, if you are creating a bean, why are you hardcoding the connection related params? Why don't you use the bean setters to initialize the values??
Forum: Java Sep 16th, 2007
Replies: 8
Views: 1,113
Posted By lookof2day
You are required to mention the database name too which u r missing. Jst add the db name as given below

try{
Class.forName("org.gjt.mm.mysql.Driver");
...
Forum: Java Sep 2nd, 2007
Replies: 8
Views: 1,394
Posted By lookof2day
Well for using Java Compiler API you can refer to the following link http://www.javabeat.net/javabeat/java6/articles/java_6_0_compiler_api_1.php.

But as you already told that you have succeeded in...
Forum: Java Sep 1st, 2007
Replies: 8
Views: 1,394
Posted By lookof2day
Well you need to properly read the introduction of Java where authors of various books have mention how to compile and run your first program in Java.

Anyway, if you have compiled the .java...
Forum: Java Aug 31st, 2007
Replies: 4
Views: 8,154
Posted By lookof2day
You are storing Images. Use BufferedInput/OutputStream. Also store the content type in a db column. And retrieve the same for setting the ContentType of jsp page. Do not do this
OutputStream outImej...
Showing results 1 to 15 of 15

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC