36,051 Topics

Member Avatar for
Member Avatar for ssimkhan

I'm trying to do an assignment to implement a unix shell and run commands using java. commands include read file, copy file, remove file and find substring in a file. I have managed to create the file and try out all commands individually but I've failed to run the threads. …

Member Avatar for Ezzaral
0
221
Member Avatar for katerinaaa

Hi, I would like to help me with a problem I have. I want to make a program that tokenize the text of an input file and create a new file with all the words (one word per line). Because in the input file there are numbers, html tags like …

Member Avatar for Ezzaral
0
172
Member Avatar for saurav

Hi All, I am getting the below error when i am trying to run my app. I am sun one app server.I have deployed my classes and jsp using the deply tool. org.apache.jasper.JasperException: Unable to compile class for JSP No Java compiler was found to compile the generated source for …

Member Avatar for saurav
0
250
Member Avatar for akash_msrit

Hi friends, how to include an applet into jsp page, here i am using IBM websphere to design my GUI. here i am getting an class not found error. please tell me the procedure to include an applet into an jsp page. and where should i place the java class …

0
56
Member Avatar for Acidburn

Hello there, I've got some information which is stored in a class object, these objcts are transfered to an action in the format of a set. I'm trying to put the set into a bean into my JSP, however im not having much luck. The error is as follows: [quote]org.apache.jasper.JasperException: …

0
80
Member Avatar for Jishnu

Hi everybody, I'm new to Java language & was previously working with C++. I'm totally confused as to what is the mechanism of passing variables having 1) built-in datatypes 2) array datatypes 3) user-defined objects as datatypes to any function. Is it pass by value or reference ? If arguments …

Member Avatar for jwenting
0
118
Member Avatar for 4zlimit

I am trying to store information then retrieve it on my program. I know I have to use a class and a constructor. The problem is that my text doesn't have any good examples that I can view. I am truly lost. I am not sure 1. where to build …

Member Avatar for stultuske
0
218
Member Avatar for dirty273

I have been having alot of trouble with my computer lately. It runs so slow. I have run adaware and spybot and it had some problems but it stills has not fixed the problem. I dont have alot of info on it so should I reformat it? Here is my …

Member Avatar for murcom
0
117
Member Avatar for 4zlimit

I have been trying for two days to figure out how to use a loop in my program. It is the ever dreaded payroll program. I can't seem to get the program to start over once the program goes through each question. Can anyone point me in the right direction …

Member Avatar for 4zlimit
0
146
Member Avatar for sonu1

[COLOR=red]Hi frins[/COLOR]...i have done file uploading on client side but can any one just help me out with [COLOR=red]uploading file on server side[/COLOR]......[COLOR=red]Please [/COLOR]my deadline for project submission is approaching....I dont want it done using applet.

Member Avatar for jwenting
0
288
Member Avatar for CodeMasterFlex

I'm trying to write a Btree remove method in JAVA I'm having trouble combining my nodes and then recursing up through the parent does anyone know where I can get some info about this online?

Member Avatar for jwenting
0
228
Member Avatar for shriyash134

Hi.. I have parsed a XML file with the DOM parser. I need assistance in reading the parsed content ...and then preform actions in my java program accrodingly.. Now what i have to do is print some text depending on the value that is ther in the xml element. for …

Member Avatar for jwenting
0
107
Member Avatar for fahad

Hi, I want to sign an email through some java API using a digital signature ,IF anyone of you can help me or give me a refrence to such API, that wil be nice and as always its a bit urgent :)

Member Avatar for peter_budo
0
92
Member Avatar for JSP_javascript

In a JSP file I have this: <script language="JavaScript" src="cookies.js"> </script> <Form …….> <INPUT type="text" class="kar3" tabindex="1" MAXLENGTH="3" size="3" value='<%=fr4021a.getFrvbekd()%>' name="frvbekd" onBlur="document.forms[0].frvbekd.value=document.forms[0].frvbekd.value.t oU pperCase();document.forms[0].action='fr4021a.jsp?element=2';document.f orms[0].submit();" onFocus="displayVeldHelp('0');"> </form> How can I add the javascrit function Save_field( this) tot the element <Input ……..> or <Form …..> aanroepen. Must I use this: save_field(this); …

Member Avatar for ~s.o.s~
0
76
Member Avatar for joshSCH

I've written many java apps; however, I have never created anything that communicated with the Internet, or more specifically, web pages. How exactly would you go about doing this.. For instance, say I wanted to write a program that would log me in Daniweb, and send messages or posts to …

Member Avatar for peter_budo
0
190
Member Avatar for rinko

Hello to all users, I am using a NetBeans IDE 4.1. I want to import packages that are packed in a zip file. I open the project window, then with right click on the project icon I selected properties and then in libraray menu i added the zip file. Then, …

Member Avatar for jwenting
0
130
Member Avatar for FUNimations

