36,051 Topics

Member Avatar for
Member Avatar for mabelin

hi! i am trying to add new features on a third-party webmin module vsftpd.i want to add radio buttons that enables/disables textboxes and i think i have to do this using javascript but i couldn't embed the javascript code into perl, how can i do this please help me!!

Member Avatar for KevinADC
0
88
Member Avatar for kahilw

The function below is sending audio that has been converted into bytes and then placed into a byte array, after which it is placed in the DataoutputStream and sent to a servlet. My question is How do I make a servlet that will receive this data and then turn it …

0
143
Member Avatar for exit

hey guyz... im trying to convert this formula into java code, im just having difficulty understanding it... ok it goes like this: Given loan amount (denoted by a), monthly interest rate as a decimal number (denoted by r). and monthly payment (denoted by p), the loan duration (in months) can …

Member Avatar for exit
0
226
Member Avatar for randomFIRE

I need to load an image in my program, but I keep getting this error: [code=java] C:\Documents and Settings\Remy B\Desktop\programming\Java\Java Projects\NurseGUI\GraphPanel.java:30: cannot resolve symbol symbol : variable danger location: class GraphPanel danger = getImage(getDocumentBase(), "danger.jpg"); [/code] I'm assuming this is because you can only use getDocumentBase with applets? I googled, …

Member Avatar for masijade
0
143
Member Avatar for alimirmd

Hi, My program is something like this: [code] java.util.Vector v1991=new java.util.Vector(30); int f1=1; int f2=10; v1991=mb1.Sel(f1,f2); [/code] // Here,mb1 is the bean and sel is the function where I select the // records between employee number f1 and f2 [code] if(request.getParameter("submitxyz")!=null) { f1=f1+10; f2=f2+10; v1991=mb1.Sel(f1,f2); } [/code] // submit xyz …

Member Avatar for jwenting
0
123
Member Avatar for uninvitedm

I've been using Tomcat/local machine to produce some jsp pages for uploading files. Files are selected and added to a listbox on a form, once the form is submitted - the filenames in the list are uploaded. Firstly there is a check to see if they exist. Something to the …

Member Avatar for jwenting
0
80
Member Avatar for alimirmd

Hi, I think I have already posted this,but may be in some other forum. I need to post this in JSP forum. Here,all I need is a replacement of goto statement.I want to check for a condition,and if that condition is true,I want the compilet to goto if() statement and …

Member Avatar for ~s.o.s~
0
254
Member Avatar for hegRT

Hi there, I have a class that returns a value based on a calculation with in the class 2 of the variables are called from a database, which is working however when I try to output the result on a jsp page ie. calling the property 'rating' I am told …

Member Avatar for alimirmd
0
140
Member Avatar for uninvitedm

Hi. I have a JSP page and I'm having trouble with some parameters... The page has a form containing a listbox, something like... [code]<select name="listnames" MULTIPLE>[/code] Files are browsed for with a <input type=file> object, when this is changed (onChange) the value is added to the listbox. When the form …

Member Avatar for uninvitedm
0
151
Member Avatar for Rikardsen02754

