Home Answers Questions Question and Answers


 
 

Latest Programming Questions askedAsk your question?

How to destory session in PHP  December 3, 2010 at 11:08 AM
Hi, I have to write a php page for logout. Please tell me what i should write? Thanks ... View Questions/Answers

Is ActionServlet thread safe ?  December 3, 2010 at 10:34 AM
Is ActionServlet thread safe ? ... View Questions/Answers

Is ActionServlet thread safe ?  December 3, 2010 at 10:34 AM
Is ActionServlet thread safe ? ... View Questions/Answers

Advertisement

Java socket programming  December 3, 2010 at 6:30 AM
Hey i want to transfer a file from Server to Client or vice-versa using JAVA socket programming. Can you please guide me? ... View Questions/Answers

air_Salary  December 3, 2010 at 1:56 AM
Cameroonian International Airport decided to have a salary plan for its employees. In the new Policy, bonus is based on the fact that one is a senior staff or junior staff. You have been called in as a programmer to develop a software to meet this policy?s requirement: (a.) Create a class call... View Questions/Answers

logout code in JSP  December 3, 2010 at 1:21 AM
im using session.invalidate() for logout but its not working. ... View Questions/Answers

jsp logout code  December 3, 2010 at 12:41 AM
hello sir, im doing jsp project, i have implemented the session code of jsp. session.invalidate(). but its not working. can u tell me what may be the problem. OR if possible pls send me the proper code for logout in jsp and also how to immplement it. thanking you. ... View Questions/Answers

Please Help  December 3, 2010 at 12:37 AM
How do I create an attribute that represents the following: A grayscale 'color' value, that is, an integer between 0 and 255 inclusive, where 0 corresponds to the darkest black and 255 to the brightest white. ... View Questions/Answers

Please Help  December 3, 2010 at 12:37 AM
How do I create an attribute that represents the following: A grayscale ā??colorā?? value, that is, an integer between 0 and 255 inclusive, where 0 corresponds to the darkest black and 255 to the brightest white. ... View Questions/Answers

customer  December 3, 2010 at 12:31 AM
At MKO Bank, a customer should be able to deposit money, withdraw money and check his or her balance. You have been approached to develop a software for MKO Bank. Required: a. Create a class called Customer The balance of the customer should be 1500 b. Create methods/functions for the deposit, wi... View Questions/Answers

how to run jsp appication in eclipse  December 2, 2010 at 9:17 PM
after setting the tomcat in eclipse, i m trying to run jsp page, but the pop up has come that "selection did not contain any resources that can run on server". plase tell me i m new to handle eclipse, tell me step by step solution Nasreen Ustad ... View Questions/Answers

RECYCLING SYSTEM IN JAVA WITH BLUEJ  December 2, 2010 at 8:56 PM
Recycling System The system, you are going to write, simulates a reverse vending machine. Such a machine is used to identify and collect used beverage containers for recycling or reuse from customers, who in return receive a monetary refund. When you use the system, you enter different ca... View Questions/Answers

what is given output?  December 2, 2010 at 7:34 PM
public class { public static void main(string argv[]) }.........? ... View Questions/Answers

Java  December 2, 2010 at 7:06 PM
can any one write me a code that can sort a list of names or words in alphabetical order ? You can write the code in java or c++. thnkx ... View Questions/Answers

Text change and click events  December 2, 2010 at 6:58 PM
Create user login form and apply textchange and click events in java ... View Questions/Answers

example of sleep and wait method  December 2, 2010 at 6:53 PM
write a program to use the sleep and wait method of thread class ... View Questions/Answers

insert excel value in to oracle data base  December 2, 2010 at 6:34 PM
Hi All I am using this code for saving excel value to oracle database table. code is working properly but in table i am geting some diffrent type value like... o org.apache.poi.hssf.usermodel.HSSFCell@19360e2 i am not getting right value... my code is... ... View Questions/Answers

how to iterate hibernate object  December 2, 2010 at 6:34 PM
am just learning hibernate .by the hibernate am getting one list to display a grid(grid has 5 column). now i want to iterate one only column value to calculate total of that particular column. how to do this.... ... View Questions/Answers

compute the final grades  December 2, 2010 at 6:29 PM
C. Write a JavaScript program that would input a student?s final grade from 50-100. Evaluate the Final grade and display the Point Equivalent based on the table below. Indicate also the remarks if it is ?Passed? or ?Failed?. ... View Questions/Answers

