Home Answers Questions Question and Answers


 
 

Latest Programming Questions askedAsk your question?

java question  May 9, 2011 at 11:55 AM
comparator and comparable ... View Questions/Answers

java  May 9, 2011 at 11:54 AM
Write Java programs that use recursive and non-recursive functions to traverse the given binary tree in(a) Preorder(b) Inorder and(c) Postorder. ... View Questions/Answers

Retrieving data from data base using jsp combo box  May 9, 2011 at 11:52 AM
Hi guys please help me , i have on GUI page int that Server type(like apache,jboss,weblogic) one combo box is there and another filed is version of the server(like 1.0,2.0) like different version of the servers once i select the server type and version of the server it has to display the process ... View Questions/Answers

Advertisement

Servlets  May 9, 2011 at 11:02 AM
when i am compiling the following servlet program it compiles the successfully.but when i try to run the program it gives the following error. Exception in thread "main" java.lang.NoSuchMethodError: main Here is the my code: im... View Questions/Answers

java question  May 9, 2011 at 10:50 AM
what r the Comparator vs Comparable ... View Questions/Answers

sql  May 9, 2011 at 9:05 AM
i need a query for selecting values from a table till a certain date...my database has date in the format '01-JAN-01 12.00.00.000000000 AM' ... View Questions/Answers

i need a help in this please  May 9, 2011 at 4:26 AM
The factorial of a nonnegative integer n is written n! (pronounced ‚?? n factorial‚??) and is defined as follows: n!=n . (n-1) . (n-2) . .... . 1 (for values of n greater than or equal to 1) and n!=1 (for n=0) for example, 5!=5.4.3.2.1, which is 120 a) Write an application that reads a nonegative... View Questions/Answers

generate file  May 9, 2011 at 12:40 AM
How to generate file(.doc or .xls or .txt ) with containing data in it.By clicking on a link. ... View Questions/Answers

hi  May 8, 2011 at 11:30 PM
i want to use dropdown list(combo box) in html...it should contain name of country's i,e fetched from db...country names should come from db to html dropdown list...and when user selects perticular country it should go 2 db n update in db ....so with out using javascript ...only html,java,servle... View Questions/Answers

hi  May 8, 2011 at 11:30 PM
i want to use dropdown list(combo box) in html...it should contain name of country's i,e fetched from db...country names should come from db to html dropdown list...and when user selects perticular country it should go 2 db n update in db ....so with out using javascript ...only html,java,servle... View Questions/Answers

hi  May 8, 2011 at 11:30 PM
i want to use dropdown list(combo box) in html...it should contain name of country's i,e fetched from db...country names should come from db to html dropdown list...and when user selects perticular country it should go 2 db n update in db ....so with out using javascript ...only html,java,servle... View Questions/Answers

hi  May 8, 2011 at 11:28 PM
i want to use dropdown list(combo box) in html...it should contain name of country's i,e fetched from db...country names should come from db to html dropdown list...and when user selects perticular country it should go 2 db n update in db ....so with out using javascript ..... View Questions/Answers

java beginner  May 8, 2011 at 11:09 PM
hai a i'm beginner 2 java... i want to fetch data from database using combo box(drop down list) without using javascript...when i click list(ex:countrys should b selected)selected country should get inserted into db and should show list of countrys from db which i never giv... View Questions/Answers

Implementing voice commands  May 8, 2011 at 11:06 PM
Am trying to write a java program to implement voice commands within a windows platform using preferably java (though any language will do). I would be glad for any tips and procedures that would help me do this. Thank you. ... View Questions/Answers

Bank project  May 8, 2011 at 6:03 PM
Create a class Customer a. Having Instance variables Customer id(int), Customer Name(String), Customer Address(String), Customer Telephone(String) and Customer Email id(String) b. Method which generates Customer Id using a counter (static variable). Customer ID starts from 1000. c. Construc... View Questions/Answers

Swing Program  May 8, 2011 at 5:33 PM
write a java swing program to get username and password. The name contains only characters while password is masked with the characters "*". Apply checks for all validation. ... View Questions/Answers

