36,051 Topics

Member Avatar for
Member Avatar for jahanruhi3@gmai

can any one tell me the procedure how to search a file from the database using jsp

Member Avatar for peter_budo
0
177
Member Avatar for almefab

Hi all, i have a variable in a JFRAME that i need to use in a JPANEL. How can i do that. Example: MainProgram that launches Java Application. Window1 that is a JFRAME Window2 that is a JPANEL In Window1 I have a variable declared example int X = 0; …

Member Avatar for almefab
0
990
Member Avatar for dbdavis

Sorry for not posting this when I enrolled last month or so; I was really in a hurry. About me: While I am new to DW, I'm not new to computing: I am retired from a career in computer programming. I loved it from the first moment at IBM when …

Member Avatar for AndreRet
0
259
Member Avatar for coervivekmca
Member Avatar for Tbusuk

Hi, what is the meaning of the code shown below? <jsp:include page="/exec/employeesList"/> Because usually include is like this include("a.php"), this means the page include the a.php page. But the jsp include is different, it doesn't show any extension like .jsp or .jav or .html. so where does it include? is …

Member Avatar for coervivekmca
0
160
Member Avatar for ypks_destiny

In a html if i press india i should get its states, and if i press australia i should get its states -It should be in drop down list only can some one please help me out

Member Avatar for ypks_destiny
0
2K
Member Avatar for jackabascal

I actually do not program in Java, I'm more of a C# and C++ person myself. But i do have a question regarding executable jar files. I have an executable .jar file that I would like to run, however can not. A console keeps flashing on the screen and dissapearing, …

Member Avatar for masijade
0
149
Member Avatar for Gsterminator

How do i call back a variable in void method into the main method?? [CODE]public void multiply (int x) { Vector3 v3 = new Vector3(num1*x,num2*x,num3*x); }[/CODE]

Member Avatar for Gsterminator
0
173
Member Avatar for vigneswaranm

Hi guys..., I want to know howmany devices connected with server..,And I want to find it by java code..Can you please help me to write a code for the same.

0
48
Member Avatar for lashbandi

this was the instructions... "Write a short Java program that takes two arrays a and b of length n storing int values, and return the dot product of a and b. That is, it returns an array c of length n such that c[i] = a[i] . b[i], for i …

Member Avatar for DarkLightning7
0
768
Member Avatar for lauzza.vauzza