Hi i'm trying to make a JFrame with 4 jlabels. So far no problems, but i want it to show the first only. 4 seconds later the second, and so on... I know how to make the labels invisible and vasiable again, i just don't know about the time delay. …

Member Avatar for IDSA
0
120
Member Avatar for javax2007

This program should draw a car, erase it, and draw it again but in a different spot on the window. I have all of this except when the car is drawn again the wheels aren't moved with the car. [code] import TurtleGraphics.StandardPen; import java.awt.Color; import TerminalIO.KeyboardReader; public class TestCar { …

0
68
Member Avatar for shila80

Hello i'm new in java and i'm sorry if my english is not very good i have a question to solve and i cann't figure it out how to solve it i have this class public class B { public boolean what(int []arr1,int[] arr2,int num) { for (int i=0;i<arr1.length;i++) for(int …

Member Avatar for Rayhan Muktader
0
103
Member Avatar for tralfas

here is the code [code]/* Chapter 6: Borders Programmer: ELIIIIIIIIIIIIIIIIIIIIIIIIII DOOOOOOOOONNNNNNNNAAAAAAAAAAAAAAAAAAAAAAAHHHHHHUUUUUUUEEEEEEEEEE Date: Filename: Borders.java Purpose: */ import java.awt.*; import java.awt.event.*; public class Borders2 extends Frame implements ActionListener, ItemListener { public Borders2() { setBackground(Color.red); //set the layout setLayout(new BorderLayout(50,50)); //Add buttons Button Red = new Button("Red"); Button Yellow = new Button("Yellow"); …

Member Avatar for Ezzaral
0
138
Member Avatar for Gorilla

My problem is: [LIST] [*]I've try many times with DataOutputStream, FileWriter but I cannot write intergers into a file as I wanted.[/LIST][LIST] [*]I seemed to succeed but after writing them into a file, when I open it with notepad, I can read it. They all tuned out to many strange …

Member Avatar for Gorilla
0
102
Member Avatar for Jishnu

Hello every-one, I am new to java. Can any-one suggest some basic-level yet solid book for transition from c++ to java ?

Member Avatar for leehyokug
0
98
Member Avatar for rugae

I was wondering if it's possible to change or add values to enum types? Such as changing the string "This is a msg" or add additional value to the type test. May I have some tips? [CODE] public enum Test { VALUE("This is a msg"); private String x; Test (String …

Member Avatar for dwks
0
127
Member Avatar for akash_msrit

hi this akash i have created a frame, in that frame i am inputing some text fields like txt1,txt2....., now i want to accept these inputs into mysql query. please suggest me how i can do this. this is the query select * from cartable where owner = 'akash' and …

Member Avatar for jwenting
0
58
Member Avatar for mritunjay0506

I am trying to store the value in a variable and after referesh the page the old variable remain same is it possible like :I have stored 1,2,3,4,5 in a option box.and max % is selected by default I want if i select 3 and then referesh the page then …

Member Avatar for jwenting
-1
60
Member Avatar for shriyash134

HI there, The program which I am working on involves[B] reading XML document and then depending on the input data save the output files(text) in different folders[/B]...can any body tell me where do i find tutorials which can help me in doing this.... I need help .. waiting for response …

Member Avatar for Ezzaral
0
195
Member Avatar for aneetasuneel
Member Avatar for vinod_javas
0
86
Member Avatar for akash_msrit

hi this is Akash , i need help in adding java code to jsp. i have a class called JTree , which displays a tree structure menu. now i want to include this code in jsp. i am using websphere to design my GUI. i trying this but i am …

Member Avatar for peter_budo
0
91
Member Avatar for mahajanrahuld

hi i need to connect the jsp page with database using hibernate framwork how to possible ? can any one have the example or source code for this it's urgent my configration is following hibernate+jsp+netbean5.0+tomacat server+postgreSQL database [COLOR=red][B][U]HELP ME URGENT PLZ[/U][/B][/COLOR]

Member Avatar for jwenting
0
65
Member Avatar for sportbear

I'm just trying to make a four-player card dealing game! But my problem is that my deck is eternal! I wan't it to deal 52 cards. So 13 card per person! The name of my persons are JLabel1,2,3,4! Can someone help me out! I'm working with Blue J and I …

Member Avatar for iamthwee
1
145
Member Avatar for Jishnu
Member Avatar for iamthwee
0
69
Member Avatar for qaizaar

I have to make a simple JSP page that takes 2 inputs as file names and then when you hit submit these files a passed to another method that takes 2 file inputs. i just wante to know how to do this in the second page. the first page is …

Member Avatar for ~s.o.s~
0
106
Member Avatar for san_fran_crisko

Hello, I'm trying to add a JMenuBar to a JFrame and having alot of difficulties with it. I've searched the net and gone through a book I have looking for a solution to the problem, but everywhere tells me I'm doing it right, yet I've no JMenuBar at the top …

Member Avatar for san_fran_crisko
0
164
Member Avatar for a1i22000

Hi whom it may concern How can i write my first java application in windows os? 1)what do I needs to install before start coding? 2)what environment(notepad,wordpad,..)do you offer me to try in? 3)what ever you think may help me to start java programming? [System.out.println("Thankyou so much");]

