35,618 Topics
![]() | |
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 … | |
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] … | |
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 … | |
[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 … | |
[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 … | |
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 | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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, … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 | |
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 * * … | |
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 | |
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 = … | |
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 … | |
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 … | |
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 … | |
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. | |
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. … | |
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? … | |
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 … | |
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 … | |
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++ … |
The End.