Hey need to create tic tac toe but which reads from tester file - after the right direction to go from here, on how to implement it [CODE]import java.util.*; public class TicTacToe { public TicTacToe() { Scanner input = new Scanner(System.in); char[][] board = new char[3][3]; // Sets up game …

Member Avatar for DarkLightning7
0
160
Member Avatar for rusl07cl08

These are the problems: Ground Beef Value Calculator Different packages of ground beef have different percentages of fat and different costs per pound. Write a program that asks the user for: 1. The price per pound of package "A" 2. The percent lean in package "A" 3. The price per …

Member Avatar for DarkLightning7
0
2K
Member Avatar for simpleonline123

Need help with logging into a particular website using the GetElementby command As far as the username/password it seems to be working find but there isn't an ID or Tag for me to use in my script to click on this particular button called "submit". Looks like the page is …

0
66
Member Avatar for saveme123

I need help with my code for computers, our final assignment is to make a simple game, so I decided to do Hangman. This assignment is worth 20% of my final mark due on Monday so if anybody could help me with it I would really appreciate it. (I'm still …

Member Avatar for saveme123
0
203
Member Avatar for Sonny101

Hi, Sorry for my ignorance but the problem I have is probably so simple that I cannot seem to find an answer for it. I am just learning about the Java.Util Package but in following my course module I am getting an error. here is the simple code : [CODE]import …

Member Avatar for Sonny101
0
138
Member Avatar for LianaN

Hi! I would like to create a button for deleting all JLabel components on JDesktopPane. My code is shown below. The error message is shown below the code. For instance, let's say there are 3 JLabel components (the 4th is not JLabel). In this case, only 2 of 3 JLabel …

Member Avatar for LianaN
0
130
Member Avatar for muloki

I'm writing an application using jdbc connection to access and want display a sql query using the number of rows found to declare an array of JTextFields. Not only does nothing display but also getting an Error: java.lang.ArrayIndexOutOfBoundsException: 00. Can anyone help please. [CODE] private void selItActionPerformed(java.awt.event.ActionEvent evt) { // …

Member Avatar for vealparry
0
178
Member Avatar for curbster

Hi, I'm in my first Java class and I am working on a problem that I could solve if I just figure out how to convert a char to an int. i.e. convert A to its letter equivalent with a function like this: [CODE] intLetter = charLetter.parseInt(); [/CODE] am I …

Member Avatar for curbster
0
1K
Member Avatar for muloki

I,ve set up a JTable and want to populate it from an Access database useing jdbc odbc. The data returned is placed into an array but my problem is how to use the array results with... jTable1.setModel(new javax.swing.table.DefaultTableModel( new Object [][] { {list[0], list[1], list[2], list[3], list[4]}, }, new String …

Member Avatar for vealparry
0
4K
Member Avatar for forfreaks

[code] class trans { int m,n,l=0,k=-1,total,no=0; void det(int t) { total=t; } char[][] s5=new char[total][total]; char[][] s6=new char[total][total]; //rot90 public int rot90 (char[][] s2,char[][] s3) { for( m=0;m<total;m++) {l=0; for(n=total-1;n>=0;n--) { //[B][COLOR="Red"]line33[/COLOR][/B] s5[m][l]=s2[n][m]; [COLOR="Red"][B]\\Exception in thread "main" \\java.lang.ArrayIndexOutOfBoundsException: 0 \\at trans.rot90(gift1.java:33) \\at gift1.main(gift1.java:208)[/B] [/COLOR] l++; } } if(s5==s3) { return …

Member Avatar for vealparry
0
111
Member Avatar for Neversleepin

Hi, i know how to read specific line form a text file but if we want to delete lines by specifying the line number. here is the code, but it's not working: i want to delete line 1 and 2 of the text file. [CODE]import java.io.*; public class ReadSpecificLine { …

Member Avatar for Neversleepin
0
9K
Member Avatar for anuj_sharma

Hi, Can anyone tell me what is the problem with the below code: [CODE] String eleSrc=srcEle.toString(); String srcdata_list[]=eleSrc.split("-"); String eleDest=destEle.toString(); String destdata_list[]=eleDest.split("-"); int found=0; for(int i=0;i<srcdata_list.length;i++) { for(int j=0;j<destdata_list.length;i++) { if(srcdata_list[i].equals(destdata_list[j])) { found++; System.out.println("matches"); System.out.println("after matches"); break; } else { System.out.println("in else"); } } System.out.println("out of first for lopp"); if(found==0) …

Member Avatar for anuj_sharma
0
340
Member Avatar for mith_cool

I have created a jsp page with some credentials of the user and this time i dont want it to pass to the validation form servlet through doGet() but through doPost(). I am facing some problem while doing this validation of none of the field could be left blank. [CODE] …

Member Avatar for mith_cool
0
511
Member Avatar for i4ba1

Hai all, I'm being create a dictionary. In the dictionary have feature search the word. if user entering the character "g" the word view in JList will show the word begin with "g". i try this first using Linier Search, it found the word, but linier. i mean if i …

Member Avatar for i4ba1
0
1K
Member Avatar for Deepak Agarwal

Hi, I am working on a java servlet (abc.java) in Web Application Project in Eclipse. The code works fine and the server is running on [url]http://localhost:8080/[/url] . But when I connect to this localhost server from other C# application using [url]http://localhost:8080/abc[/url] It says "Error 404 and no file found : …

Member Avatar for masijade
0
114
Member Avatar for register86

Hi all, I installed jdk 6_23 and set the path of jdk in system path properly. And then I could run any jar file by command line, but when i double-clicked on the jar file, a message of Java Virtual Machine Launcher occured : " could not find the main …

Member Avatar for kvprajapati
0
270
Member Avatar for AA54377

Hi all, I need help with the save button of my java inventory program part 6. It compiles and runs but then it get the error message stating C:\data\inventory.dat"(access denied) and then general output field shows: [code=text] at java.awt.EventQueue.dispatchEvent(EventQueue.java:599) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161) at …

0
115
Member Avatar for mayank.dyl

i have synched tomcat 6.0 with it but how to create public folder and lib,web-inf...etc using ECLIPSE....i mean where is directory structure and how to put things in it.?

Member Avatar for kvprajapati
0
82
Member Avatar for Metal1616

I created a program that will display a question, then the user has to answer the question within a time limit. I want to make it so for long questions, the question will just go to the next line instead of cutting off. Is there another way to display the …

Member Avatar for Metal1616
0
121
Member Avatar for AaronLLF

So, I'm making a new game in Java. I am trying to add networking code. I'm using the code at [url]http://download.oracle.com/javase/tutorial/networking/sockets/clientServer.html[/url] but I want it so that when the player moves in my game, it updates their location in the server and then updates it to everyone on the server …

0
85
Member Avatar for javinpaul

Hi Guys, I am a relative new member in this forum , My name is Javin Paul and I am Java programmer. I have question related to garbage collection in Java Does garbage collection occurs in PERM Area of Java Heap ? As per my knowledge PERM area is used …

Member Avatar for javinpaul
2
158
Member Avatar for draven07

...i'am quite confuse about event-driven programming in java applet... ....i have been using a "TextField" for creating an applet that would require a password ... ...my goal is to make an error_message saying "SystemBlocked" whenever I entered 3 wrong passwords and would terminate the applet at the same time... ...how …

Member Avatar for draven07
0
62
Member Avatar for LianaN

Hi! I would like to make transparent my two JScrollPane components. Could please someone explain me why the code [ICODE] scrollPane1.setOpaque(false); scrollPane2.setOpaque(false); imagePanel.setOpaque(false); beads.setOpaque(false);[/ICODE] does not work? Thanks! [CODE] public SelectablePanel() { beads = new BeadsCollection(NR_OF_BEADS); imagePanel = new ImageSelectionPanel(0, NR_OF_BEADS_SIZE); p = new Point(); JInternalFrame jif = new JInternalFrame("Title", …

Member Avatar for LianaN
0
278
Member Avatar for Hakoo

Hello, I am new in J2ME, I have created one application which stores Name, Qty, Price and Total. I can manipulate RecordStore in this application. Now, I want to send this data to some other Remote Place, i.e server or through SMS. Is there any way to do this?

Member Avatar for peter_budo
0
122
Member Avatar for vin24

Hello guys! I just want to ask if how can I use java file reader? I badly need this for my program... Thank you in advance! :)

Member Avatar for JamesCherrill
0
150
Member Avatar for system analysis

- (The [COLOR="Red"]Fan[/COLOR] class) Design a class named [COLOR="red"]Fan[/COLOR] to represent a fan. The class contains: 1. Three constants named SLOW, MEDIUM, and FAST with values 1, 2, and 3 to denote the fan speed. 2. An int data field named speed that specifies the speed of the fan (default …

Member Avatar for javaAddict
-1
1K
Member Avatar for techalerts

hi frnds, i completed mca 5th semister. now i want to do a project on java. could any one help me what are the current best projects on java?

Member Avatar for codewall
0
48
Member Avatar for Dharni.Gurnani

I am currently working on a project in which I need to check the similarity between images... I have started of trying the cosine similarity.. the formula available online needed to be modified since it was only for text and in images the 1st pixel of one image will have …

Member Avatar for JamesCherrill
0
299
Member Avatar for rusl07cl08

Tires don't have to have exactly the same pressure. Modify the program for exercise 2 so that the front tires can be within 3 psi of each other, and the rear tires can be within 3 psi of each other. Input right front pressure 35 Input left front pressure 37 …

Member Avatar for JamesCherrill
0
118
Member Avatar for amr321

[B]Hi everyone I would like to take your advice about my situation This is my second year in university and my major is computer science and my programming skill is very weak:'( and I finish data structure by Miracle :icon_cry:and until now I can’t solve any assignment by myself:icon_sad:, so …

Member Avatar for rusl07cl08
-1
648
Member Avatar for sasi_88

if i want two submit buttons ok1 and ok2 if the user click ok1 control goes with 1.jsp or click ok2 control goes with 2.jsp but ok2 is not working. is there any mistake two submit buttons then what are methods to resolve my code is here [code=html]<html> <head> <meta …

Member Avatar for rakhi4110
0
194
Member Avatar for Coyboss

Hey all, I have been working with this for about 4 days and pulling my hair out. I can't figure out why I am getting the error messages in my code, when I compile. Here is my code. [CODE]// Week3 Dwight Welsh import java.text.DecimalFormat; public class Mortgage { public static …

Member Avatar for Coyboss
0
251
Member Avatar for Darren76

/**This program is a simple number guessing game using the random class */ import java.util.Scanner; import java.util.Random; public class numGuessing { public static void main(String[] args) { Scanner input = new Scanner(System.in); Random rndm = new Random(); int num = rndm.nextInt(50); int numGuess; System.out.println("Please try to guess a number 1 …

Member Avatar for Darren76
0
240
Member Avatar for k4it0xtr3me

hi, I am new here... I am currently facing some trouble in pulling out the Attribute as in its types and names. My program purpose is to read the Java file and display all the String into tokens. Then, it must be able to pull out the class name, attribute …

Member Avatar for k4it0xtr3me
0
149
Member Avatar for Neversleepin

Hello every one, is it possible to get files from a file list display with System.out.println. I mean for example if you code something like: System.out.println("file.getName"); Then you get a file list. After how could we use this file list to for example copy or move or anything else with …

Member Avatar for Neversleepin
0
121
Member Avatar for plasticfood

ok so the program gets a list of numbers, and it counts how many times a number is entered. [CODE]for(int i = 0; i < numList.size(); i++){ for(int j = numList.size() - 1; j > i; j--){ if(numList.get(i) == numList.get(j)){ count++; numList.remove(j); } } System.out.println(numList.get(i) +" " + count); count …

Member Avatar for plasticfood
0
107
Member Avatar for hellotata

I am currently working on this graph "thingy" were I am told to produce 4 types of graphs. [LIST] [*]y=x2 [*]y=x3 [*]y=x*sin(x) [*]y=x*cos(10*x) [/LIST] Now basically, I have the GUI/Interface ready. I seem to have a problem linking the [B]y=x*sin(x)[/B] button in the PlottingWindow class to the PlottingPanel where it …

Member Avatar for hellotata
0
777
Member Avatar for ajst

Hi guys and girls(?), I have created a 2d turn based board game game like chess, in java but my problem is that I wanna add some kind of walk through or tutorial system to explain the controls and features of the game. I was wondering if anyone had any …

Member Avatar for jon.kiparsky
0
129
Member Avatar for varia

Hi, I need your help... I need to get the value selected by a user from the HTML page and pass this value into my servlet program for processing. So I did something like this: Part of my jsp code: [CODE] <select name="tool" id="tool"> <option value=kim>KIM</option> <option value=ontomat>Ontomat Annotizer</option> <option …

Member Avatar for rakhi4110
0
92
Member Avatar for Translucentbill

So I have started learning Java for my senior project at school and I would really like to make a tower defense game as my project. I have been looking for tutorials that would help but I am having trouble finding some. I have been using [url]www.javacoffeebreak.com[/url] and I've been …

Member Avatar for jon.kiparsky
0
3K

The End.