36,051 Topics
![]() | |
iam new to ajax i did some examples in jsp using Ajax really its very nice now i want to put Pop-up ballon i think using this without put view button in my screen, to view the particular item details within page plzz provide me its urgen for me i … | |
Hi All, I am using the following codeline to run a cmd from cmd prompt. Process p1 = Runtime.getRuntime().exec("cmd.exe /k start vgnimport.... I have my structure like Class A B importcmd = new B(); importcmd.startimp(); sysout("out of cmd prompt"); Class B startimport() { Process p1 = Runtime.getRuntime().exec("cmd.exe /k start vgnimport.... … | |
I have several breakpoints and the debug goes in the first one, skips the next 2, then jumps directly on the last one, as if the 2 in between don't even exist. And this happened recently, with no big changes in the code and I've never experienced anything like it. … | |
In my website, the pages where i allow the users to update their details(such as - change password and update contact details), i want to open them in new window, rather than the current one. Can you please tell me what should be the code for it? What i know … | |
i am trying to make a program in c# based off another program that was written in java i would like to know if anyone nows what syntax you use to link other source files to your program. in other words the c# equivalent to java's [b]import[/b] code. | |
Hey, I was wondering if you guys could help me with a homework problem that I have. I need to input data in from a text file and then put that data into two separate arrays. I believe I have that somewhat done now, but I will need to manipulate … | |
Could someone please help me with finding the greatest common factor(GCF)? i need to know how to put it into code using a loop. Thank you for any help that you can give me! | |
Hi all, I am doing an application that involves server and client side, the server side is responsible for storing, and retrieving the files, with some little manipulations. The UTF-8 encoding is being used as our default charset, and the data display correct on any java client, like eclipse, or … | |
Can someone tell me how to correct this? [CODE]for(int i = 0; i < 7; i ++) { if(team.group.toys[i].getName().equalsIgnoreCase(name ) { team.insert(team.group.toys[i].getDescrip()); System.out.println("OK"); } } System.out.println("Is not included.");[/CODE] This is so simple that I cannot figure out what the problem is. I need "OK" to print if the getName() equals … | |
Hi everyone, Could any one help me with this code, please. I do not know why it's giving this kind of error. The code, which is a part of a lager program, is as given below. I will try explaining what each variables represent. public void backwardComputation(int m, Double desiredOutput[][]) … | |
I'm trying to create a burst on the screen by running through an image array. As a test I created 3 gif images named One, Two, and Three (each one displays the associated number). The problem is, there is no way to view each image in the array; the only … | |
Hi i have made a student and cohrt collection class program The compiler give me error: illegal start of expression line 46 The cohort class file: import java.util.*; public class Cohort { private static int groupSize = 15; private HashSet aCohort; public Cohort() { aCohort = new HashSet(); } public … | |
i am doing an acadamic java project by using html, servlets. in html form tag what is the url that i have to give in post attribute. and i am using access as my database. it is giving that httpserver error that given table is not found. will u please … | |
Hello All, I am working with an array of objects that contains names and descriptions. For example: Car : A blue jetta Pet : A small dog . . . My question is since it is an array of objects, how can I extract just the name "Car" or just … | |
Hi I m developing program whose output is like a table which i want to get display into an excel sheet.. Wheather it is possible to display the program output into the excel sheet.. plz reply.. Thnaks.. | |
Hi, I want to run a .jar application in the client machine(Its a web application).But I think we need to install jdk for running a .jar application. Is there any way to run a .jar application without installing jdk?(By keeping some dll or some necessary files only) i want to … | |
I've read quite a few of the posts on this forum and others about similar problems but i can still not fix this annoying prob! It only started a few weeks ago I think, but can't think what changes I made, if any! :confused: I click on a link and … | |
Hi guys :) Well I have this project in which we have to build an application that tack the instructors names, the sections, the rooms, and the classes times to generate a schedule for the next semester. But am really new in this field and I have been searching for … | |
How can I read something from command prompt using java. | |
i can get the class working, but how should i order the array by the highest to lowest word count. is it possible to order it in alphabetical order if all it prints is multiple of Xs.... [CODE]import java.io.File; import java.io.FileNotFoundException; import java.io.FileWriter; import java.io.IOException; import java.io.Writer; import java.lang.reflect.Array; import … | |
guys i m really havin hard time to establish connection bet jsp n mysql...give me some tips..i ve done all the procedures required for that n i couldn execute the followin code [code=html]<%@ page import="java.sql.*" %> <% String username="mahesh"; String password="mahesh"; String connectionURL = "jdbc:mysql://localhost:3306/mahesh"; Connection connection = null; //Statement … | |
Hi to all, Can someone tell me how to add tab pages to a JSP. I would like to have different input fields in each tab page. When I press submit, all input fields (in all tab pages) are sent to the server and not only the ones in the … | |
I have been helped here once before. I got the info I needed to solve my issues. I'm a beginner and this online class I'm taking is killing me. This assignment involves the use of loops, most likely do-while, and possibly others. Essentially the program is to have the user … | |
Hello, I did a pagerank application but unfortunately it does not posting the url to the server. Can anyone have a look to my code and tell me what im missing ? ! Thanks in advance! [CODE=java] import java.io.BufferedReader; import java.io.DataOutputStream; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStreamReader; import java.io.ObjectOutputStream; import … | |
Hey, I'm new here (as you can tell), and I'm in need of some help.. I need to make a interest calculator that displays the years, beginning amount of each year, the interest of each year, and the end amount of each year. I have the GUI all set up … | |
I just want to know why java does not support operator overloading? | |
I am building a class that gets a proper fraction converts it to improper and does things like add, multiply... I have no way of testing this since they all have methods. Could someone tell me if this works. Thanks. [ICODE] // THIS CLASS DECLARES PRIVATE VARIABLES. public class Fraction … | |
Can anyone help me with prepared statement? I want to retrieve data by using join tables with prepared statement. Even an example will do. Thanks | |
Hi all , I'm new to Networking programming in JAVA .I want to send messages across hosts which are in the same Domain without using any Server program . I'm not clear whether to use UDP or TCP . Give me some ideas and links which are useful to accomplish … | |
I have installed tomcat 5.0.30 and binded to port 8080. But whenever I started Tomcat , got the following error : LifecycleException: Protocol handler start failed:java.net.BindException: Address already in use:JVM_Bind:8080 But no other process or program is not running that time. Also when trying with url [url]http://localhost:8080[/url] , it asks … | |
Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String index out of range: 10 at java.lang.String.substring(String.java:1935) at exceptionprac.Excp.main(Excp.java:22) Java Result: 1 I just want to know what is the meaning of Java Result: 1 | |
We are supposed to make a frame eventually that shows different buttons corresponding to methods, allowing for someone to switch, add, remove, find (using object name find number in array), and get(use number position in array to find other pieces of data), and readData, allowing someone to read data from … | |
hey guys and gals, newb back again with a little request from the Java Gods. in line 31 i've got an error saying "cannot find symbol" [code]NextRecord record = new NextRecord();[/code] [B]i've got 2![/B] count 'em 2 Java books and i'm still stuck...Help? [code] import java.io.File; import java.io.FileNotFoundException; import java.lang.IllegalStateException; … | |
i want to synchronize punjabi text in picture formate with audio already downloaded.can u help me please. | |
I am going to develop a J2ME application, where the application gets the complete dat from an XML file, for this have used kxml parser. And the parsing already done, but the problem arise after parsing, i.e., When I get a String of Unicode for a particular Word, then the … | |
Hi, Is there a way of timing how long it takes between a piece of code executing to when it finishes and then displaying this time? I would like to display a clock which begins timing when a program starts running and stops when it finishes. Thanks | |
not sure how this site works... I'm stuck with a run error (Array out of bound exception 4)and can't figure it out, i'm new to the world of Java programming, so I'm hoping I'm not asking anything dump! pasted my code here: /* Purpose: To develop a program to accept … | |
Hey I've been writing this hangman code for last week in college. and nearly got it finished but am after running into a problem. i want to run two different button handlers but can not figure out how to?. one for the letter a to z which i have working … | |
i hope you can solve this problem during 1 hour.:P Answer all of the following questions. a. Create a Student class that has: i. Two instance variables, name and id. ii. Two constructors with the following headers : public Student(int id, String name) public Student(int id) iii. Two get (accessor) … | |
Hi, Im currently writing some code to search an array for a key, though am having problems as the if loop I've got stops after one key has been found. the problem is that my array has multiple keys, so it needs to carry on looking! i know that it's … | |
am student of computer science. i take my final year project this semester and i do not have any project title. i will like to do some web-based system.Can you give me some title? | |
Can anyone help me .iam doing a distributed real-time banking application.I need ides on desinging the module. i plan to use sockets in the implemntation of the system | |
I am a beginner on Data Structures Here is my code, I seem not to be able to figure out how to delete a little node. Someone help me out please :D Here all the methods needed to delete a node. [code] public void eraseTree() { root = null; } … | |
I got a problem in order to access the value for my radio button. I'm developing web application system that allow user to book something. so, i display the detail in list.But, i don't have any idea how to access the value.. this is the coding [code]<%@page import="java.util.*" %> <%@page … | |
![]() | Hello, kind sirs. I am making a JUnit test case to test one of my classes. Short description of the tested class: it takes two integers - one of them is "minLen", which is entered by the user. After that the "main" method calls the "talk" method, which sets the … |
I Would like to create a High Score For a Game in jave Called Jetman. i have created a class in java called Score and Score list to display the score but i do not know how to create a highscore using an Array List the Score Class is package … | |
package jetman; import java.io.FileWriter; import java.io.IOException; import java.io.PrintWriter; import java.util.*; //import java.util.Arrays.sort(); public class scoreList { String filePath = "Score.txt"; private ArrayList<Score> scoreArrayList = new ArrayList<Score>(); /** Creates a new instance of scoreList */ public scoreList() { FileWriter writer = null; try { writer = new FileWriter("Scores.txt"); } catch (IOException … | |
Hi, I have a JTable (call it Log Table) in my code showing Records & below that I have other tables showing some statistics based on new Record Inserted. The Log Table contains 21 columns. Each time a new record fetched is inserted into Log Table as it is & … | |
Dear Sir, Can I use SQL query with in the Jave script being used in ASP page. If i can please reffer me some samples code. Actually I have made a form in ASP code it contain a combobox with items from the database. on the selection of any item … |
The End.