compute the final grades  December 2, 2010 at 6:29 PM
C. Write a JavaScript program that would input a student?s final grade from 50-100. Evaluate the Final grade and display the Point Equivalent based on the table below. Indicate also the remarks if it is ?Passed? or ?Failed?. ... View Questions/Answers

NetBeans  December 2, 2010 at 6:25 PM
why Netbeans IDE is not commonly used Today by most of the companies ... View Questions/Answers

compute the final grades  December 2, 2010 at 6:16 PM
C. Write a JavaScript program that would input a student?s final grade from 50-100. Evaluate the Final grade and display the Point Equivalent based on the table below. Indicate also the remarks if it is ?Passed? or ?Failed ... View Questions/Answers

compute the final grades  December 2, 2010 at 6:14 PM
C. Write a JavaScript program that would input a student?s final grade from 50-100. Evaluate the Final grade and display the Point Equivalent based on the table below. Indicate also the remarks if it is ?Passed? or ?Failed ... View Questions/Answers

compute the final grades  December 2, 2010 at 6:11 PM
C. Write a JavaScript program that would input a student?s final grade from 50-100. Evaluate the Final grade and display the Point Equivalent based on the table below. Indicate also the remarks if it is ?Passed? or ?Failed ... View Questions/Answers

compute the final grades  December 2, 2010 at 6:03 PM
C. Write a JavaScript program that would input a student?s final grade from 50-100. Evaluate the Final grade and display the Point Equivalent based on the table below. Indicate also the remarks if it is ?Passed? or ?Failed ... View Questions/Answers

final grade  December 2, 2010 at 5:57 PM
C. Write a JavaScript program that would input a student?s final grade from 50-100. Evaluate the Final grade and display the Point Equivalent based on the table below. Indicate also the remarks if it is ?Passed? or ?Failed ... View Questions/Answers

To publish jsp web application in intranet  December 2, 2010 at 5:47 PM
I am making web application in jsp with netbean. I want to publish this web application in LAN/Intranet.So by publishing web application it can be access through LAN/Intranet. So please suggest some steps to publish jsp application. Your suggestion is very valueable to me. Thanks ... View Questions/Answers

compute  December 2, 2010 at 5:44 PM
B. Write a JavaScript program that would input Employee Name, Rate per hour, No. of hours worked and will compute the daily wage of an employee. If the number of hours worked exceeds eight hours add 30% to each excess hours as overtime rate. Formula: Daily Wage = Rate per hour * No. of hours w... View Questions/Answers

Query  December 2, 2010 at 5:42 PM
How can i call a static variable of one class to another class. can i change static varibale value. //A.java public class A { static JTextField p=null; static int k; public A() { } public actionPerformed(ActionEvent ae) { k=Integer.parseInt(p.getText()); //Some Condition B... View Questions/Answers

compute  December 2, 2010 at 5:40 PM
B. Write a JavaScript program that would input Employee Name, Rate per hour, No. of hours worked and will compute the daily wage of an employee. If the number of hours worked exceeds eight hours add 30% to each excess hours as overtime rate. Formula: Daily Wage = Rate per hour * No. of hours w... View Questions/Answers

To call jrxml/jasper file through jsp code in netbean  December 2, 2010 at 5:38 PM
I am making web application in jsp with netbean. For report I am using ireport 3.6.7. Through plugin ,ireport is integrated with neatbean and I also created one report. So my question is I want to call that jasper file through my jsp code and i also want to send dynamic querry to that report so t... View Questions/Answers

compute the daily wage of an employee.  December 2, 2010 at 5:38 PM
B. Write a JavaScript program that would input Employee Name, Rate per hour, No. of hours worked and will compute the daily wage of an employee. If the number of hours worked exceeds eight hours add 30% to each excess hours as overtime rate. Formula: Daily Wage = Rate per hour * No. of hours w... View Questions/Answers

compute the daily wage of an employee.  December 2, 2010 at 5:37 PM
B. Write a JavaScript program that would input Employee Name, Rate per hour, No. of hours worked and will compute the daily wage of an employee. If the number of hours worked exceeds eight hours add 30% to each excess hours as overtime rate. Formula: Daily Wage = Rate per hour * No. of hours w... View Questions/Answers

exception  December 2, 2010 at 5:12 PM
example for numberformat exception ... View Questions/Answers