MPMoviePlayerContentPreloadDidFinishNotification' is deprecated  May 8, 2011 at 2:05 PM
Hi, While compiling compiler is giving following error: warning: 'MPMoviePlayerContentPreloadDidFinishNotification' is deprecated (declared at /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.2.sdk/System/Library/Frameworks/MediaPlayer.framewor... View Questions/Answers

Program to display palindrome numbers between some range  May 8, 2011 at 1:27 PM
Hi!I want a java program to display palindrome numbers between 100 to 1000.can you please explain me the logic with an example ... View Questions/Answers

Framework......  May 8, 2011 at 12:16 PM
What is framework? What is difference between framework and package? ... View Questions/Answers

jsp scriptlet  May 8, 2011 at 10:13 AM
can a method defined in the jsp scriptlet? ... View Questions/Answers

JSP error  May 8, 2011 at 10:11 AM
what is difference between global-exception and error-page in jsp. which condition they are use. ... View Questions/Answers

Java inheritence  May 8, 2011 at 9:57 AM
if there are 20 methods in a class if only 2 methods are used for inheritence is it better idea to use inheritence or use other logic. ... View Questions/Answers

tomcat  May 8, 2011 at 12:39 AM
Is it necessary to restart the server if we change the JDK path in tomcat server? ... View Questions/Answers

read image  May 7, 2011 at 10:14 PM
java code to read an image in the form of an array. ... View Questions/Answers

how to find the roots of polynomial equation of 'n'th degree in java  May 7, 2011 at 5:39 PM
i am new to java field and i wanted to find the roots of nth degree polynomial equation pls help me. thanks. ... View Questions/Answers

Sql Query  May 7, 2011 at 4:30 PM
Hi M Navjeet Ghai I want to know How to Show A name(Like Navjeet Ghai And Manpreet Singh Sodhi) of employees from a employee table as N.Ghai & M.S.Sodhi by using sql query ... View Questions/Answers

Servlets  May 7, 2011 at 1:51 PM
when i deployed the following servlet program in tomcat i get the following errors description The server encountered an internal error () that prevented it from fulfilling this request. exception javax.servlet.ServletException: Error instantiating servlet class InsertServlet ... View Questions/Answers

Jsp  May 7, 2011 at 11:38 AM
how can we compile the jsp file in dos command prompt. when i enter the jspc filename.jsp in cmd i got the error like 'jspc' is not recognized as an internal or external command, operable program or batch file. how can we create the batch file and tell me the procedure for to cre... View Questions/Answers

networking  May 7, 2011 at 3:07 AM
how can i configure my xp computer as a ftp server and assign a name to it to access on the name rather than on its ip. just i need steps. AND WHY YOU INCLUDE NETWORKING ON THE ABOVE SELECT CATEGORY ? JUST AS A COMMENT FOR U. 10Q. ... View Questions/Answers

networking  May 7, 2011 at 3:07 AM
how can i configure my xp computer as a ftp server and assign a name to it to access on the name rather than on its ip. just i need steps. AND WHY YOU INCLUDE NETWORKING ON THE ABOVE SELECT CATEGORY ? JUST AS A COMMENT FOR U. 10Q. ... View Questions/Answers

networking  May 7, 2011 at 3:06 AM
how can i configure my xp computer as a ftp server and assign a name to it to access on the name rather than on its ip. just i need steps. AND WHY YOU INCLUDE NETWORKING ON THE ABOVE SELECT CATEGORY ? JUST AS A COMMENT FOR U. 10Q. ... View Questions/Answers

Swing Program  May 7, 2011 at 2:30 AM
Write a java swing program to search the details of the students. Searching is performed on student's first name. The details of all those students having same name as in given in searching criterion will be displayed in a table, and also delete a selected record from a table. Use JDBC. ... View Questions/Answers

Swing Program  May 7, 2011 at 2:24 AM
Write a java swing program that takes name and marks as input with all validation. The name and marks will be displayed in message box when user clicks on a button. ... View Questions/Answers

Swing Program  May 7, 2011 at 2:21 AM
Write a java swing program to calculate the age from given date of birth. ... View Questions/Answers

Swing Program  May 7, 2011 at 2:18 AM
write a java swing program to get user name and password. The name contains only characters while password is masked with the character "*". Apply checks for all validation. ... View Questions/Answers

x-axis and y-axis  May 7, 2011 at 2:07 AM
hi,, i want to to write a program that display a graph of x-axis and y-xais when i entered the parameters of the function. ... View Questions/Answers

Session management  May 6, 2011 at 11:54 PM
How To Maintain Session in jsp for Online exam project? ... View Questions/Answers

populate dropdown box  May 6, 2011 at 9:32 PM
hi, Is there any ways in which i can populate my dropdown menu with values from 1 to n (n = the value stored in database)using java script or jsp, either is fine? Ex: If value corresponding to selected item in dropdown menu is 10 then the second dropdown box should contain values from 1 ... View Questions/Answers

SQL query  May 6, 2011 at 6:15 PM
I need to combine two tables in order to get the values. As an example we have three tables having namely usertable,job table and jobaccess table. In usertable (Userid,Empid,name,Role) details have been stored. In the Job table (Jobid,Jobname,Location) details have ... View Questions/Answers

java program  May 6, 2011 at 5:40 PM
Given a string and a number n, find the n th distinct repeating character. ... View Questions/Answers

program  May 6, 2011 at 5:39 PM
Given a string and a number √Ę‚?¨ň?n√Ę‚?¨‚?Ę, find the √Ę‚?¨ň?n√Ę‚?¨‚?Ęth distinct repeating character ... View Questions/Answers

method returning null on JSP page.Plz HELP!!!  May 6, 2011 at 5:33 PM
public String getServerAddress(String sName,int sPort,String pKey) { String sAddress = null; if(sPort>=0) { sAddress="http"+"://"+sName+":"+sPort+"/browser/"+pKey; } else { ... View Questions/Answers

method returning null on JSP page.Plz HELP!!!  May 6, 2011 at 5:31 PM
public String getServerAddress(String sName,int sPort,String pKey) { String sAddress = null; if(sPort>=0) { sAddress="http"+"://"+sName+":"+sPort+"/browser/"+pKey; } else { sAddress="ht... View Questions/Answers

how to find inverse of n*n 2d array in java  May 6, 2011 at 5:25 PM
I reached upto code of printing the matrix as: Assume that matrix is square matrix where row=column code is: public class ReadContents{ public static void main(String args[]) System.out.println(); System.out.println("The matrix is :"); for( k=0... View Questions/Answers

mail problem  May 6, 2011 at 3:32 PM
Sir, I tried ur send mail example but it giveng follwing error "Could not connect to SMTP host: localhost, port: 25" ,tried sendind from my gmail ac to rediffmail ac mailapi <html> <head> <title>Mail API</title> </he... View Questions/Answers

Web based workflow application example?  May 6, 2011 at 2:59 PM
Hello there, Can anyone please send a sample project which is a web-based java workflow application? If it is built using Spring, Struts or JSF Framework it would be wonderful. If you know any links where I can download from, please share. Thanks in advance!! Thanks! ... View Questions/Answers

joomla  May 6, 2011 at 2:39 PM
how can i develop an web based system using joomla? ... View Questions/Answers

simple query  May 6, 2011 at 1:17 PM
Write a stored procedure to retrieve a column which are less then or equal to that column using if statement ... View Questions/Answers

Friendly URl  May 6, 2011 at 12:53 PM
creating a SEO friendly URL ... View Questions/Answers

Tomcat  May 6, 2011 at 11:33 AM
why we get the error like HTTP Status 500 -.what is the solution for this problem ... View Questions/Answers

how read data from doc file in same formate in jsp  May 6, 2011 at 11:10 AM
how we can read and display data on jsp page, from doc file with the same formatting. ... View Questions/Answers

Exception in jsf application  May 6, 2011 at 10:40 AM
when i am running application i am getting org.apache.commons.logging.LogConfigurationException and HTTP Status 404 -The requested resource () is not available Exception so i want to know reason behind these exception please help me out to solve these Exception ... View Questions/Answers

help in java  May 6, 2011 at 10:38 AM
Create a class named Order that performs order processing of a single item. The class has five instance variables (fields) : customer name, customer number, quantity ordered, unit price, and total price. Define a constructor that accept and initialize all fields except the total price field. Incl... View Questions/Answers

help in java  May 6, 2011 at 10:37 AM
Write an application that prompt the user to enter a number to use as an array size, and then attempt to declare an array using the entered size. Java generates a NegativeArraySizeException if wou attempt to create an array with a negative size, and a NumberFormatException if you atempt to create... View Questions/Answers

help in java  May 6, 2011 at 10:36 AM
Define a class named Money whose objects represent amounts of U.S. money. The class will have two instance variables of type int for the dollars and cents in the amount of money. Include a constructor with two parameters of type int for the dollars and cents, one with one parameter of type int fo... View Questions/Answers

help in java  May 6, 2011 at 10:35 AM
The factorial of a nonnegative integer n is written n! (pronounced √Ę‚?¨Ň? n factorial√Ę‚?¨¬?) and is defined as follows: n!=n . (n-1) . (n-2) . .... . 1 (for values of n greater than or equal to 1) and n!=1 (for n=0) for example, 5!=5.4.3.2.1, which is 120 a) Write an application that reads a no... View Questions/Answers

how to read and write xml files in javascript  May 6, 2011 at 10:06 AM
hi m very new to javascript and xml,, now i want to read and write xml files in javascript,, please give me a sample code to do this ... View Questions/Answers

How to call print dialog box through JMenuItem?  May 6, 2011 at 10:05 AM
What is the way to call the print dialog box through JMenuItem to print the current page like we can do in javascript by calling window.print() function? ... View Questions/Answers

help in java  May 6, 2011 at 9:29 AM
Create 3 shopping carts from a Cart class. Each class should have four items in it, a title, a price for the 4 items and the number of each. Your shopping cart should use private variables, so use getter and setter methods to access the items (variables) in your Cart Object. After you have creat... View Questions/Answers

About Jsp  May 5, 2011 at 11:21 PM
Hello sir, I am developing online Quiz project in jsp using MySql Database. I want to know that How I will show Questions from database One by One on Same page and also want to calculate Result for the User. ... View Questions/Answers

Calculator class  May 5, 2011 at 10:34 PM
I am a beginner in Eclipse. I have to do a program called calculator that adds numbers. This is my code so far: //Margaret //ICS 4U /* * Created on Apr 29, 2011 * * TODO To change the template for this generated file go to * Window - Preferences - Java - Code Style - Code Templates *... View Questions/Answers

j2ee  May 5, 2011 at 10:14 PM
hi i'm beginner 2 j2ee.. my question is... (jdbc connecton): when user enters his fname,lname,address,city from ui(html) it gets inserted into db...my problem is when user submit without entering i,e blank it also get inserted into db even though i have given not null for e... View Questions/Answers

j2ee  May 5, 2011 at 10:08 PM
hi i'm beginner 2 j2ee.. my question is... when user enters his fname,lname,address,city from ui(html) it gets inserted into db...my problem is when user submit without entering i,e blank it also get inserted into db even though i have given not null for each elements in table.... ... View Questions/Answers

j2ee  May 5, 2011 at 10:08 PM
hi i'm beginner 2 j2ee.. my question is... when user enters his fname,lname,address,city from ui(html) it gets inserted into db...my problem is when user submit without entering i,e blank it also get inserted into db even though i have given not null for each elements in table.... ... View Questions/Answers

K-means clustering on WebLog Data, for 2-Dimenshional input  May 5, 2011 at 9:58 PM
The following is a JSP code for K-MEANS CLUSTERING .... My proect , titled "Pattern Analysis of Web Usage for System Improvement", involves the web log info from a database and then considering the attributes IP address and WEBPAGES,IN THE FORM OF NUMBERS(X,Y) for K-MEANS CLUSTERING... the output... View Questions/Answers

FileNotFoundException  May 5, 2011 at 6:32 PM
<%@page import="com.kit.db.*, com.kit.db.kb.*, com.kit.log.*, java.util.*, com.kit.db.mysqldb.*, com.kit.db.util.*, com.kit.db.seats.*, java.sql.*, ... View Questions/Answers

how to focus dojo slider to a particular value and then disabling dojo slider so that value not changes on clicking?  May 5, 2011 at 6:30 PM
How to focus dojo slider to a particular value (say 2.5 )on the slider and then disabling dojo slider so that value not changes on clicking on the dojo slider?ie i want to focus dojo slider to a particular value and then make it disable. <!DOCTYPE HTML PUBLIC "-... View Questions/Answers

TOMCAT  May 5, 2011 at 6:22 PM
why we got the error like HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception javax.servlet.ServletException: Error instantiating servlet class InsertServ... View Questions/Answers

JAVA DATABASE CONNECTION WITH JTABLE  May 5, 2011 at 5:33 PM
HOw To Load Database Contents From Access Database to JTable without using Vector. ... View Questions/Answers

javamail  May 5, 2011 at 4:31 PM
i need java mail code,i had use some code,that give me ssl error in java,plz help me,i need urgent basises. ... View Questions/Answers

need to update key , value pair in map from properties file  May 5, 2011 at 4:24 PM
I have a map with key , value pair. with key as integer and value as string datatype. I want the keys and values to be dynamically updated into map. that is i have .properties file where i will update the keys and values whenever needed. i want those values to be updated in map. can anyone ple... View Questions/Answers

url parameters displayed in short sentence  May 5, 2011 at 2:23 PM
In my url parmeter like below http://127.0.0.1:7778/project/preview.jsp.codesvr=127.0.0.1:9997&id="1" It will displayed the value of id=1 ... I want to change this url to bookmarked url like http://127.0.0.1:7778/project/preview/1 .... this url also retrive the value ... View Questions/Answers

Help needed on java standalone app and default browser interaction.  May 5, 2011 at 1:43 PM
Hi Developers and tutors, Is anyone able to guide on how am i able to extract the url thats displaying on my default browser to my java standalone application? Platform Windows Browser IE7 Any from of help would be deeply apperciated ... View Questions/Answers

i want to create website,with manu with three level submenu on top side of page please send me code java  May 5, 2011 at 1:35 PM
iam createing wibsite thats using eclipse andtomcat server,please help me to write menu with three level submenu ... View Questions/Answers

Moving The Images  May 5, 2011 at 12:44 PM
How to moving multiple images in one frame using swings? ... View Questions/Answers

TOMCAT  May 5, 2011 at 12:15 PM
When i am deploy the servlet class file in tomcat server i get the following errors pe Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception javax.servlet.ServletException: Error i... View Questions/Answers

JAVA  May 5, 2011 at 11:01 AM
i got the following error when i am run the pprogram Exception in thread "main" java.lang.NoSuchMethodError: main i am setting the jar file in the classpath also C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\website_app\WEB-I NF\classes>set CLASSPATH=C:\program Files\Apache Softw... View Questions/Answers

swing  May 5, 2011 at 4:32 AM
How to fetch data from a row of a JTable and save the data in a database table dynamically? How to fetch data from database table and set the values in a Jtbale rows dynamically? How to set the no. of rows of a JTable dynamically? Please give me solutions? Thanks in advance... ... View Questions/Answers

online exam portal  May 4, 2011 at 8:16 PM
i am thinking of developing a small online exam pattern with multipe choice questions , can u please give me any idea of how to start ... View Questions/Answers

how to re size image proportionately using java for different images like jpeg, png, gif.  May 4, 2011 at 6:55 PM
hi, i need sample code for re size image proportionately using java for different images like jpeg, png, gif, this code for my application plz help. Thanks Hari! ... View Questions/Answers

FileReader  May 4, 2011 at 5:42 PM
How to read a file in java? My file like this Name,Age, sex i read the file and i want to insert the data in the Name obj and age obj and sex obj how? ... View Questions/Answers

String  May 4, 2011 at 5:38 PM
How to Convert sunnapu gopal to Sunnapu Gopal in java using String? ... View Questions/Answers

Servlet  May 4, 2011 at 5:20 PM
when i add the following xml code to the web.xml it throws the same error <web-app> <servlet> <servlet-name>InsertServlet</servlet-name> <servlet-class>InsertServlet</servlet-class> </servlet> <servlet-mapping... View Questions/Answers

how to find subarray from given large 2d array of arbritary dimension  May 4, 2011 at 5:19 PM
my code is: import java.lang.*; import java.io.*; import java.io.File; import java.io.IOException; import java.util.ArrayList; import java.util.List; import java.util.Scanner; public class SubMatrix { public static void main(String[] args) throws IOException { ... View Questions/Answers

Tomcat  May 4, 2011 at 3:36 PM
when i am compiling my program i got .class file.but when i am try to run it it shows the error like Exception in thread "main" java.lang.NoClassDefFoundError: InsertServlet how can we resolve this. and what can we type in the url path of the tomcat to see the output ... View Questions/Answers

Reversing dojo slider to make it slide from right to left rather left to right as given  May 4, 2011 at 3:02 PM
I am using Dojo slider in my project But i want to reverse the slider chosen value so that it slides from right to left ie the blueish part on slider must start from right side of the slider so that slider slides from right to left(not from left to right as in given example) how can i reverse thi... View Questions/Answers

JAVA  May 4, 2011 at 11:30 AM
when i am compiling the program first time it was successfully compiling.but from the second time i got the errors like InsertServlet.java:3: package javax.servlet does not exist import javax.servlet.*; ^ InsertServlet.java:4: package javax.servlet.http does not exist import javax.servlet.http.*... View Questions/Answers

Can anyone assist with the coding of this game?  May 4, 2011 at 9:04 AM
I am in need of the coding for this game. I need to write a "Hangman" game that will randomly generate a word from a text file and will prompt the user to guess one letter at a time. Each letter in the word needs to be displayed with an asterisk. When the user makes a correct guess of a letter, t... View Questions/Answers

I need Oracle connector jar file. where will i download?  May 4, 2011 at 8:49 AM
I need Oracle connector jar file. where will i download? ... View Questions/Answers

java class  May 3, 2011 at 8:39 PM
write a java program to display a msg "window closing" when the user attempts to close the window.(a) create a window class (b) create frame within the window class (c) extends window adapter class to display the msg "window closing". ... View Questions/Answers

java app  May 3, 2011 at 8:31 PM
create an applet to display the Fibonacci numbers ... View Questions/Answers

Core Java-ArrayList  May 3, 2011 at 8:00 PM
How do i find duplicates in ArrayList. First i add some elements to ArrayList, then how do i find the duplicates and show the duplicate elements. Give an example ... View Questions/Answers

JAVA  May 3, 2011 at 6:22 PM
plz send me code, How to find fare form one place to another place using Java,Jsp,Servlets? for example:i need to calculate from bangalore to gulbarga..i need to claculate the bus fare,distance in kms.. ... View Questions/Answers

how to create unit matrix in java of arbritary dimensions  May 3, 2011 at 5:35 PM
i want to create the unit matrix of arbritary dimensions say (n*m).i m a new beginner to java.someone having the program for that? help would be appreciable. ... View Questions/Answers

hasim  May 3, 2011 at 4:29 PM
how to define session only a one page time limit 5 sec. in jsp page ... View Questions/Answers

Question  May 3, 2011 at 4:27 PM
1- what is Servlet work flow 2- how to identify the Jsp Size(by default) ... View Questions/Answers

SERVLETS  May 3, 2011 at 3:34 PM
I follow the same procedure what you send by the links.but i got the same errors coding is: import java.io.*; import java.sql.*; import javax.servlet.*; import javax.servlet.http.*; public class InsertServlet extends HttpServlet{ public void doPost(... View Questions/Answers

EAR  May 3, 2011 at 2:15 PM
Where to cteate JSP page in EAR project in Eclipse ... View Questions/Answers

EAR  May 3, 2011 at 2:15 PM
Where to cteate JSP page in EAR project in Eclipse ... View Questions/Answers

Servlets  May 3, 2011 at 1:46 PM
Java Servlet technology... View Questions/Answers

DMCA.com