Member Avatar for jwenting
0
119
Member Avatar for sarath.koiloth

Hi Freinds, I am learning Ant Tool,I developed a java program which is using an external jar file.I had set it in the classpath.I can run that program from my command line,but not able to run using ant.saying that it cannot find a class which is in that jar.i had …

Member Avatar for jwenting
0
101
Member Avatar for student_help

Can someone please advise me. I have a program which is who interface is JSP. It is running Java in the background. I have a timeout session which works. The problem starts when you log back in. Some of the files are set up with authorized access when created, howver …

Member Avatar for ~s.o.s~
0
66
Member Avatar for megha777

hi,sir pls help me to send email using jsp, i see many code thorugh net but its nt working, so pls tell me what r u the requirement files means jar files or wat to add to send emails ,pls give me any code that can very helpful to me, …

Member Avatar for peter_budo
0
84
Member Avatar for san_fran_crisko

Hi, I am designing a puzzle game and I am trying to use the data that comes back from "getLocation()". It tells me the x, y co-ordinates of a button on the screen but so far I cannot export the x, y data to a String or int. There is …

Member Avatar for san_fran_crisko
0
170
Member Avatar for muthumari

Hi , i have some elements in one form(sample.jsp).I want to insert that fields into database.But i know abt, the insertion of form values in to the database using next page(next page contains database connection) .But i don't know how do write the database connection within the same page(sample.jsp). Anyone …

Member Avatar for peter_budo
0
170
Member Avatar for akash_msrit

hi this is akash i am doing project in java, i have some code in CGI , now i have to transfer that code in to javascript, can any one help me .it is very urget,please help me.

Member Avatar for dogma
0
84
Member Avatar for Acidburn
Member Avatar for Mr.UNOwen

Hello, So I created a simple game with the use of Applet and I noticed I would get lines going through it as repaint is called. Is there a way to make it work smoother or a way to have layered images so that only a few images have to …

Member Avatar for ~s.o.s~
0
103
Member Avatar for Acidburn

Hello guys, Firstly I want to thank you for taking time reading my post. Secondly I'll explain my problem... I've got some DAO's (Data Access Objects) These talk to the database and are soley responsible for transfering data too and from the database. I've thought for demonstration purposes it would …

Member Avatar for ~s.o.s~
0
71
Member Avatar for Acidburn

Hello guys , I'll start with my code: [code] package testapplication; import java.util.HashMap; public class Main { /** Creates a new instance of Main */ public Main() { } /** * @param args the command line arguments */ public static void main(String[] args) { // TODO code application logic here …

Member Avatar for ~s.o.s~
0
106
Member Avatar for suigion

Hi All, I want to develope database-driven application using JSP and JRun as the server. THe thing I want to know is how do I connect to the MSSQL Server 2000 database using JSP? What type of JDBC? And how to install the JDBC driver? Thanks in advance... :)

Member Avatar for alimirmd
0
164
Member Avatar for siva gouru

currently iam doing the project in java with jsp,javascrpit and html ,oracle backend the problem is we cal as combo box (or) drop down list all these are 5 lists .in that if u select any one item in the first drop down list some other names are there those …

Member Avatar for bosko
0
85
Member Avatar for Stoney

I'm trying to get the minimum of 3 floating numbers. I believe my minimum3 method is alright but I think the problem is getting 3 numbers that are being entered in the main method. [CODE]public class Methods1 { public static void main(String [] args) { float x = input.nextFloat(); float …

Member Avatar for masijade
0
76
Member Avatar for randomFIRE

Hi. I'm trying to learn about using threads in java, so I decided to try to make a new thread in which an alarm rings while the rest of the program continues. My program is supposed to go about it's business graphing some data, and then if the data exceeds …

Member Avatar for masijade
0
147
Member Avatar for apontutul

hi friends.....I created a folder under webapps put 2 files 1html & 1jsp. though the html one is running the jsp one isn't. the error message: [B]HTTP Status 404 - /helloJSP/hello.jsp type Status report message /helloJSP/hello.jsp description The requested resource (/helloJSP/hello.jsp) is not available. I've set the JAVA_HOME (environment variable>user …

Member Avatar for ~s.o.s~
0
217
Member Avatar for uninvitedm

Hiya.. i posted before but heres the prob in more detail.. I'm making a JSP page where (ideally) you select files to upload, each selected file is added to a listbox. The form is submit, (along with some other parameters), and the files are uploaded. They arent uploaded (written) tradionally …

Member Avatar for peter_budo
0
75

The End.