36,051 Topics

Member Avatar for
Member Avatar for pokercoder

plzzz som1 help me vid this...I m a new bee in advance java field. I have mapped my sql exception in web.xml and display an error.jsp page. This works with mozilla but not vid IE. What should i do??

0
39
Member Avatar for ankit7

hiii, i hav made a servlet and connect it to database through oracle. But while running it i m encountering this error "Couldn't load database driver: oracle.jdbc.driver.OracleDriver". Please help me as i unable to proceed further in my project. my servlet is like this:: [code] /* * facregistrationform.java * * …

0
75
Member Avatar for monem

Hello" I want to capture live video from web-cam to view it in a web page to access it using mobile phone and software i'm using is java jdk6,jakarta Tomcat as server and the web page is JSP. Thanks

Member Avatar for kvprajapati
0
71
Member Avatar for asian_al

Should would i turn the following code: [CODE] import java.awt.*; import java.io.*; import java.util.StringTokenizer; public class ex74 { public static void main(String[] args) throws IOException { Frame f = new Fram(); String sent; StringTokenizer st; BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); System.out.print("Enter a sentence: "); sent = br.readLine(); sent = …

Member Avatar for kvprajapati
0
94
Member Avatar for dazzagaelic

Having trouble getting my AttachmentServlet.java and FilterServelt.java to compile the following is the code (for which the error applies) then the error for each. AttachmentServlet.java [code] HttpSession session = request.getSession(); ServletOutputStream out = response.getOutputStream(); int msgNum = Integer.parseInt(request.getParameter("message")); int partNum = Integer.parseInt(request.getParameter("part")); MailUserBean mailuser = (MailUserBean)session.getAttribute("mailuser"); [/code] cannot find symbol …

Member Avatar for dazzagaelic
0
181
Member Avatar for custurd12

A real estate office handles, say, 50 apartment units. When the rent is, say, $600 per month, all the units are occupied. However, for each, say, $40 increase in rent, one unit becomes vacant. Moreover, each occupied unit requires an average of $27 per month for maintenance. How many units …

Member Avatar for BestJewSinceJC
0
1K
Member Avatar for taruj83

Hi, I want to create a web application that will let a user enter name in a text field and the application creates a newtab with datafields for that user to enter, it all must happen on a single page. There has to be one tab for each specific name …

Member Avatar for BestJewSinceJC
0
111
Member Avatar for BestJewSinceJC

Is using (in the paint method) g.clearRect() the correct way to clear the screen? It's working but I don't know if there is a better way. . google says it is supposed to clear automatically when update is called but that doesn't seem to happen.

Member Avatar for BestJewSinceJC
0
138
Member Avatar for Zima77

I am working on a project that involves creating a Vehicle class which has 3 data fields, one of which is an instance of a class rather than a fundamental data type ([I]owner[/I] is an instance of the class [I]Person[/I]). This class has multiple constructors for the varying initial values. …

Member Avatar for Zibo
0
419
Member Avatar for rwagnes

I have an nis server running on solaris. I am using the list function in the DirContext java class to discover the hosts. For example: ctx.list("host") returns the hosts in the hosts file. The problem is, there are also hosts in the ipnodes file.. How do I discover those hosts? …

Member Avatar for rwagnes
0
102
Member Avatar for Zibo

Hello. I've got such example statement: [code=Java]for( int i=0; i <= 10000; i++ ) myTextArea.setText( myTextArea.getText()+ i + "\n");[/code] What is the problem? I can't figure it out, why in every iteration of loop the text area isn't refreshing with new String added. When this loop is iterating, app freezes …

Member Avatar for Zibo
0
131
Member Avatar for rahul_ramteke

Hi I am using the iframe on parent page. At the top of this parent page I have included the header.jsp which is having logout link. After clicking on that link the session gets invalidate properly and application is directed on the login page. Now when I click on the …

0
51
Member Avatar for hypernova

I am doing B.Tech in computer science and I am in the 1st year (I have almost completed 1st year) I want to learn a language in the forthcoming summer break (2 months) between the first year and second year, and am quite confused if I should go for [U]C++ …

Member Avatar for Narue
0
146
Member Avatar for K?!

Hi all Is it possible to use only the classes you need in a panel or something? I'm finding it hard to explain my question, i'll give an example: We need to make a program to organise swimming competitions. When you want to (as a user) edit or create a …

Member Avatar for peter_budo
0
119
Member Avatar for whex

Working on a current project with these parameters and am not sure where to start. I am new to all of this and could use some input. Use JAVA to build a sales commission application. In this application, the user enters a number in the SALES JoptionPane textbox. When the …

Member Avatar for masijade
0
105
Member Avatar for marco01

I'm working on a code to calculate a final score. Here below is my code: [code] public void calcFinalOCAS() { int calcFinalOCAS; int sum = 0; List<Integer> tmaMarks = new ArrayList<Integer>(); Collections.sort(tmaMarks); int minMarks = Collections.min(tmaMarks); if(minMarks < substitutionScore) { minMarks = substitutionScore; } for (int i = 0; i …

Member Avatar for marco01
0
87
Member Avatar for cebubinary

hi..i was wondering where to find a sample java code that splits an image and each image that was splitted can be click and link to another image...

Member Avatar for kvprajapati
0
58
Member Avatar for juanenano1

hi all, I was hoping someone could tell me what is an online document builder????? also how can you develop it?? thanks in advance

0
52
Member Avatar for BestJewSinceJC

I have a list of teams, it can be any length. Now, for each team, I want to create a 2D box that says the team's name in the box. And I want to match these teams up against each other. So basically I want to be able to drag …

Member Avatar for BestJewSinceJC
0
161
Member Avatar for MrDiaz

Hi, How can I code it so I can make a new window appear on my application? Let's say, user hits a "new user" button, a new window is supposed to pop with TextFields and labels and so on. In Dephi is something like, Form1.show; How do I do this …

Member Avatar for MrDiaz
0
77
Member Avatar for kingarabian

[CODE]public static RSString method50(byte i, int i_0_) { if (i > -36) anInt63 = -44; anInt55++; if (i_0_ < 100000) return (Class68_Sub20_Sub13_Sub2.method1166 (2, new RSString[] { Class85.aRSString_1556, Class68_Sub13_Sub24.method816(i_0_, 0), Class96.aRSString_1697 })); if (i_0_ < 10000000) return (Class68_Sub20_Sub13_Sub2.method1166 (2, (new RSString[] { Class21_Sub1.aRSString_2695, Class68_Sub13_Sub24.method816(i_0_ / 1000, 0), Class68_Sub13_Sub11.aRSString_3611, Class96.aRSString_1697 }))); return …

Member Avatar for kingarabian
0
128
Member Avatar for metalheart2003

Hello, I am doing an upload of my applet has my website, I works very well but I do not like putting a bar of Progress! (JPROGRESSBAR)! CAN PLEASE HELP ME! UPLOAD MY CODE! String targetURL = "http://localhost/swfupload/demos/swfobjectdemo/upload. aspx"; PostMethod filePost = new PostMethod(targetURL); filePost.getParams().setBooleanParameter(HttpMethodParams.US E_EXPECT_CONTINUE,true); try { File targetFile …

Member Avatar for metalheart2003
0
109
Member Avatar for panda_pow

I'm writing a program that determines the population of the world between years 1975 to 2006. I found an equation for the world pop and i put it in my code, but i keep getting a '.class' expected. Can anyone help??? --Cassie P.S: The error is where pop is defined. …

Member Avatar for panda_pow
0
111
Member Avatar for VED_VYAS

hello! i wanna implement an text search engine ......... that will find the given text from all webpages of my website ..... .... is it possible to implement ??? (m newbye in jsp) . if not what are other options ??? any related idea ????? thanx in advance.

Member Avatar for lance7
0
110
Member Avatar for pyscho

Can anyone help me for the Scjp dums? i need them jus to see the type of qus that are asked in the exam.

Member Avatar for peter_budo
0
52
Member Avatar for tone10lite

Im sorry earlier i didnt know the rules but i know them now. Ive been trying all day and this is the farthest i could get... [code=java] /** * Program designed to keep the inventory of books in a bookstore. * * @author * @version 1.0 Dveloped on May 3, …

Member Avatar for peter_budo
0
1K
Member Avatar for CSdude

I created a class that takes a 3 dimensional array and puts it in a txt file, the method is called output(). I can't figure out where to call the method though. I'm trying to have it so it is called when numb=4 in the actionListener on the bottom. Please …

0
51
Member Avatar for MrDiaz

Hi everyone, I'm working on an app that saves data on a text file, as we know, formatting text file is awful and not very user friendly. I'd like to save the information I've collected on my program on a nicely formatted excel file. Given the file it's already created, …

Member Avatar for MrDiaz
0
107
Member Avatar for eba4

I am trying to copy large files over a network using sockets and channels. Here is a code snippet //sender side FileInputStream in = new FileInputStream(inputFileName); FileChannel fromFile = in.getChannel(); SocketChannel toSocket = sendSocket.getChannel(); fromFile.transferTo(0, 999999, toSocket ); However, in the line where I call transferTo I get NullPointerException. Any …

Member Avatar for kvprajapati
0
112
Member Avatar for new_2_java

Hi all, I have a frame, which has several tabs. I would like to perform some actions, when user clicks on a tab. Can someone please tell me what's the event that I should look into? Thanks in advance.

Member Avatar for peter_budo
0
120
Member Avatar for Lensva

[code="java"] import java.awt.BorderLayout; import java.awt.Graphics; import java.awt.event.MouseEvent; import java.awt.event.MouseListener; import java.awt.event.MouseMotionListener; import javax.swing.*; public class SketchPad { public static void main(String[] args) { SketchPad sketchpad = new SketchPad(); sketchpad.gui(); } public void gui() { JFrame mainF = new JFrame(); JMenuBar menuBar = new JMenuBar(); JMenu fileMenu = new JMenu("file"); mainF.setJMenuBar(menuBar); …

Member Avatar for Lensva
0
84
Member Avatar for Laidler

i think theres something wrong with my computer, im trying to create a GUI for my program but it wont display my JLabels (which contain images) i downloaded a program with a GUI i made at the computer lab in my university which works there, but on my laptop it …

Member Avatar for BestJewSinceJC
0
99
Member Avatar for CSdude

My input file has 84 integers and I'm not sure what I'm doing wrong. PLEASE HELP! import java.util.*; import javax.swing.*; import java.awt.*; import java.util.Scanner; import java.io.*; public class Museum { private int Week=3; private int Hour=4; private int Day=7; int[][][] visitors = new int[Week][Day][Hour]; private int[] allWeeks; private int[] allHours; …

Member Avatar for BestJewSinceJC
0
92
Member Avatar for tone10lite

I need this by tonight if anyone could help out id appreciate it because im completely lost. Thanks. Write a project to keep the inventory of books in a book store. Create a book class with the following variables and methods Title Price Pages getTitle() setTitle() setPrice() getPrice() setPages() getPages() …

Member Avatar for BestJewSinceJC
-1
103
Member Avatar for jade387

if (iStream.close() I am stuck on how to use iStream to print [code] import java.io.*; import java.util.*; public class BucketSort { public static void main(String[] args) { Scanner sc = new Scanner(System.in); // This is a scanner for the keyboard System.out.print("Enter a filename: "); String fname=sc.nextLine(); // This is the …

Member Avatar for BestJewSinceJC
0
104
Member Avatar for number87

I need to do paint a graphics into a nested panel. I am able to paint in a frame but when I add the class for painting into another JPanel, I see nothing. I know how to create nested panels but when I do it with a panel containing my …

Member Avatar for VernonDozier
0
270
Member Avatar for cullguy

i want to make a quiz game in java so tht the question come randomly and the answer get validated whn the user select the option...plz help me....

Member Avatar for peter_budo
0
169
Member Avatar for claramusic95

I am having some trouble with an assignment I have. Is there anyone out there that can help me? I have been struggling with the class all semester and my professor isn't much help. This is the assignment, I already have data file: Instead of storing the diver data in …

Member Avatar for peter_budo
0
225
Member Avatar for Krstevski

Hey people... My problem is: - - Heaviest Word Find the the heaviest word in an array. One word is heavier than the other if it has more vocals than the other. Vocal characters are ('a', 'e', 'i', 'o', 'u', 'y') If two words have the same number of vocals, …

Member Avatar for verruckt24
0
322
Member Avatar for javaman2

Design a class called BubbleSort that is similar to the class SelectionSort. The class BubbleSort will be used in the same way as the class SelectionSort, but it will use the bubble sort algorithm, which is [CODE=syntax] for(int i = 0; i < a.length-1; i++) if(a[i]>a[i+1]) interchange the values of …

Member Avatar for blumen
0
369
Member Avatar for bca_al

I need a complete source code of ONLINE EXAMINATION SYSTEM in JSP+ORACLE. Can sombody help me? my e-mail id : <EMAIL SNIPPED>

Member Avatar for SunnyY
0
208
Member Avatar for trace63b

I have a few minor problems with this program: 1. My selectionSort method - it sorted Z - A, not A - Z. 2. Since I used a string array, I'm running into problems with "operator > cannot be applied" and "incompatible types". 3. Return "search term not found" in …

Member Avatar for trace63b
0
190
Member Avatar for Laidler

i have an array which fills with objects in my code after i press a certain button in my GUI I have another button which when i press should remove all of these objects from the array. however i cannot find a way to do this. can anyone help me …

Member Avatar for BestJewSinceJC
0
80
Member Avatar for ahoest

Hey all! I use the folowing class in my program to draw lines. However I also need to be able to delete them. So I need to add a mouselistener to the lines but I don't know how and whereto do this.. Can anybody help me with this? Thanks!! [code] …

Member Avatar for ahoest
0
4K
Member Avatar for KirkPatrick

I am reading a .Csv file and am having problems trying to get the information I want, set up the way I want. Here is where my problem comes in: [code] String[] info = beanInfo.split("," , 3); for (String str : info) { ip = info[0]; hostname = info[1]; ping …

Member Avatar for KirkPatrick
0
161
Member Avatar for asian_al

I cant get the program to drawy the triangle properly. Can some help me with the draw the polgygon triangle? [CODE]/* Alex Bruso (student 2) + Tim Mumford (student 1) Hw Shape Group Exercise This program will create an applet which will draw shapes. The input from the user will …

0
61
Member Avatar for tomo_uni

I have a 3,3 GridLayout and the grid is filled with labels, but say i wanted to replace one of the label with a picture when i click a button how would I go about doing that? Tom

Member Avatar for BestJewSinceJC
0
77
Member Avatar for Ko Thu
Member Avatar for BestJewSinceJC
0
53
Member Avatar for utado

am looking for information about development as outsourced software programming i live in Africa Kenya and i have expertise in Java programming looking forward to exchanging info with anyone . about legality and how sourcing is done thanks.

0
51
Member Avatar for Laidler

i am trying to code a toString() method which returns the string "Power: ON" if the power variable is equal to true and "Power: Off" if the power variable is equal to false (the power variable is the boolean type). However i dont know how to do this as the …

Member Avatar for BestJewSinceJC
0
1K

The End.