35,617 Topics
![]() | |
Hi all, I'm a novice at using jsp and web design in general and have been trying to pass parameters between pages for a good few hours now but to no avail... Furthermore my classification of the problem may be inaccurate, please understand that I've only been using jsp pages … | |
Hi I have passed my json string to a jsp page, i would like to loop through this string to create a sql statement. Any ideas how i would go about looping through the json string in the jsp page? a snipet of thejson string looks like this: [CODE]{"CREATEDBYNAME":"TEST_ADMIN","NAME":"test001","TYPEID":"1900000000"}[/CODE] Any … | |
I'm creating a simple chat program using sockets... I did the program using a console and it worked in console so the next thing I did is to make a graphical user interface but whenever the program reaches the code serverSocket.accept(), the GUI just hangs and I can't do anything.. … | |
I am trying to display an Image using applet. Image is updated after every 4 seconds so i want my applet to show updated image.I am not sure where i should load the image i have tried to load it in the init() method as well as in "start" method … | |
I have an Illegal start to an expression. I'm trying to remove it so these methods can be implanted. import java.io.*; import java.text.*; public class Kudo { public static void main(String args[])throws IOException { do { System.out.println("pick from 1 of the following options"); System.out.println("1) twelve"); System.out.println("2) minMaxAvg"); System.out.println("5) to exit"); … | |
Does any one know of any good websites that explain hash tables in great detail? Thanks | |
Hi there, I got a little problem with finding the inverse of a matrix when using the BigDecimal type. I mean, I have got a method that finds the inverse of a matrix perfectly with the primitive type double. Here is the method as shown below: [code] import java.lang.*; public … | |
hello guys, i need a lil guidance here i am trying to save the output from my "SThreads" results to a txt file without deleting the previously stored data, i jst want to keep adding to the file..any suggestions that will help are appreciated.. heres the code i have done … | |
Hello, if any one want a final year project in java for submission in their college then i have one project that is developed by me and the Title is Remote Desktop Handling (Remote Desktop Capture or desktop capturing) this project can connect to the one or more client machines … | |
I tried this if i select abc i should get rrr or if i click wer i should get sky in two list boxes please help me out [code=html]<%@ page import="java.sql.*" %> <html> <script > function fun() { f1.Server.length=9; f1.Server[0].value='abc'; f1.Server[0].innerText='abc'; f1.Server[1].value='wer'; f1.Server[1].innerText='wer'; } function myCodebaseList() { if(f1.Server.value=="abc") { f1.Codebase.disabled=false; … | |
haii I have a problem while accessing a class(A) through "reflection" from class B.... i want to pass a parameter to class A... My code is like this... Method idMethod = Class.forName(ClassName).getMethod(FunctionName,null); Method getMethod = Class.forName(ClassName).getMethod("getInstance", new Class[]{Class.forName("java.lang.String")}); Object object = getMethod.invoke(Class.forName(ClassName()),new Object[]{dboption}); lists = (ArrayList)idMethod.invoke(object,personId); i will get correct … | |
Dear all, This is me again, with another question...... I have SQL query like this : SELECT CountryName, CountryID FROM MasterCountry Order By CountryName I want to set all country names as Item and countryId as Value to jComboBox. If I select jComboBox, I want to get the CountryID as … | |
I am trying to create a java password code where the password is at least 6 characters Long, at least 1 UPPERCASE, & at least 1 lowercase & at least 1 Digit.Here is an example: Passw3 Can someone help me because it is not working. Here is the code private … | |
i am trying to remova last tokenised string as i am mentioning in below sample....i have stored a data in a hashtable like this.....[ICODE]Hashtable h = new Hashtable(); h.put("111", "A/B/C/d"); h.put("222", "A/B/C/D/e"); h.put("333", "A/B/C/f"); h.put("444", "A/B/C/D/E/g"); h.put("555", "A/B/R");[/ICODE] in order to tokenise these strings and to remove last elements.......for example....here … | |
Hi, I am developing one website in which i have around 21 table in my database out of which 8 are master tables and rest are secondry tables. I want the data stored in some columns of master table to be displayed as drop down menu in my secondry table. … | |
Hi, How to create install shield (setup) rpm file in LINUX? Thanks in advance, ramjeev | |
Hi, I m trying to get the current path using the following.Its works fine (gets the current working directory) in Windows both in debug & release mode.Whereas, in LINUX ,works only in debug mode but not in release mode. i.e.,It gets home path(/root) instead current path(/root/ABC/..) while running in release(by … | |
Dear all, I'm sorry to ask you again. This code is my jTable that I copy from my Netbeans source code. tblGroupAnggaran.setModel(new javax.swing.table.DefaultTableModel( new Object [][] { {null, null}, {null, null} }, new String [] { "Kode group", "Nama group" } ) { Class[] types = new Class [] { … | |
Good morning, I'm facing dificulties to understand what i'm doing wrong! I'm trying to send the contents of a file... [TEX]SPI01 184-25-03-T-01-R.F.T.1.47e85ab1spicsv, 4609, 2008.03.25, 09:51:45 AM 184-25-03-T-01-R.F.T.1.47e8966dspicsv, 0, 2008.03.25, 14:06:38 PM 184-25-03-T-01-R.F.T.10.47e863easpicsv, 48, 2008.03.25, 10:31:06 AM 184-25-03-T-01-R.F.T.10.47e897f4spicsv, 0, 2008.03.25, 14:13:08 PM[/TEX] into a database "spimon" with a table LogSPI01 with … | |
Hi everyone..i'm working on a piece of code.. can anyone tell me what's wrong with the code.. public int move() { Random generator = new Random(); int num = 1+generator.nextInt(9); if(thisBoard.getplayer(num) == Board.NO_ONE){ return num; } } Thanks. | |
Not exactly sure what I am doing wrong...it is probably something simple and just being an idiot today but I have these two errors in my program and not sure what I am doing wrong C:\Documents and Settings\Don & Diane Kruep\My Documents\Judges.java:54: averageScores(double[]) in Judges cannot be applied to (double) … | |
am making a small program where the user browses an image then the image get's copied into some directory then i want it to be resized if the size is bigger than the required max size. ok how? | |
can anyone help me to get port no of local system .i tried to write a client server prgm in java though the prgm compiled correctly i didnt get o/p as the connection could not be established ther was a connection exception error. expecting your help. | |
Hi all, I`m doing a project on an online bulletin board. I`m not able to configure tomcat in my windows machine. And i`ve been able to compile and run servlets in command line. Its the browser where i want to see the servlets run. Any help will be appreciated. I … | |
Dear all, How do I disable all columns cell and select row value to put in textbox using Netbeans ? I have searched using google but not found any significant answer. Thanks and regards, Kusno. | |
public void actionPerformed (ActionEvent e) { String hostServer, fromEmail, fromTo, contentSubject, contentMsg; if (e.getSource()== btnSend) { hostServer=txtHost.getText(); fromEmail=txtFrom.getText(); fromTo=txtTo.getText(); contentSubject=txtSub.getText(); contentMsg=msgArea.getText(); // Establish a TCP connection with the mail server. Socket soc = new Socket("" + hostServer, 25); // Create a BufferedReader to read a line at a time. InputStream … | |
Hi, I have a problem in catching window close event in safar. If the user close the browser window without logging out, i have to invalidate the session. The problem is that , how to catch the window close event in safari? Unload cannot be used, since unload will be … | |
Hi all, I use the swing timer to move a dialog from one position to another. Here is the code I have use. [CODE="java"] // Set the main window display location public void setWindowLocation() { int screenHeight = Toolkit.getDefaultToolkit().getScreenSize().height; int screenWidth = Toolkit.getDefaultToolkit().getScreenSize().width; int frameHeight = this.getHeight(); int frameWidth = … | |
I can't figure out why it is saying (Vehicle.java:174: cannot find symbol) but there is a symbol, what is going on? [code]import java.util.Scanner; public class Vehicle{ protected int hp; protected int mileage; protected int year; public String make; public String model; Vehicle(){ hp = 0; mileage = 0; year = … | |
Everything works, except my WritetoDisk, it gives me a NullPointerException PLEASE HELP! /* * database.java * * Created on March 28, 2008 by Karlee * * This program allows the user to add/remove students' first & last name, social security number, debt, and GPA * The user can change te … |
The End.