Server Related exception  December 2, 2010 at 4:13 PM
How will write code to handle serverside exceptions in our projects.Earlier we dont know which exception the code will throw ... View Questions/Answers

help regarding variable types and its modifiers  December 2, 2010 at 4:07 PM
static variable is initialized once only and can be used by all objects. i want static in sense of program execution i want to count how many times the said program is executed by user. is it possible to declare a variable as counter which will increment each time i execute the program. ... View Questions/Answers

printout problem  December 2, 2010 at 2:47 PM
Hi I have created a swing application which enter some data and fetch some data from DB . Now I want a print feature by which i want to take a print out of that data in form of table. What should I do to achieve this. Regards, am2085 ... View Questions/Answers

writing querries qnd connecting for insertion, accessing....  December 2, 2010 at 1:02 PM
i created my front ends using html, and my back end using oracle 10g, i dont know how to connect and where to write querries and how to insert and access the data .. please help me .. thanks ... View Questions/Answers

how to find last day 0f any given month in mysql?  December 2, 2010 at 12:56 PM
how to find last day of any given month in mysql? ... View Questions/Answers

404 error  December 2, 2010 at 12:53 PM
struts application having 404 error while hosting to a online server.it works fine in my local machine but dont work in virtual host.showing 404 error. ... View Questions/Answers

Axis2 sample program  December 2, 2010 at 12:35 PM
Hi.. I have tried the HelloWorldServie example in axis2. While running which showing as a faulty service. The error showned as follows This Web axisService has deployment faults Error: org.apache.axis2.deployment.DeploymentException: The services.xml file cannot be found for the s... View Questions/Answers

two text box problem  December 2, 2010 at 12:09 PM
i have two text box in two different pages and same variable use in two text box when enter value in first text box it's reflection show in second text box , how i reduce it in jsf ? ... View Questions/Answers

array list example  December 2, 2010 at 11:38 AM
Array list example ... View Questions/Answers

mobile2mobile communication  December 2, 2010 at 10:51 AM
how to program so that one mobile device should be able to send text message to another mobile device.i want an example of source code. ... View Questions/Answers

SHA256 of a file  December 2, 2010 at 10:37 AM
how to calculate SHA256 of a file in java ... View Questions/Answers

how to make multiple choice questions  December 2, 2010 at 5:31 AM
I have to make a multiple choice choice using JSP/Servlets. I created a a session bean for the questions and answers. how to associate group of questions to a user? so each user will have his own set of questions and answers ... View Questions/Answers

interview question  December 2, 2010 at 12:25 AM
write a method that takes and return an object of your own type? ... View Questions/Answers

How to Solve the Syntax Error in java??  December 1, 2010 at 10:23 PM
Syntax error in java? i have tried this program its showing error like this in Eclipse "Syntax error on token "i", VariableDeclarator expected after this token" . in last line of the program "objectname.i" What is the reason for this error??How to access the variable "i" import ja... View Questions/Answers

question  December 1, 2010 at 6:42 PM
write a menu driven program to accept a number belonging to any number system that is octal,binary,decimal,hexadecimal according to user's choice and display its equivalent number system entered according to the user's choice ... View Questions/Answers

Sturts2  December 1, 2010 at 6:07 PM
Hi.. I am new to struts2 , I created one login application in struts2 using eclipse helios. If i run that program i am getting 404 not found error. My code is ok but i dont know how to put files in Eclipse. So how to run my program in eclipse helios and how to slove this 404 error. I am u... View Questions/Answers

java  December 1, 2010 at 4:14 PM
what is the use of thread in real time ... View Questions/Answers

identify the paths  December 1, 2010 at 3:00 PM
write a srcipt for cutting only the paths of the file present inside a directory or folder ... View Questions/Answers

how do i use sql like query in my jsp page  December 1, 2010 at 2:02 PM
how do i use sql like query in my jsp page ... View Questions/Answers

how to integrate EJB with Struts  December 1, 2010 at 12:20 PM
I am new to EJB. Up to now I wrote applications by using JDBC and struts.Now I want to use EJB with struts for this what should I do? ... View Questions/Answers

New to JSP..need help to make & run a JSP program.  December 1, 2010 at 12:09 PM
Hi, I have installed Tomcat 5.5 on my system. Plz help me to make a simple JSP program. And also how to run it. ... View Questions/Answers

