35,618 Topics

Member Avatar for
Member Avatar for shahbaz5144842

hi to all ! I have a problem with java class accessing in jsp form i use <jsp:useBean id="db" scope="request" class="untitled5.dataBase_Connection" /> <jsp:setProperty name="db" property="*" /> to access the database class but i have the [B]"The value for the useBean class attribute untitled5.dataBase_Connection is invalid"[/B] I provide default constructor too …

0
66
Member Avatar for dproun

My code is [CODE]package diningphilosophers; class DiningPhilosophers { // Η κλάση αναπαριστά την εφαρμογή static Philosopher philosopher[]; static Forks forks; static DiningRoom diningRoom; public static void main(String[] argv) { philosopher = new Philosopher[5]; forks = new Forks(); diningRoom = new DiningRoom(); for(int i = 0; i < 5; i++) philosopher[i] …

Member Avatar for dproun
0
138
Member Avatar for amerabdullah

Hi, would someone please help me with the following quotions (the required is to implement a simulator for processes scheduling that takes a file contains N of processes each with required details,and then after reading these information from the input file ,the scheduler should schedule the processes for execution. input:N …

Member Avatar for BestJewSinceJC
0
84
Member Avatar for pinaz

[code]<%@ page import="java.sql.*" %> <%@ page import="java.io.*" %> <%@ page language="java" session="true" %> <html> <body> <% //Getting the text values from create login page String lid = request.getParameter("loginid"); String lpin = request.getParameter("loginpin"); String loginid = lid.trim(); String loginpin = lpin.trim(); [COLOR="red"]out.println(loginid); out.println(loginpin);[/COLOR] // Connect to Database to retrive all the …

Member Avatar for pinaz
0
339
Member Avatar for bluerose

[COLOR="Green"]Hello all.. I have a problem with my program in here. I am making a chatting application and i just need a final touch. This is the code snippet i make to represent my problem. First, i'd like to tell that i want to make the sending process like the …

Member Avatar for bluerose
0
355
Member Avatar for m_sam6

hi i read about JMF and make some search about other techniques of video streaming but i cant get a definite opinion in making this efficiently (high quality video) i need to make a program to transfer video from webcam to other clients over the network thanks in advance

0
72
Member Avatar for DotA

I'm having trouble with a class which is fine until another method tries to access variables in the same class, seems like a scope issue to me. I get null pointers when i try to access an object which clearly works in a previous method. All my data and called …

Member Avatar for DotA
0
124
Member Avatar for alilskeetskeet

Hi, I am trying to code a program which will allow a user to search through a .db file for a word which is specified through an argument. The main class is in a different file. I am having a hard time putting the contents from the DB file into …

0
63
Member Avatar for alilskeetskeet

Hi, I am trying to code a program which will allow a user to search through a .db file for a word which is specified through an argument. The main class is in a different file. I am having a hard time putting the contents from the DB file into …

Member Avatar for BestJewSinceJC
0
122
Member Avatar for Q8iEnG

Hi mates.. I have a small question.. I have now 3 different classes, sounds ok? this is the 1st class, called "Wire" [CODE]public class Wire { private boolean Value; public boolean isValue() { return Value; } public void setValue(boolean value) { Value = value; } }[/CODE] This is the 2nd …

Member Avatar for BestJewSinceJC
0
161
Member Avatar for sasukeuchiha

Hi, I'm trying to find out how to call a method from another class every 0.5 seconds until I tell it to stop using a function from the same class (the class that is doing the calling). Does anyone know if this is even possible? I've done a few Internet …

Member Avatar for BestJewSinceJC
0
138
Member Avatar for knowledgelover

Hi there, have anyone experience with the Telephony API, and can help please?, I have googled about it, and I get downloaded all possible files but I still having problem in understanding some of the connectivity issues, should the PBX I am using in system be compatible with the JTAPI, …

0
101
Member Avatar for AirmanTheGreat

Hello yet again =) I am required to create a program that consists of two classes. The driver class calls on the other class to set/get radius and height variables and calculate the volume of a cylinder. The problem I am having is that; I create two objects with two …

Member Avatar for AirmanTheGreat
0
120
Member Avatar for wedunnit

I feel as if I have gone over this code until my eyes are bleeding. I am missing something, and I cannot seem to locate my problem. I am supposed to use an array to store my items, my output should display my items one at a time, and should …

Member Avatar for BestJewSinceJC
0
125
Member Avatar for lorenshia05

I'm trying to make a program that can send email from mobile phone, and i'm using Mail4ME API and NetBeans to develop it. Here's the error message : [QUOTE]java.lang.SecurityException: Application not authorized to access the restricted API at com.sun.midp.security.SecurityToken.checkIfPermissionAllowed(SecurityToken.java:170) at com.sun.midp.security.SecurityToken.checkIfPermissionAllowed(SecurityToken.java:145) at com.sun.midp.midletsuite.MIDletSuiteImpl.checkIfPermissionAllowed(+8) at com.sun.midp.midlet.MIDletState.<init>(+83) at javax.microedition.midlet.MIDletProxy.<init>(MIDletProxy.java:33) at javax.microedition.midlet.MIDlet.<init>(MIDlet.java:70) at …

0
57
Member Avatar for dragonspectrum

I am trying to access a Clientside server file from an HTML file. Can anyone help me with how to code it? :eek: here is what I have: [code=html]<form method="get" <if true then action=" :?: *****This is were I need to access Client side server ****** " else action= "file:///K:/web-content/Client …

Member Avatar for kvprajapati
0
274
Member Avatar for emozz

hey all, am having a project which aims to develop an online questionnaire system with three pools what i did was that i created an html file that contains 3 forms the form have a submit button to let the user to choose the preferred questionnaire, then he go to …

Member Avatar for peter_budo
0
108
Member Avatar for sarita_sree

Can u suggests me some powerfull but understandable java code for encrypting and decrypting password.The password should be encrypted and stored into the database and can be retrived ,decrypted

Member Avatar for kvprajapati
0
67
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
68
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
92
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
180
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
110
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
137
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
417
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
101
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
49
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
145

The End.