35,618 Topics

Member Avatar for
Member Avatar for jsully1

I am using Tomcat as a server to work on a servlet that need to access a database and I need to use CachedRowSet, but I cannot seem to connect to the database correctly. Currently I have [code] public class FaqListingServlet extends HttpServlet { private CachedRowSetImpl cachedRowSet; // set up …

Member Avatar for dickersonka
0
99
Member Avatar for IMtheBESTatJAVA

This class is moving too fast and I only know simple Java programming so far, but we're getting into multiple classes for this savings account program. If anyone can do this I will spam +rep on your for the remainder of your DaniWeb life. ---Data • the identity number for …

Member Avatar for peter_budo
-1
174
Member Avatar for tanha

Hi. I don't know whether this is the right place asking this question or no. I want to know, is it possible to use PHP code into JAVA code? if yes how?

Member Avatar for digital-ether
0
86
Member Avatar for dipsn

I want to create a Log File that will keep record of each action taken by my crawler. It will also record errors occured .I want to make it Up to date for specific period of time. Please help me for that.

Member Avatar for Ezzaral
0
57
Member Avatar for jackiejoe

Hi all, First poster here - have been reading through many of the posts but need someone to break something down for me. Have been given an assignment in college to create a Login / Register page using sql and jsp. I have done a page like this before but …

Member Avatar for peter_budo
0
66
Member Avatar for arunpawar

I'm trying to create simpel notebook for me to take down classnotes, using java swing & SQLite. This will even help me to learn more about swing & SQL . (I'm not sure whether it is possible or SQLites usage is good or not). So anyway i decided to use …

0
85
Member Avatar for MxDev

Hello Everyone, I've a problem with java & SQLServer 2005 interface, i installed a SQLServer 2005 and SP2 software bundle to enable SQLServer to run on Windows Vista, i'm using the "Windows Authentication" in SQLServer 2005 which don't need the username or password, and i've the classpath to jar archive …

Member Avatar for fuzzyduq
0
92
Member Avatar for MxDev

hi, is someone knows how to accept the entered values the table cells when i clicked a button, instead of using the setSurrenderXXXX() method.

Member Avatar for stultuske
0
26
Member Avatar for gurudattbhat

i want move date whenever one perticular field gets some value... eg. if i have field name event and date .event is a select box . when approved is moved to event box todays date should move to date field. pls send me a javascript related to this

Member Avatar for sillyboy
0
82
Member Avatar for Frank0051

Note: I'm using a JList as an audio playlist. I was wondering if there was a way to automatically update a custom ListCellRenderer. Basically I ask is because within my ListCellRenderer I have an isPlaying item that will change the color of the object in my playlist that is playing, …

Member Avatar for stultuske
0
514
Member Avatar for AceAtch

Hi all, i have to make an application that can take the user's input and finds out if the year is a leap year. The input has to be divisible by 4 and 400 but not by 100. This would then produce an answer if the user's input is true …

Member Avatar for stultuske
0
158
Member Avatar for Eckythump