how to pass class variable to another class  December 1, 2010 at 11:19 AM
i need to access a variable from a class to another class currently running at the same time. using Classname.variable i got the value. But when i change the value second time i got the previous value. I used static variabe. ... View Questions/Answers

itemrenderer  December 1, 2010 at 10:23 AM
why should we use a keyword super in the itemrenderer script?... ... View Questions/Answers

question  December 1, 2010 at 9:55 AM
hi good morning. how to retrive the data from one form of jsp to another form.please help me ... View Questions/Answers

I need to join three tables and return data that may not be in all three tables  December 1, 2010 at 2:28 AM
How do I join three tables and return information even if it is in only two of the tables ... View Questions/Answers

Getting garbage value  December 1, 2010 at 1:49 AM
Thank You Sir for helping me out from the problem. Now I'm facing some problem with the value I'm passing to the textfield from the link gets some garbage value whenever I'm using some particular set of value like from 0010 to 0757. After that from 0758 to 2400 every value returns perfectly.Code ... View Questions/Answers

Getting garbage value  December 1, 2010 at 1:47 AM
Thank You Sir for helping me out from the problem. Now I'm facing some problem with the value I'm passing to the textfield from the link gets some garbage value whenever I'm using some particular set of value like from 0010 to 0757. After that from 0758 to 2400 every value returns perfectly.Code ... View Questions/Answers

mazimizing profit in markets using java  December 1, 2010 at 12:49 AM
an optimization algorithm with interest in financial market processes. Algorithm: to optimize the profit of your virtual investment in an arbitrary portfolio of stocks by maximizing it. Constraints: 1. Investment period over 20 consecutive trading days 2 Select the 10 stocks alg... View Questions/Answers

JFormattedTextField issue  November 30, 2010 at 10:11 PM
Can someone help me to understand how to place a JFormattedTextField inside a JComboBox. The JComboBox is in one of the JTable columns. The JComboBox holds a list of item and I also want the JComboBox to be editable. But just for 5 uppercase letters and thats why I want to place that JFormattedTe... View Questions/Answers

Steve Evans  November 30, 2010 at 9:45 PM
What if you did not use the word continue, or break, and you still get the unreachablestatement? ... View Questions/Answers

Java  November 30, 2010 at 9:39 PM
what is the difference between argument and assignment? ... View Questions/Answers

java code  November 30, 2010 at 9:29 PM
what is the code to turn off my pc through java program ... View Questions/Answers

Java I/O Assistance + Loop  November 30, 2010 at 9:16 PM
I'm trying to make this program write file numbers.dat that's accomplished. I'm also trying to make it write all even numbers into the file and close the file. Then I'm trying to make it re open file and append all odd numbers 1-100 and finally close file. But for some reason I CANNOT Get... View Questions/Answers

Examples on threads and mulithreading.....  November 30, 2010 at 8:25 PM
Is any good examples on threads and Mulithreading... ... View Questions/Answers

storing data into flat files  November 30, 2010 at 8:15 PM
how can i retrive data from database and store data in flat files ... View Questions/Answers

java help?  November 30, 2010 at 7:57 PM
Write a program, where you first ask values to an array with 6 integer values and then count the sum and average of the values in methods (send in the array & return the counted value to the main program). Print out results in the main program ... View Questions/Answers

