35,617 Topics

Member Avatar for
Member Avatar for Lum1n0us

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 …

Member Avatar for Lum1n0us
0
694
Member Avatar for Thirusha

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 …

Member Avatar for Thirusha
0
93
Member Avatar for it2051229

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.. …

Member Avatar for it2051229
0
186
Member Avatar for staneja

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 …

Member Avatar for staneja
0
101
Member Avatar for Katherine692008

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"); …

Member Avatar for javaAddict
0
142
Member Avatar for KimJack

Does any one know of any good websites that explain hash tables in great detail? Thanks

Member Avatar for ~s.o.s~
0
93
Member Avatar for debee

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 …

Member Avatar for debee
0
400
Member Avatar for D boss

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 …

Member Avatar for D boss
0
144
Member Avatar for Neeraj Sharma

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 …

Member Avatar for Ancient Dragon
-1
106
Member Avatar for sandeep_2482

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; …

Member Avatar for panther786
0
85
Member Avatar for ajithraj

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 …

Member Avatar for Ezzaral
0
123
Member Avatar for Kusno

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 …

Member Avatar for javaAddict
0
92
Member Avatar for welbyobeng

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 …

Member Avatar for javaAddict
0
103
Member Avatar for Samudricka

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 …

Member Avatar for Samudricka
0
89
Member Avatar for dream_ankur

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. …

Member Avatar for kaushik259106
0
211
Member Avatar for ramjeev
0
58
Member Avatar for 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 …

0
68
Member Avatar for Kusno

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 [] { …

Member Avatar for Kusno
0
592
Member Avatar for jorgeflorencio

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 …

Member Avatar for jorgeflorencio
0
116
Member Avatar for Swetham5236

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.

Member Avatar for Ezzaral
0
72
Member Avatar for jimJohnson

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) …

Member Avatar for Ezzaral
0
539
Member Avatar for it2051229

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?

Member Avatar for Traicey
0
112
Member Avatar for koke

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.

Member Avatar for jwenting
0
30
Member Avatar for lazybugger

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 …

Member Avatar for jwenting
0
101
Member Avatar for Kusno

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.

Member Avatar for Ezzaral
0
81
Member Avatar for denniskhor

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 …

0
56
Member Avatar for Nithu25

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 …

Member Avatar for Nithu25
0
66
Member Avatar for eranga262154

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 = …

Member Avatar for eranga262154
0
161
Member Avatar for Dio1080

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 = …

Member Avatar for Dio1080
0
163
Member Avatar for karlee

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 …

Member Avatar for Ezzaral
0
170

The End.