Hi everyone! I am working on a course project for a software engineering class that generally deals with "Usability of APIs". I have created some metrics that I wish to run a few Java APIs through and see how they measure up. To test out my metrics (for example, on …

Member Avatar for stultuske
0
89
Member Avatar for thangarajforyou

Hello friends, I have a problem in my stock trading terminal . Its not working properly as what it should be . i think i got a problem with applet .. At the status bar,it says "Applet RTApplet started" .. how to solve this ?? can anybody help me please??

Member Avatar for stultuske
0
396
Member Avatar for vivasc

I have to create a resultset that gives results in the next way: REGION 1 COUNTRY from Region 1 Country from region 1 REGION 2 Country region 2 Country region 2 Do you have any idea about how i can do it? thanks

Member Avatar for vivasc
0
69
Member Avatar for sudon

Greetings to anyone who reads this post. Actually I needed a help. I need to write a program for the Internet Browser application but don't know where to begin at. Could anyone please help me providing the information on topics that I will have to know about. I intend to …

Member Avatar for Jimmy88
0
129
Member Avatar for Usha G

Hi I've two files for JDBC connectivity. 1)DBUtil.java - to establish DB connection using JDBC and close DB objects 2) GetEmpl.java - Uses DBUtil to connect to DB and retreives data. [code language=java] public class DBUtil { private static String dataSourceName = getJNDI(); private Connection conn = null; private PreparedStatement …

Member Avatar for Usha G
0
91
Member Avatar for adaykin

I've seen a lot of different possible ways to do so, but I was wondering what people thought the most efficient way was.

Member Avatar for adaykin
0
3K
Member Avatar for Nbutz

I have this method: [CODE] public String addBuddy(String buddyName, HashMap userList) { if(buddyList.contains(buddyName)) statusMessage = "Buddy already in list"; else if (!userList.containsKey(buddyName)) statusMessage = "No such user on server"; else buddyList.add(buddyName); statusMessage = "Buddy added"; return (statusMessage); }[/CODE] When I call this in my main how would i display the …

Member Avatar for dickersonka
0
123
Member Avatar for tech2001

Does anyone know how I can import a List into a text file? Is there any difference if I try the same process in Groovy?

Member Avatar for tech2001
0
110
Member Avatar for mrjoli021

what is wrong with this code. it does not read the input file correctly. private void readFile() { String fName = "c:\\game.txt"; ArrayList<ArrayList<String>> matrix = new ArrayList<ArrayList<String>>(); { try { File file = new File(fName); Scanner in = new Scanner(file); // for ( int i = 0; i < matrix.size(); …

Member Avatar for Ezzaral
-1
141
Member Avatar for new_2_java

Hi all, I have a simple JFrame windows with two JLabel, two JTextField and two JButton. I use SpringLayout to display controls in on the frame. But when I run the application, the windows is displayed in a very small size. Only the two buttons are displayed. But when I …

Member Avatar for BestJewSinceJC
0
236
Member Avatar for mrjoli021

why won't this work? i have a txt file that i need to read into a matrix. i want to read into a char array so i can analyze each char separate. String fname = "c:\\game.txt"; char[][] matrix = new char[4][4]; private void readFile() { try { Scanner s = …

Member Avatar for BestJewSinceJC
0
254
Member Avatar for zyaday

Does any one know in which method the cursor in the dnd class is set, while dragging an object!! thanks lotts

Member Avatar for BestJewSinceJC
0
90
Member Avatar for gangsta1903

As far as I know, exceptions that are not subclasses of runtime exception or error should be caught (handled). When a file exception occurs, it should be caught because its a subclass of exception class, but how can it be recovered? If file is not found,it sounds silly to recover …

Member Avatar for gangsta1903
0
99
Member Avatar for dav555

i need help! the following query causes an exception but it works in mysql...can someone see the error? [CODE]"select uc.id, uc.userid, uc.carid, uc.description, uc.date, uc.km, uc.price, uc.remark, y.brand, y.type from Usercar as uc join (select x.cid as cid, x.brand as brand, t.name as type from (select c.id as cid, b.name …

0
53
Member Avatar for kdhanshree

I have used MSAccess as backend. Date is stored in the Date/Time format. I have to retrieve only the date from the database using JSP code. But I get date as well as time. So plzzzzzzzzz help me in this problem. Give code if available.

Member Avatar for peter_budo
0
64
Member Avatar for larryperl

Hi Experts, i have this code -- [CODE] <%-- Document : index Created on : Nov 10, 2008, 3:25:29 PM Author : namish --%> <%@page import="java.sql.*"%> <html> <head> <title>Obtaining a Connection</title> </head> <body> <h1>This Page Obtains a Connection to a Database and executes a query</h1> <% Connection conn = null; …

Member Avatar for masijade
0
101
Member Avatar for enuff4life

I'm suppossed to create a code that user only inputs 1 and 2 OR 99 to exit the program. if user had put wrong number, then gently ask them again... However, when i put 1, it keeps displaying "you've selected 1" and never ends. Also, when i press wrong number …

Member Avatar for Drosty
0
4K
Member Avatar for enuff4life

I need to creat a method something like... when the user inputs test1 test2 haha test3 end and display that should contain exact same one as above except "end": test1 test2 haha test3 so the "end" is the keyword to finish the inputing... [CODE] String s = new String(""); String …

Member Avatar for stultuske
0
313
Member Avatar for Achupa

Hi, I have an assignment that's giving me some problem: [quote] "1.Add methods to your Human that return collections of arms and legs. implement these methods by iterating through the collection of limbs and checking what type of limb they are. Note that you will need to use the instanceOf …

Member Avatar for stultuske
0
833

The End.