error  November 30, 2010 at 6:59 PM
import java.io.*; public class employee { String name,address,ss; int mos,phone; double it; public void accept(String n,string ad,int ph,String s,int ms) { name=n; address=ad; phone=ph; ss=s; mos=ms; } ... View Questions/Answers

errors  November 30, 2010 at 6:45 PM
i am getting an error saying cannot find symbol class string.how do i rectify it. ... View Questions/Answers

diff between spring and struts in java  November 30, 2010 at 6:20 PM
diff between spring and struts in java ... View Questions/Answers

Collection framework tutorial  November 30, 2010 at 6:02 PM
Hi, I am learning Collection framework in Java. I want many examples of Java collection framework. Tell me the best tutorial website for learning Java Collection framework. Thanks ... View Questions/Answers

WRITE a simple JSP  November 30, 2010 at 5:42 PM
Write a JSP that accepts a string parameter from the browser and simply displays it back in the HTML response ... View Questions/Answers

how to insert list box in java script dynamically and elements retrieving from database like oracle  November 30, 2010 at 5:32 PM
hi all, how can i insert elements into java script list box retrieving from Database. whenever I insert any element in the Db it is dynamically inserted into listbox ... View Questions/Answers

java mail  November 30, 2010 at 5:29 PM
By Which code or function i can send E-mail to given E-mail Address ... View Questions/Answers

heap memory in j2me  November 30, 2010 at 5:29 PM
how to get j2me heap memory size? ... View Questions/Answers

java  November 30, 2010 at 4:25 PM
why we pass reference as a parameter in any java method ... View Questions/Answers

dropdown  November 30, 2010 at 4:20 PM
how to select an item from the dropdownlist when we load the page ... View Questions/Answers

JAVA  November 30, 2010 at 2:31 PM
If anybody know the abbreviation of JAVA.... ... View Questions/Answers

java program  November 30, 2010 at 1:35 PM
hello.. do u all have any source to do the java programming for Snake and Ladder Game or any reservation system.. help me plz ... View Questions/Answers

Java class name and file name are different  November 30, 2010 at 12:45 PM
Can we run a Java program having class name and file name different? ... View Questions/Answers

how to insert list box in java script dynamically and elements retrieving from database like oracle  November 30, 2010 at 12:40 PM
Hi, how to dynamically increase size of list box in javascript when elements retrieving from database.. That is whenever I insert new course in a table.. It should be seen in my list box.. ... View Questions/Answers

How to resolve NumberFormatException(Unlnown Source)?  November 30, 2010 at 12:37 PM
I'm using some code where I'm getting NumberFormatException in the code but logically it seem to me perfectly ok because whenever I 'm using that code in .java file it works perfectly ok but when I'm using same type of code in a jsp it throws the exception. Code i'm is some thing like that:`print... View Questions/Answers

JAVA  November 30, 2010 at 12:35 PM
Name Explanation about Java.... ... View Questions/Answers

how to display pdf file on browser  November 30, 2010 at 12:33 PM
In my project i have created one pdf file(by pdfwriter) into my local mechine . after that it need to display in browser as a pdf file . but in jsp i can't display by iframe tag can anyone give me a solution. ... View Questions/Answers

how to dispaly pdf file on browser  November 30, 2010 at 12:24 PM
In my project i have created one pdf file(by pdfwriter) into my local mechine . after that it need to display in browser as a pdf file . but in jsp i can't display by tag can anyone give me a solution. ... View Questions/Answers

Getting NumberFormatException  November 30, 2010 at 12:10 PM
Thanks for the reply. Its works well, but whenever I'm using numeric value from 0010 to 0757 it is returning some garbage value. I dont have the idea what is going wrong. Please give me some idea to solve this problem. I'm giving you the code below. Code: `print("<% String t=request.getParam... View Questions/Answers

java swing  November 30, 2010 at 11:35 AM
how to connect database with in grid view in java swing ... View Questions/Answers

Maintain checked checkbox status  November 30, 2010 at 11:26 AM
Hi everyone In my JSP application, i have database table stored in mysql. when i display there recors using checkboxes and select multiple checkboxes, and after submitting button , it should display that "selected checked checkboxes" in same page but in another table. and at sa... View Questions/Answers

jsp  November 30, 2010 at 11:23 AM
how to include google map in our jsp page? ... View Questions/Answers

javascript  November 30, 2010 at 10:36 AM
passing javascript values to jsp ... View Questions/Answers

Query  November 30, 2010 at 10:30 AM
//A.java public class A { static int a=regd; public A() { } } //B.java public class B { static int b=A.a; public A() { } } I created two classes separately.Here regd is dynamic variable means it's varying with the given input. i want to call repeatedly but first time i got value. but whe... View Questions/Answers

servlet  November 30, 2010 at 10:23 AM
how to jsp integer are type cast int servlet page ... View Questions/Answers

frame  November 30, 2010 at 10:12 AM
how to creat a frame in java ... View Questions/Answers

Fibonacci program  November 30, 2010 at 2:15 AM
I am trying to write 2 different Fibonacci programs. The first one, I want to allow the user to input 2 integers and then print out the next 10 numbers in the fibonacci sequence. On the next one, I want to allow the user to input 2 integers again and also allow the user to input how many fibonacc... View Questions/Answers

seriously need help....  November 30, 2010 at 1:33 AM
Write a program that will prompt the user to select an appliance, lookup the energy the appliance uses and for each time of use rate band: calculate the cost to run the appliance and display a bar graph for the cost of running the appliance. The appliance will run for ½ hour each day for 30 days.... View Questions/Answers

DMCA.com