Home Answers Questions Question and Answers


 
 

Latest Programming Questions askedAsk your question?

ThreadsExecution  August 15, 2013 at 1:18 PM
*Below are two classes that i have written to execute thread programs.But output was not as i expected. My doubt is in output,value of main thread is 2 should be printed first but it is not printed,instead child thread value is printed first .Please help me.* p... View Questions/Answers

how can add new line character into ajax response for java  August 15, 2013 at 12:41 PM
i want to populated brand drop-down list and state drop-down list by changing on country drop-down list i mean according to country name there will be change in state names groups and brand name groups too... meaning that change in a single drop-down list changes into two dropdown list i hv d... View Questions/Answers

how can add new line character into ajax response for java  August 15, 2013 at 12:41 PM
i want to populated brand drop-down list and state drop-down list by changing on country drop-down list i mean according to country name there will be change in state names groups and brand name groups too... meaning that change in a single drop-down list changes into two dropdown list i hv d... View Questions/Answers

Advertisement

render in input typetext  August 14, 2013 at 11:08 PM
Hi. I can not set the value in the input type text tag when I link to other page.The input type text appear with empty value. thanks in advance MBEAN @ManagedBean @SessionScoped public class OrganizacionController { private String razon; //getter an... View Questions/Answers

Struts 2 action-validation.xml not loading  August 14, 2013 at 9:28 PM
Hi All, I am getting a error as com.opensymphony.xworks2.validator.AnnotationActionValidatorManager error SERVER : Caught exception while loading file package/action-validation.xml Connection refused: Connect - (unknown location) The path of my action-validation.xml is pac... View Questions/Answers

.Net and SQl 2000 Login page  August 14, 2013 at 3:44 PM
Please help me creating a login page using dot net using data base sql 2000. ... View Questions/Answers

sql and .net  August 14, 2013 at 12:34 PM
I want get coding of connecting data base sql server 2000 to .net please help.. ... View Questions/Answers

data fecth from data base in( sql 2000) htmlform and jsp  August 14, 2013 at 12:08 PM
hi iam using jsp and html form data fecth from database display the textbox help me i want whenever select from dropdown list select the projectname to display the projectid relevent code (990)display textbox my code here <%-- Document :lo... View Questions/Answers

code in java  August 13, 2013 at 10:10 PM
In NASA, two researchers, Mathew and John, started their work on a new planet, but while practicing research they faced a mathematical difficulty. In order to save the time they divided their work. So scientist Mathew worked on a piece and invented a number computed with the following for... View Questions/Answers

how the answer is 13 can anyone explain plz  August 13, 2013 at 8:21 PM
public class that { public static void main(String arr[]) { int i=3; int j=1; while(i<4) { //j=i; i=i+j/2; } System.out.println(i); } } ... View Questions/Answers

java programme  August 13, 2013 at 11:03 AM
1.....programme for reading 10 values for 10 variables using scanner class 2....declares all types of primitive data inside main method ... View Questions/Answers

Getting ISD code when user input country name  August 12, 2013 at 9:46 PM
I want to create program which user needs by typing Country name he will get ISD code of that country I am the Learner in Java programming, i want to know how to start this one. I have created a text file which includes pipe delimited with country name and ISD code, from that list i have to read ... View Questions/Answers

i want display integer number in a string of statement  August 12, 2013 at 8:25 PM
i want display integer number in a string of statement ... View Questions/Answers

I am trying to develop a Image Sliding application but unfortunately its not working... Can any one help me in this  August 12, 2013 at 1:11 PM
Can Anyone Help Me In This import java.awt.*; import javax.swing.*; import java.awt.event.*; class SlideShow extends JFrame implements ActionListener { int img=1; JPanel jp1,jp2; JButton jb1,jb2; SlideShow() { setVisible(true); set... View Questions/Answers

Struts-2 and Ajax integration  August 12, 2013 at 12:10 PM
I am trying to implement Ajax in jsp using struts2. But I'm not getting, how to use AJAX in jsp(syntax). My requirement is to pass user input values (like name, age, gender etc.,)to the HTML table. When user click on submit button, user information should add to the table (in first row) dynamical... View Questions/Answers

how insert data from databse in array and compare new data to already stored value in array  August 12, 2013 at 8:53 AM
hello all i tried to fetch data from databse and try to stored it in an array and i want to compare new value that come from database with array if this new value is already stored in this array i like to executed new query if not in array i want add this in array and execute another query ... View Questions/Answers

I want Mini Java Project for Student Admission System. actually i want 2 know how 2 start this...please show me my way.....  August 11, 2013 at 7:56 PM
I want Mini Java Project for Student Admission System. actually i want 2 know how 2 start this...please show me my way..... ... View Questions/Answers

using jsp and servlets andin Mvc architecture  August 10, 2013 at 7:09 PM
how to insert a form data in different tables, that means education details in education table, address details in address table,like that and finally if we fetch all must come at once..... any one please send me the code. ... View Questions/Answers

foget password  August 10, 2013 at 10:46 AM
i have make a login form and add three buttons.one is user login ,second is new user and third is forget password in java using netbeans.so please help me to write the code for forget password button.forget password form have three field that is userid ,security question and answer of those quest... View Questions/Answers

How to display string or character  August 9, 2013 at 11:31 PM
how to print character or a word without using array concept. ... View Questions/Answers

java  August 9, 2013 at 3:02 PM
create an interactive java program for displaying student details by using multiple constructors ... View Questions/Answers

java  August 9, 2013 at 2:58 PM
Create a java class named ‚??subject‚?? to maintain details such as subject code, subject name, number of students enrolled for the subject and their names. Create another class named ‚??instructor‚?? to maintain instructor code, instructor name and the list of subjects handled by the instructor... View Questions/Answers

Display PHP clock with user input date and time  August 9, 2013 at 2:40 PM
The following PHP code displays a clock with current date and time. I want the clock to receive user input date and time. How can this be done? defaulttimezone_set("Asia/Kolkata"); if(@$_GET["action"]=="getTime"){ $time1 = Time(); ... View Questions/Answers

Java Program  August 8, 2013 at 8:18 PM
You are to create a game called √Ę??Get Out of My Swamp√Ę??. In this game an ogre, called √Ę??Hek√Ę??, wanders around his swamp, if he encounters an ogre enemy in his swamp he kills it. If he encounters two ogre enemies in the same place they kill the ogre and the game ends. Full details of the g... View Questions/Answers

Java Program  August 8, 2013 at 8:17 PM
You are to create a game called √Ę??Get Out of My Swamp√Ę??. In this game an ogre, called √Ę??Hek√Ę??, wanders around his swamp, if he encounters an ogre enemy in his swamp he kills it. If he encounters two ogre enemies in the same place they kill the ogre and the game ends. Full details of the g... View Questions/Answers

Create a Swamp Game in Java  August 8, 2013 at 8:15 PM
You are to create a game called ‚??Get Out of My Swamp‚??. In this game an ogre, called ‚??Hek‚??, wanders around his swamp, if he encounters an ogre enemy in his swamp he kills it. If he encounters two ogre enemies in the same place they kill the ogre and the game ends. Full details of the g... View Questions/Answers

table  August 7, 2013 at 10:52 AM
multiplicatyion table ... View Questions/Answers

Java URL inputstream caching  August 7, 2013 at 10:36 AM
I have a web application in which the header is displayed by hitting a URL. Since the header content doesnt change always i wanted to cache the results of the URL inputstream and refresh it for every 60 mins. The code of my header.jsp is <% URL url = new ... View Questions/Answers

java program  August 7, 2013 at 12:26 AM
how to print in java following pattern 5 54 543 5432 54321 ... View Questions/Answers

web programming  August 7, 2013 at 12:04 AM
what is best choice java or .net for web applications? ... View Questions/Answers

web programming  August 7, 2013 at 12:04 AM
what is best choice java or .net for web applications? ... View Questions/Answers

Creation of methods  August 6, 2013 at 6:06 PM
I have a only single class and its having only one method ie., main method only.... i need to develop another method that is to reduce my switching code package org.bankPackage.one; import java.util.Scanner; import java.lang.String;; public class BankClass { ... View Questions/Answers

java.lang.ClassNotFoundException: com.sun.faces.config.ConfigureListener  August 6, 2013 at 1:04 PM
Hi, I am developing a program in JSF. While starting the application it is giving following error: Aug 06, 2013 1:05:04 PM org.apache.catalina.core.StandardContext listenerStart SEVERE: Error configuring application listener of class com.sun.faces.config.Conf... View Questions/Answers

After authentication and connection establishmenr, Upload a zipfile by chunks in java  August 6, 2013 at 8:17 AM
Am trying to upload the large file to the website using java. After authentication, I made use of those cookies to upload the file [My authentication part is done] but Am trying to establish the new connection on every chunk upload [Am not sure whether this idea is correct or not], so the file... View Questions/Answers

After authentication and connection establishmenr, Upload a zipfile by chunks in java  August 6, 2013 at 8:17 AM
Am trying to upload the large file to the website using java. After authentication, I made use of those cookies to upload the file [My authentication part is done] but Am trying to establish the new connection on every chunk upload [Am not sure whether this idea is correct or not], so the file... View Questions/Answers

After authentication and connection establishment, Upload a zipfile by chunks in java  August 6, 2013 at 8:15 AM
Am trying to upload the large file to the website using java. After authentication, I made use of those cookies to upload the file [My authentication part is done] but Am trying to establish the new connection on every chunk upload [Am not sure whether this idea is correct or not], so the file is... View Questions/Answers

Pinting restful webservice request on UI.  August 6, 2013 at 5:26 AM
I want to print request XML for Restful webservice request in my UI application in swing. When a user clicks on xml request button, he/she sees xml request on the UI. I could print xml response in my UI but I am not successful to catch request. Please let me know how to achieve that. ... View Questions/Answers

javascript validation  August 5, 2013 at 10:39 PM
I need to validate password with following conditions through java script: min 6 characters, max 50 characters must contain 1 letter must contain 1 number may contain special characters like !@#$%^&*()_+ ... View Questions/Answers

jsp  August 5, 2013 at 5:27 PM
how to edit only one row from multiple row from single jsp page dynamically ... View Questions/Answers

jsp  August 5, 2013 at 5:27 PM
how to edit only one row from multiple row from single jsp page dynamically ... View Questions/Answers

programs  August 5, 2013 at 2:13 PM
give some programs on control statementds ... View Questions/Answers

java memory allocation for member variables and member functions  August 4, 2013 at 2:49 PM
Suppose I have created a class named test with a member function name fun() that has three variables a=5,b=6.My questions are 1>When will the memory be allotted for these variables at run time or at compile time??? 2>Suppose i do not create a main method then will the memory be allotted for membe... View Questions/Answers

How to print this Format exactly?  August 3, 2013 at 11:20 PM
* * * & reverse? ... View Questions/Answers

Moving Applet Problem  August 3, 2013 at 9:07 PM
When image scroll in applet then a blinking on image is continuously working.how to remove this blinking.. import java.applet.Applet; import java.awt.Color; import java.awt.Graphics; import java.awt.Image; public class PlaneAnimation extends Applet i... View Questions/Answers

ternary operator  August 3, 2013 at 7:34 PM
(Ternary operator) Dearness Allowance= 25% of Basic pay house rent allowance= 15% of basic pay Provident fund= 8.33% of Basic pay Net pay=basic pay+Dearness allowance+house rent allowance Gross pay= Net pay-Provident fund ... View Questions/Answers

hosting file  August 2, 2013 at 3:54 PM
i deploy the war in the company's production server then what is difference to host project on my pc and on company server please describe it bcz i am new in this field ... View Questions/Answers

deploy war file  August 2, 2013 at 2:03 PM
i created dynamic web project and run using tomcat server how to deploy the war in the company's production server. ... View Questions/Answers

Java  August 2, 2013 at 11:08 AM
I want to develop the facebook chat application in my project pls help me in writing the code using jsp and servlet. ... View Questions/Answers

Please help  August 1, 2013 at 1:04 AM
Problem: Write a program that does addition, subtraction, multiplication and division operation on real numbers. The operation started with a user entered 2 numbers and click one of the operation buttons, then the correct result will be displayed. The result can‚??t be edited. ... View Questions/Answers

Please help  August 1, 2013 at 1:04 AM
Problem: Write a program that does addition, subtraction, multiplication and division operation on real numbers. The operation started with a user entered 2 numbers and click one of the operation buttons, then the correct result will be displayed. The result can‚??t be edited. ... View Questions/Answers

Student Marks  August 1, 2013 at 1:03 AM
Create a simple application which can calculate 5 marks entered by user and find the grade. Create a simple application which can calculate 5 marks entered by user and find the grade. You must display the grade in a dialog message. You may choose whether to get input (5 marks) from TextField obje... View Questions/Answers

NULL POINTER EXCEPTION  July 31, 2013 at 5:00 PM
What is the Root cause for Class caste exception in struts frame work .and how 2 handle that 1 please help me ... View Questions/Answers

value in div from php, reloading form  July 31, 2013 at 12:09 PM
I am having one form with name and username as 2 field. In this i am checking whether the username is available or not, what I want is to dislay the message in the same line as username text box aligned,while showing message it shd show previously filled values also. I have taken two forms login.... View Questions/Answers

pre-populate form  July 30, 2013 at 9:58 PM
how to pre populate form in php ... View Questions/Answers

how to create notepad in java  July 30, 2013 at 8:32 PM
how to create notepad in java? ... View Questions/Answers

total time calculator (starttime+endtime) in servlet USING DATABASE IN SQL2000 PLZ ANY ONE HELPME  July 30, 2013 at 6:18 PM
<%-- Document : insertdate Created on : Jul 19, 2013, 3:48:28 PM Author : CG0T4908 --%> <%@page contentType="text/html" pageEncoding="UTF-8"%> <%@page import="java.sql.*"%> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0... View Questions/Answers

please solve the programme  July 30, 2013 at 2:12 PM
Develop a java program to find the roots of a quadratic equation ax2+bx+c=0, with the following specification :- Class name :- Quad Data members float a,b,c,d, with a,b,c are the co-efficient & d is the discriminant, x & x2 are the roots of the equation Member methods ? Quad... View Questions/Answers

java code for print true if even and false if odd and print error if any float value with out using conditional and looping statement  July 29, 2013 at 3:49 PM
hi class Even{ public static void main(String[] arg){ int num=Integer.parseInt(arg[0]); System.out.println(true num%2==0); System.out.println(false num%2!=0); System.out.println(error ); } } ... View Questions/Answers

Error !!! Can not find the tag library descriptor for "/WEB-INF/tlds/template.tld"  July 28, 2013 at 1:59 AM
I am not able to fix this problem. I tried different jar files, but no luck. Is there anything else apart from adding jar files that i can try. Please suggest. ... View Questions/Answers

Username availabiltiy  July 27, 2013 at 7:37 PM
Can we check username availability on front end before submitting just with javascript and php not using jquery or ajax ... View Questions/Answers

jagged array in java  July 26, 2013 at 6:40 PM
jagged array in java with example ... View Questions/Answers

How to insert and retreive an image in mysql database using spring mvc framework???  July 26, 2013 at 5:06 PM
I ve solved this problem based on the Product Search Application. Those who need this concept and code segment kindly copy it. Thanks and All the best Web.xml ... View Questions/Answers

run project on company lan  July 26, 2013 at 12:26 PM
sir, i have create dynamic java project of complaint registration and run on local host http://localhost:8080 and by using ip adress but the problem is how to run it at on company server so that everyone can acess this project and register complaint ... View Questions/Answers

Cylinder.java  July 26, 2013 at 8:13 AM
Create a class called Cylinder.java that contains two double-precision instance variables named radius and height. The class should include a constructor that initializes the radius and height variables. Also, you need a class method named volume() that returns the volume of a Cylinder object. Th... View Questions/Answers

how to access the object of one frame on clicking a button without using this keyword  July 26, 2013 at 7:29 AM
import java.awt.*; import java.awt.event.*; class Mybuttons1 extends Frame { public static void main(String args[]) { Button b1; Mybuttons mb=new Mybuttons(); mb.setSize(400,400); mb.setTitle("My buttons"); mb.setVisible(true); mb... View Questions/Answers

need source code fir automatic timesheet filling. can anyone peass help?  July 25, 2013 at 11:13 PM
Hi friends, I wants to develop a software that should automatically fills the time sheet using the login and log out entries. Can anyone please help me? ... View Questions/Answers

how to upload and download images using buttons in jsp?  July 25, 2013 at 8:06 PM
how to upload and download images using buttons in jsp? ... View Questions/Answers

JSF CONNECTION WITH MICROSOFT ACCESS  July 25, 2013 at 12:20 PM
HI CAN U PLEASE HELP ME WITH A PROGRAM WHICH SHOWS HOW TO RETRIEVE DATAS FROM MICROSOFT ACCESS.I HAD TO CREATE AN USER INTERFACE USING JSF BY CONNECTING TO MS ACCESS THANKS DEEPAK ... View Questions/Answers

CRUD operations in spring mvc 2.5  July 24, 2013 at 5:39 PM
Hi, I want to do CRUD operations on jquery datatable such as edit delete select and add row. I am using spring mvc 2.5. How can I do this. Thanks in advance ... View Questions/Answers

Regarding core java  July 24, 2013 at 10:39 AM
how do we find reverse of string with out using String functions ... View Questions/Answers

Core java  July 23, 2013 at 10:27 PM
how to convert reverse of String without using String function ... View Questions/Answers

validating username and password in servlet and redirect to login page with error message if not valid  July 23, 2013 at 8:27 PM
hi i want to validate my login page username and password in my servlet against database and if not valid want to display error message saying "Invalid username and password" in my login page. please help. ... View Questions/Answers

validating credentials and displaying error message in login .jsp if not valid  July 23, 2013 at 8:22 PM
hi, i want to validate user name and password against my database table if not valid i have to display error message in my login page.how to do please help ... View Questions/Answers

Setup in Java  July 23, 2013 at 5:59 PM
Hello I want to know that how to create make setup in java of a java program or jFrame applicatio or Applet.Plz give answer ASAP. Thanks & Regards Sunil Kumar ... View Questions/Answers

Java Web Browser Problem  July 23, 2013 at 5:55 PM
Hello When run my web browser this is not displaying complete page any of the website like other browser.So Plz help me. package vision.sun; import java.awt.Container; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.even... View Questions/Answers

c#  July 23, 2013 at 3:55 PM
how to find out the size of the BMP image in C# ... View Questions/Answers

c#  July 23, 2013 at 3:53 PM
how to find out the size of the BMP image ... View Questions/Answers

meenakshi  July 23, 2013 at 1:07 PM
HIIII, Any one can help me,, I have created a form in jsp and bind it by using spring:bind in spring. I have use ModelAndView of SimpleFormController . But when i called onSubmit thn onSubmit not called,,, ... View Questions/Answers

Finding page count in any file  July 21, 2013 at 9:16 AM
Hi, I want to find out the page count in any file (doc,ppt,pdf,image,etc...). Is there any universal API to deal with any file irrespective of the file extension.Its bit urgent. Please let me know your inputs on this. I had gone through iText API for converting the files into PDF. But I... View Questions/Answers

tree using jsp code  July 20, 2013 at 11:37 PM
i want to draw a tree structure of a family hierarchy using jsp code. ... View Questions/Answers

Please explain @interface with an example  July 19, 2013 at 6:22 PM
Here is the code snippet: @Retention(RUNTIME) @Target({ FIELD }) public @interface InjectProperty { boolean required default true; } Main Application: @InjectProperty(required = false) private Boolean isTrue; @Inject... View Questions/Answers

Please explain @interface with an example  July 19, 2013 at 6:16 PM
Here is the code snippet: @Retention(RUNTIME) @Target({ FIELD }) public @interface InjectProperty { boolean required default true; } Main Application: @InjectProperty(required = false) private B... View Questions/Answers

jsp servlet  July 19, 2013 at 3:55 PM
i have to create one application in which at one page login id will be entered and after entering it will go to second page where first name,last name, date of birth has to be filled and save buttom has to be pressed and all data has to be stored in xml file after pressing save button on 2nd page... View Questions/Answers

developing a system using php n mysql  July 18, 2013 at 6:25 AM
hai guys...i need your help to developing a system to record reports.Where in this system main is login(user name n password)...then new report,n search 4 old report,,thenview report by yearly,monthly,n category and also can print them..beside that,the also need to record new complaint where cat... View Questions/Answers

getting following error org.hibernate.AnnotationException: No identifier specified for entity: inheritance_tutorial17.TwoWheeler  July 17, 2013 at 6:47 PM
when i am running following code i am getting following error... package inheritance_tutorial17; import javax.persistence.GeneratedValue; import javax.persistence.Id; public class Vehicle { @Id @GeneratedValue private int id; private String na... View Questions/Answers

JDBC  July 17, 2013 at 4:38 PM
can u send me the code of jdbc how to join two tables that are in relation ... View Questions/Answers

STRUTS QUESTION  July 17, 2013 at 4:30 PM
can two Action classes communicate each other using RequestDispatcher ... View Questions/Answers

Sliding window protocol  July 16, 2013 at 10:13 PM
Hello Everyone. Will anybody send me the code to make sliding window protocol animation using java swings. I have to do project with all types sliding protocols such as selectiverepeat,gobackN..etc. I have studies lots of data but i cant understand that clearly..... I want to present only animati... View Questions/Answers

where is the definition of keywords like this, int, void present in Java ? e.g the definition of methods are in API.  July 16, 2013 at 7:41 PM
where is the definition of keywords like this, int, void present in Java ? e.g the definition of methods are in API. ... View Questions/Answers

created a transfer fund page in my project  July 16, 2013 at 5:32 PM
hello, any one plz help me, I have created a transfer fund page in my project.this page have 3 values **1.To account no 2.transaction password 3. amount** amount is set in Spring-Config.xml file is 10000. Now i enter all the values in fields, now if we click in transfer button an... View Questions/Answers

asp.net  July 16, 2013 at 3:40 PM
Create a web page that has the restaurant fields like Name, Address, City, State, Phone, Website, EMail on it. Also, add a Submit button on the page. When you enter information in the restaurant fields and click on Submit it should display all that information below the Submit button. i want answ... View Questions/Answers

print form information when click on print button  July 15, 2013 at 1:22 PM
Sir,I desingn institute webside using jsp and strut by using platform netbean 7.2.So request you please help for printing form information by clickin print button after submit data in the database. ... View Questions/Answers

html button  July 15, 2013 at 11:09 AM
when i click the submit button the entered data will be displayed below the submit button please help me ... View Questions/Answers

how many scenarios is having to developing web based application by using spring mvc.  July 14, 2013 at 12:50 PM
hello everyone, I want to know how many scenarios are available to developing web based application using spring. i know simple form controller ,abstract controller and abstract wizard controller.and please help me other scenarios.? and please briefly explain about spring flow?. h... View Questions/Answers

how to update the value of jslider  July 13, 2013 at 8:07 PM
hello, I want to make a audio player but the jslider is not updating help me. ... View Questions/Answers

how to update the value of jslider  July 13, 2013 at 8:07 PM
hello, I want to make a audio player but the jslider is not updating help me. ... View Questions/Answers

how to update the value of jslider  July 13, 2013 at 8:07 PM
hello, I want to make a audio player but the jslider is not updating help me. ... View Questions/Answers

how to update the value of jslider  July 13, 2013 at 8:07 PM
hello, I want to make a audio player but the jslider is not updating help me. ... View Questions/Answers

how to update the value of jslider  July 13, 2013 at 8:07 PM
hello, I want to make a audio player but the jslider is not updating help me. ... View Questions/Answers

null pointer exception in jsp  July 13, 2013 at 4:22 PM
index.html <html> <body> <table align=center> <form action="Login.jsp" method="get"> <tr> <td colspan=2><h1>Student Login</h1></td></tr> <tr> <td>UserName</td> <td><i... View Questions/Answers

DMCA.com