35,618 Topics
![]() | |
Good day guy., just want to ask what is the equivalent function of mysql_error in jsp.... i have a program created in netbeans and in successfully build but it doesnt seem to process right .., | |
Below is part of code !!! i am new to jsp !!! it is giving error at variable temp1... help me out [CODE] try { Class.forName("com.mysql.jdbc.Driver").newInstance(); String url="jdbc:mysql://localhost/ecops"; Connection con = DriverManager.getConnection(url,"root",""); java.sql.Statement stmt = con.createStatement(); ResultSet rs=stmt.executeQuery("Select max(cid) from citizen_info"); while(rs.next()){ int temp1=rs.getInt("max(cid)"); break; } temp1=temp1++; stmt.executeUpdate("insert into citizen_info … | |
Hi, I've just uploaded a very simple web app that uses hibernate via a war file to my webserver: [URL="http://www.colin-java.co.uk/BANK"]http://www.colin-java.co.uk/BANK[/URL] The first couple of times I loaded the page above, it was fine, and it correctly displayed some of the contents of the User (MySQL) table. But now when I … | |
I had a gui set up that displayed menu items a window and some buttons at the bottom. i am having it communicate with an outside program using commands. i recieved a strange error msg after i tried to have it communicate with the other program. I know the gui … | |
Respected Fellows, i am building a chat room style application in java language, in which i am providing the functionality of text as well as audio chat. but i am feeling little bit ambiguity in audio functions, so plz help me and told me about the code which i have … | |
This is a simple server/client program. What i'm trying to do is let the server send a message to the client, the client should receive this message and print this message on screen. When i run the program the server prints "Server start" like its supposed to but nothing happens … | |
Hello.. I created a executable jar file for my java application.. but there's a problem that the images are not being displayed in application eventhough i included images in jar file along with classes. How to make them displayed from the jar file only instead of accessing them from any … | |
Using Two Classes, one main class only for calling methods in the second class {Hint: suppose you two classes Like Class A and Class B. Class A has all methods only. Class B only Calling methods} Q1- write a java program to do the following i- method for input array … | |
Hi, I have the following applet which works on my localhost server but when I upload it to my online server then the Java console spits out an error saying the following: [CODE] Exception in thread "thread applet-viewer.class-1" java.lang.NoClassDefFoundError: viewer$1 (wrong name: viewer) at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClassCond(Unknown Source) at … | |
Dear All, I have a java application which is a listener receiving data from different gps devices. The programme have been working fine. Each time I receive a string it will read process and store into a local database(mysql) and also write into a text file. Off late I notice … | |
Need help with this java program Write a Java program that maintains a price catalog for a grocery store. Each catalog entry is an object of the class Item defined exactly as shown: public class Item { private int id; private String name; private double price; public Item(int i, String … | |
hello guys! I am looking for a large upload script. A script that can carry files like a movie on 1GB up to my server. # i got the host and the required settings. But i need a script with progress bar etc. I am willing to pay for it. … | |
Warning Newbie here. I am trying to read a properties file and set the values to be used throughout the code. I can open the file and get the values. I am struggling on making the accessible for other classes/methods. Here is what I have so far: [CODE] Properties configProp … | |
Hello guys im working on a project for my class and im stuck. i dont have much of experience with linked list and my book isn't helpful with this project. Here is what the project is about: Develop an interactive program to implement basic linked list operations including: 1. Add … | |
I have this homework assignment to make a calculator using a stack and converting infix to postfix. My infix to postfix method works fine. But the other method to evaluate it works for all cases except when multiples or divisors result in double digits. My calculator does not support double … | |
What I am doing here is in one class reading in a file where the first line contains info about the number of rows and columns in a grid to be made in a GUI representation. I made the first class read in the file, and returns a value "e" … | |
hi, how to call exe file with some parameters from java and save the output of the exe file in a specified path. Please let me know immediately..its urgent!!! I am using the following code : I want to save the file after running this DPAnalysis.exe on jan.xls into my … | |
in sturts how can i use tree node im using netbeans 6.8 this is my codes: <script language="javascript"> $(document).ready(function() { $('div.view').hide(); $('div.slide').click(function() { if($(this).children('img').attr('src')=='images/plus.png') { $(this).children('img').attr('src','images/minus.png'); //$(this).removeClass(); //$(this).addClass('slide_clicked'); } else { $(this).children('img').attr('src','images/plus.png'); //$(this).removeClass(); //$(this).addClass('slide'); } $(this).next().slideToggle(50); return false; }); }); </script> | |
I am developing a software and i need to add a spider application to the software,the spider application will have to download updates and news from some designated URLS (NEWS FEED)into a database and then to one of my user interface....though i have gotten materials online for that but i … | |
I am trying to work on a project for school from home. The school computer has Oracle and I am trying to access it from home using Java/JSP. Currently I have Java SE with NetBeans installed on my home machine (Windows XP SP II), but not Tomcat or Oracle. The … | |
Hai friends, Am using swing for GUI, using gridbaglayout, for combobox width is changing by the size of items loaded, i want particular size as per above field, setprefferdsize,setmaximumsize, setminimum sizes having no effect in gridbag layout. [CODE] GridBagConstraints ComboConstraints = new GridBagConstraints(); ComboConstraints.gridy = 1; ComboConstraints.gridx = 1; ComboConstraints.anchor … | |
that is expected output is [CODE] sun mon tue wed thu fri sat 1 2 3 4 5 6 7 8 9 10 .... ... ... 29 30 31 [/CODE] my code: [CODE]static void print_31days(int a[][]){ int i=1; while(i<=31) { int some=0;//some is the startdate of the month of the … | |
hi i have a situation i have a screen (a jsp ) where i hav a textbox where am suppose to enter the number i can enter through the dedicated number keys i cannot enter the num keys from numpad what might be the problem? | |
Hello, My group and I are currently writing a hangman-like program for our class (I know hangman related questions have been asked a billion times, but bear with me). We are having issues with being able to replace our * with the correct letter (if it is correct). Here is … | |
Hi ,I am learning java ,and wondering why is this return in this method Thanks [CODE]public void updateDisplay() { if (curIndex<0 || curIndex>=appObj.array.size()) { display.setText(""); return; } display.setText( appObj.array.get(curIndex).toString()); }[/CODE] | |
can anyone help with this program I tried to get user input but everytime I change the celcius to double or move it I get an error code that says it may not have been initilized. thanks for any help. [CODE]import java.util.Scanner; class conversion{ public static void main(String args[]){ Scanner … | |
Hi, I'm using Netbeans 6.9, Glassfish v2, and Hibernate 3.2.5 (I think). I Basically have a very simple web-app that reads from a database. I can run the web-app in Netbeans locally under glassfish v2 without any problems. Now I'm trying to get the web-app to work on actual web-server … | |
This is my calculator. I am trying to add the user input option. The combo box works with the calculate button, however, the user input option does not work with the calculate button. I only get $oo as the output in the Payment text field. Could someone please give me … | |
I made a program using Sockets, pretty interesting, but I have found some "problems" that bother me, my game is threaded and in its run method it has a lot of if statements for the different behaviors when it receives a certain String from the server. Is there any other … |
The End.