this is what I have now. I only know how to manually put them into the program. How do you read in the names? [code=language] import cs1.Keyboard; public class TestName { public static void main (String[] args) { //construct two new objects Name Name1 = new Name("Mike", "Matt", "Jones"); Name …

Member Avatar for stultuske
0
141
Member Avatar for ashitha

hi....i am write a programme for uploading a fie using multipart/form data in jsp.it's working..but the problem is i want to write the textbox values into that file.if i am changing the multipart/form data as text/plain...then the textbox value is taken...but the uplading is not working..what to do...

Member Avatar for jwenting
0
101
Member Avatar for Thendral

Hai.. I need to display one image per day from an array depending upon the day in jsp/servlet. Intially i am having 5 images in an array. Then i want to display sunday --- 1st image monday--- 2nd image tuesday -- 3rd image wednesday--4th image thursday -- 5th image friday …

Member Avatar for ~s.o.s~
0
101
Member Avatar for vicky_dev

Hi everyone... I need to build a file browser for a wireless multimedia device for a Windows PC. The objective is to be able to browse contents of the device. The device defines its own protocols for communication. I have divided the whole project into two modules: the browser and …

Member Avatar for vicky_dev
0
114
Member Avatar for MAYYOS

hi everyone, iam an IT student that tried to solve this java programming question but have many problems can anyone help me with it ?? here is the assignment .... using java programming language, write a program that will read a java code and locate all the assignment statements.from each …

Member Avatar for ~s.o.s~
0
94
Member Avatar for jetru

Its pretty standard, why the hell isnt the window showing?? Cant figure it out :( [code] import javax.swing.*; import javax.swing.text.*; import java.awt.*; import java.awt.event.*; public class GUIpart { //All ze variables required int tempboard[][]=new int[9][9]; SudokuBoard fresh= new SudokuBoard(); JFrame sudoku = new JFrame("Srik Sudoku"); JFormattedTextField guiboard[][] = new JFormattedTextField[9][9]; …

Member Avatar for jetru
0
236
Member Avatar for suigion

Hi, I am new to JSP and I am using JRun as my server. But, there is a few things I am not understand about JCS. [LIST=1] [*]When we want to create a JCS file, do we need to install any driver or software? [*]How do I call the JCS …

0
49
Member Avatar for Phaelax

Given a JTable which presents 30-50k rows, its responsiveness becomes very slow. Is there anything I can do to improve its speed? I don't see why the number of rows would affect it so much. Wouldn't it stop rendering rows once it passes the a point beyond the size of …

Member Avatar for Phaelax
0
128
Member Avatar for Fungus1487

i have a GUI application that needs to check that it is connected to a database every 30 - 60 secs. can this be done with java threads or do i need to look somewhere different. obviously i need the application to be fully useable whilst it is performing this.

Member Avatar for Fungus1487
0
79
Member Avatar for Fungus1487

right MS Access is balls compared to other DB's i know but im working on a project which already uses an Access DB. Now after writing the following eclipse gives me a lovely error which im yet to figure out. Googling has thrown up people with similiar problems but no …

Member Avatar for Fungus1487
0
134
Member Avatar for chio

i have this homework... i'm using a switch to offer some options for some sorting methods like bubbleSort, heapSort and some of them... what i want to do is that instead of writing the bubbleSort code in the case, just pull it from where it is... i don't know how …

Member Avatar for Rayhan Muktader
0
102
Member Avatar for ashitha

hello... i am write a programme for copy file and stores into each another file.like this way i want to copy multiple files.but the error null pointer is coming.. why the value is not displayed?I can't understand null pointer exception.. the code <%@ page language="java"%> <%@ page import="java.io.*"%> <%@ page …

Member Avatar for jwenting
0
313
Member Avatar for sujitdebnath

Hi, My self Sujit.I m working in Delhi NIC as a Software trainee.I m a newer in jsp and now i am working in a prject.In my project i have used ireport1.3.0.I already built the report with oracle jdbc driver and it is working.But i don't know how to use …

Member Avatar for jwenting
0
61
Member Avatar for Dhanesh.M

I want to store the results generated out of SQL query into excel file ... how do I go about doing it? help

Member Avatar for jwenting
0
102
Member Avatar for jetru

How would I go about making JTextField allow the user to input only numbers 0 - 9? I looked into JFormattedTextField but it doesnt seem to be what I need. Would I have to code it to check the users' input everytime? Is there a simpler way?

Member Avatar for jetru
0
91
Member Avatar for ashitha

i am trying for copied the file from a local system to another file.but it displays the null pointer exception.y the null pointer exception is coming.

Member Avatar for rgtaylor
0
346
Member Avatar for vinod_javas
Member Avatar for vinod_javas
0
110
Member Avatar for kkusankar

could i know how t create interface in java. explain simple example

0
74
Member Avatar for push
Member Avatar for push
0
112
Member Avatar for Monyet

[code=java] import java.util.Random; public class CardDeck { private String deck[] = new String[52]; private String shapes[] = {"heart", "club", "spade", "diamond"}; private String numbers[] = {"ace", "deuce", "three", "four", "five", "six", "seven", "eight", "nine", "ten", "jack", "queen", "king"}; public void CreateDeck() { for(int s =0; s < shapes.length; s++) { …

Member Avatar for Johnbull
0
129
Member Avatar for senthil_yoga

dear friends, i am able to get a bunch of datas from select box , but while inserting into database , only one data had been getting inserted, how to insert all the datas... i will show the code, please give ur valuable suggestions <% String s1=(String)session.getAttribute("eid"); String s3[]=request.getParameterValues("language"); int …

Member Avatar for ~s.o.s~
0
108
Member Avatar for ally1002

hello, i'm studying files and streams in java from JAVA how to program - Deitel but it's so not clear,,, is there another book or a website that explains this better? i could really really use it. thanx ally:icon_biggrin:

Member Avatar for ~s.o.s~
0
81
Member Avatar for iam_rob

Hi all, I'm currently building a login page for a JSP application, I've realised that im going to need to use sessions to recall the username on the login screen for other functionality. Unfortunately i'm very new to the whole web development approach and i've tried searching for guides on …

Member Avatar for iam_rob
0
229
Member Avatar for assoora

[COLOR=#000000]Hi all,[/COLOR] [COLOR=#000000] <br>[/COLOR] [COLOR=#000000]I've a JSP page that has 2 buttons one to bring data from database via a servlet & a java Bean, and the other is a next button.[/COLOR] [COLOR=#000000][COLOR=#000000] <br>[/COLOR] [/COLOR] [COLOR=#000000]i want to show the data from the database 4 rows per a page, i.e. …

Member Avatar for jwenting
0
142
Member Avatar for msvinaykumar

Can any one pls help me to know any real time example for Static polymorphism Dynamic polymorphism

0
54
Member Avatar for LyddieFrog

I'm currently writing a program that acts as an application for a store manager, sorting, searching, reading in, etc. products. This program has two classes: one to handle the GUI and another to handle the actual calculations. I am completely done coding this, save for one requirement: I need to …

Member Avatar for LyddieFrog
0
154
Member Avatar for kahilw

I am building a speech recognition application with j2me and I am looking for a simple open source application that I can use for the interpretation. If you know of one please help.

0
75
Member Avatar for Rikardsen02754

Need help with a program that represents names The rubric is found here: [URL]ftp://ftp.aw.com/cseng/authors/lewis/jss3/HTML_Labs/ch4/Names.html[/URL] this is what I have done right now, but my lab partner and I are STUCK, any help we receive would be appreciated [code=language] // **************************************************************** // Name.java // **************************************************************** import cs1.Keyboard; public class Name { …

Member Avatar for peter_budo
0
162
Member Avatar for hbk619

Card game (again, or still). This one's got a GUI. Problem is, the draw and stick method need the total value that is made in start. So when call draw() or stick() from the actionPerformed method it needs a value or it won't compile [COLOR=red](stick(int) in game1 cannot be applied …

Member Avatar for hbk619
0
133
Member Avatar for isitintheback

No they're not mental. Well, maybe partially. It's 1:47am I'm tired as hell, but won't rest until I complete this. I know this is right in my face, and it's something stupid but I'm just not picking it up for some reason. Here's the code: [code] if(g1 == true){ total …

Member Avatar for isitintheback
0
172
Member Avatar for jk_bscomp

Gud day everyone........I just want to ask if anyone here knows how to compile java using the terminal in ubuntu if your sourcecode has many classes.. I tried already how to compile java in terminal using ubuntu like this one javac hworld.java and this command creates Begin.class(the name of the …

Member Avatar for jwenting
0
99
Member Avatar for static

Hi, I got this code from the internet and i compiled it. But i dont understand the result. Could u explain the result ? I cant figure out the output that shows 'classname@somenumbers' . thz [code=language] public class Andy { public static final Andy nd= new Andy(); private Andy() { …

Member Avatar for isitintheback
0
80
Member Avatar for beachlounger

import javax.swing.*; import java.awt.*; import java.awt.event.*; public class Square extends JApplet { int size; public void init() { String input = JOptionPane.showInputDialog( "Enter square size:"); size = Integer.parseInt( input ); } public void squareOfCharacters( Graphics g ) { String input = JOptionPane.showInputDialog( "Enter Character:"); int y = 50, x = …

Member Avatar for Phaelax
0
91
Member Avatar for paradox814

I have been searching for a long time, and I cannot remember the name of this swing component that I attached in the image. It's the one that is captioned "Please input the...." I don't need help on how to implement it (beyond knowing the class name), I just forgot …

Member Avatar for jwenting
0
120
Member Avatar for christianthag

Hello everybody!!! I'm desperead and i want your help!!!!! I have an excersice which say's: Built a class for dates using private data.the attributes must be controlled for validness.Implement methods for print and a method which returns the difference between 2 dates.Also make a method that calculates the day of …

Member Avatar for christianthag
0
89
Member Avatar for hassanmushtaq

hi to all plz give some link of pocket pc emulator that integrate into netbean 5.5. i have download creme 4.12 which can integrate into netbean 5.5.1. but i m using Netbean 5.5. so plz tell me pocket pc emulator that integrate into neatbean 5.5 not 5.5.1. and it should …

0
70
Member Avatar for christianthag

well the problem is with the libraries.our teacher hasn't tought us how we can use them, so i find it difficult to solve the problem.i don't want complicated solutions.just something simple if it's possible.the others in my class have much more easier programmes. thanx

Member Avatar for stultuske
0
32
Member Avatar for virendra_sw

Hi. I am unable to create file object from javascript in Vista platform. ex. i am using this statement javascript var oFso = new ActiveXObject("Scripting.FileSystemObject"); after executing this and make try catch block for this i am getting this error "Automation object can't create object". I have enabled some options …

0
101
Member Avatar for rahulgupta1979

Hi all, please help me. I need to know how to create barcode labels in a desktop application and then how to print them out. If anybody can provide me with java code, that will be a great help. I have tried my hand on various progs on different forums …

Member Avatar for rahulgupta1979
0
258
Member Avatar for amherbst

I'm currently unable to access any "Windows Explorer" attached processes (My Computer, Control Panel, My Documents, etc.) Here is my HijackThis log. Any help would be greatly appreciated! Logfile of Trend Micro HijackThis v2.0.0 (BETA) Scan saved at 6:24:13 PM, on 5/7/2007 Platform: Windows XP SP2 (WinNT 5.01.2600) Boot mode: …

Member Avatar for gerbil
0
177
Member Avatar for Stoney

I can't figure out a way to have this program continue to loop if you press any number other than 1 or 2. Here's the test appilcation. [CODE]public class AnalysisTest { public static void main( String args[] ) { Analysis application = new Analysis(); // create Analysis object application.processExamResults(); // …

Member Avatar for deng_cen
0
212

The End.