Home Answers Questions Question and Answers


Latest Programming Questions askedAsk your question?

mapping  July 2, 2010 at 10:28 PM
how does the web.xml works and how does the mapping done will you explain me? ... View Questions/Answers

GUI testing/software testing  July 2, 2010 at 9:39 PM
how to create a GUI testing/software testing module in java? ... View Questions/Answers

linux4.2 supported jdk versions  July 2, 2010 at 8:30 PM
linux 4.2 supported jdk versions ?.is it supports to jdk1.6(linu4.1.2)or not?please giive me clarifications ... View Questions/Answers


java implementation  July 2, 2010 at 7:53 PM
Im M.Phil research scholar,i need a software testing module implemented in java.My research area is software testing,if anyone could help me out in this? ... View Questions/Answers

when sending the mail from java I am getting the below error  July 2, 2010 at 1:42 PM
when sending the mail from java I am getting the below error:Exception in thread "main" java.lang.NoClassDefFoundError: javax.mail.internet.MimeMessage at java.lang.Class.initializeClass(libgcj.so.7rh) at SendMail.main(SendMail.java:23)Caused b... View Questions/Answers

javamail supported java versions (mail.jar or jdk versions)  July 2, 2010 at 1:37 PM
Hi.Javamail suported version jdk version? ... View Questions/Answers

java script code  July 2, 2010 at 12:56 PM
I want make header like-http://www.sigmainfotech.com.au/ this sitebut in this site header make in flash,I use java script or any other script.like that side click left side image it expand in header, and same way header bottom image mouse over it expand.so please help me asap... View Questions/Answers

scriptlet tags in jsp  July 2, 2010 at 10:36 AM
i know we can do method implementation in declarative tag, but can we do method implementation in scriptlet tag? please reply, if poss with example. ... View Questions/Answers

JSP Code  July 2, 2010 at 10:28 AM
Hi,Do we have a datagrid equivalent concept in JSP? If so, then please help me to find the solution of the problem.Its Urgent.........Please...........RegardsVinay Kumar Rai ... View Questions/Answers

JSP Code  July 2, 2010 at 10:25 AM
Hi,I have a problem in limiting the number of row display in the table.For example, if i have 1000 records in my table & want to display only 10 records per pages in jsp, then how can i achieve this concept.Please help me to find the solution. Its really urgent.... View Questions/Answers

struts hibernate  July 1, 2010 at 6:27 PM
how to integrate struts and hibernate ?is need any plugin ?programmer manually create that plguin? ... View Questions/Answers

java  July 1, 2010 at 4:11 PM
twin primes are prime numbers whose difference is 2.for example3,5;5,7;11,13;17,19;etc.define a class number problem with suitable methods which takes an integer argument and prints out all the twin primes below the number ... View Questions/Answers

java  July 1, 2010 at 4:04 PM
A programe in java for making a calculator. ... View Questions/Answers

calculator  July 1, 2010 at 4:01 PM
Some ideas for the project of calculator. ... View Questions/Answers

Copy a Html chart into PPT  July 1, 2010 at 10:28 AM
Hi Experts,i am facing with a problem without solution.I have a Html site and would like to write a code so that by clicking on a button the graph will be copied in an active ppt.Could you please help?Thank you in advance.CheersDreams... View Questions/Answers

Asking for exercise  June 30, 2010 at 11:10 PM
Can you send me a small exercise question -a prograsm for collections in java? ... View Questions/Answers

arrays  June 30, 2010 at 9:08 PM
1)write a program that take integer array as input and find the second largest number in array?(Array values taken from keyboard)?2)Given two array A & B and B has same elements same as A but one element missing? Write a program that take arrays A & B as input and find missing element ... View Questions/Answers

OOPs  June 30, 2010 at 8:35 PM
i know what is an abstract class and what is an interface but i wanted to know in which scenarios i use them and why nowadays java is stressing on interface programming.and i also want to know where do we exactly implement singleton pattern in our application. ... View Questions/Answers

how to get a values from a multipart/form-data  June 30, 2010 at 3:57 PM
Dear sir , I used your code for getting a values,i used the fllowing<%@ page language="java" %><html><body><SCRIPT type="text/javascript"> function submitForm(f){ var form = document.createElement(&quo... View Questions/Answers

social bookmarking  June 30, 2010 at 11:38 AM
<?php$services = array ( "digg" => array ( "Target" => "http://digg.com/submit?phase=2&url=PERMALINK&title=TITLE", "Image" => "digg-48x48.png", "Title" => "Digg" ... View Questions/Answers

Printing numbers in pyramid format  June 30, 2010 at 10:42 AM
Q) Can you please tel me the code to print the numbers in the following format: 1 2 3 4 5 6 7 8 9 10 ... View Questions/Answers

website deployment  June 30, 2010 at 8:46 AM
Hi All,Requirment: To fetch records depends on the scenario from database and display on webpages in a grid format with paging.Bind the table data corresponding to combo box selection.IDE : NetBeans 6.7Web Server : Apache Tomcat 5.5Database Server: FireBird... View Questions/Answers

dout  June 30, 2010 at 7:22 AM
where to down load jdk latest vesion ... View Questions/Answers

java number to word  June 30, 2010 at 12:32 AM
Can somebody please fix this to come out with the word, not the number 23?import java.util.Scanner;public class WordExtractor5{ //----------------------------------------------------------------- // Pulls integers from a string to form a word. ... View Questions/Answers

How to convet reader to double?  June 29, 2010 at 11:13 PM
I have this set of coding which read the input from the com1 port. I wan to ask how to convert the input (the reader) into Double so that the input can perform arithmetic operation?/* * To change this template, choose Tools | Templates * and open the template in the editor.... View Questions/Answers

why mails are sending from the linux server  June 29, 2010 at 2:07 PM
Mails are not sending from the linux server.We have 3 systems. server system is windows 2003 server and Our java application is inside linux server. Whenever we send the mails from java application,mail are not sending .Mail server is installed on windows 2003 server (all are in network). ... View Questions/Answers

subclasses an imported class  June 29, 2010 at 11:15 AM
Sir,Pls help me to write:Program to illustrate subclasses an imported classThanks ... View Questions/Answers

POST AND GET METHOD  June 29, 2010 at 1:58 AM

java  June 29, 2010 at 12:15 AM
write a java program that will read a positive integer and determine its binary equivalent ... View Questions/Answers

java  June 29, 2010 at 12:13 AM
write a java program that will read a positive integer and determine its binary number ... View Questions/Answers

jsp code  June 28, 2010 at 6:59 PM
in a jsp a table is existed ,in table each row contain one checkbox and name and desription how to delete specific rows in a table . ... View Questions/Answers

XML  June 28, 2010 at 3:56 PM
Write a program using SAX that will count the number of occurrences of each element type in an XML document and display them. The document file to be processed should be identified by the first command-line argument. ... View Questions/Answers

jdbc,odbc,MySQL,swing  June 28, 2010 at 3:42 PM
write a code that displays a menu list of all available database drivers in a window,and allows the user to select any driver from this list and execute any query (within a text field)related to the selected database driver.It is very well known as jdbc front end of a database. ... View Questions/Answers

merge sorting in arrays  June 28, 2010 at 3:31 PM
Write a program to insert string or characters to an array and apply merge sorting on this array ... View Questions/Answers

to add on to my queries  June 28, 2010 at 1:32 PM
Dear Experts,Sorry but I am worried that I did not explain clearly so I am adding in the error message I get from Netbean IDE when I run that queries using the last solution provided.I'm puzzled that given a perfect match - that is same subjects from parent's requiremen... View Questions/Answers

further clarification needed  June 28, 2010 at 1:27 PM
Dear Experts,I refer to the last answer you have written to me.The good news is that there's no error already but the code is still not working for me. As Tsuch, I hope to clarify about the query statement.I would like to know how by executing that query statemen... View Questions/Answers

jsp  June 28, 2010 at 10:57 AM
how to write the jsp code to enable and disable the textfields based on the selection of drop down list elements ... View Questions/Answers

java compilation error  June 28, 2010 at 10:38 AM
hi i am getting org.hibernate.exception.GenericJDBCException: Cannot open connection exception when runnig the code why this exception is coming ... View Questions/Answers

html dropdownlist code  June 28, 2010 at 1:42 AM
hi how to get textfield in html when i select the option others in the dropdown list, pls provide the code? ... View Questions/Answers

DynaActionform in JAVA  June 27, 2010 at 9:54 PM
how to use dynaActionFrom?why we use it?give me a demo if possible? ... View Questions/Answers

Validation  June 27, 2010 at 9:49 PM
what is the best way to use validation in Struts?either "validation.xml" or JavaScript. ... View Questions/Answers

struts compilation  June 27, 2010 at 7:44 AM
how to compile struts example ... View Questions/Answers

Averaging an Array  June 27, 2010 at 5:09 AM
Write two overloaded methods that return the average of an array with the following headers. However, prompt user to enter 10 int and 10 doubles. a) public static int average(int[] array)b) public static double average(double[] array) ... View Questions/Answers

main func  June 27, 2010 at 3:35 AM
why do we pass array of strings in main function of java? ... View Questions/Answers

Arrays  June 26, 2010 at 11:43 AM
1)write a program that take integer array as input and find the second largest number in array?(Array values taken from keyboard)?2)Given two array A & B and B has same elements same as A but one element missing? Write a program that take arrays A & B as input and find missing element ... View Questions/Answers

random numbers  June 26, 2010 at 10:13 AM
Hello i need this code to be modified for me to display the random numbers, but not twice or more. I mean i need a number to be display once. This code allows some numbers to be displayed more than once.Hi Friend,Try the following code:import java.util.*;cla... View Questions/Answers

Java word extraction program.  June 26, 2010 at 4:52 AM
Need to code a public class named WordExtractor that contains a main method. Prompt the user to enter a line of text and read it in using a Scanner object. The line of text should follow the prompt on the same line of the console screen. next, prompt the user to enter an integer for the starting let... View Questions/Answers

corejava  June 25, 2010 at 11:38 PM
how to write a program to multiply 1000 digit numbers with out using biginteger class ... View Questions/Answers

Getting an exception  June 25, 2010 at 4:56 PM
Dear Sir , While sending a mail am getting an following exceptionjavax.mail.MessagingException: 554 mail server permanently rejected message (#5.3.0)so how to over come from this please help me sir..Thanks and RegardsHarini veerapur. ... View Questions/Answers

clarify date class  June 25, 2010 at 1:29 PM
Dear,clarify this question..."Develop Date class in Java similar to the one available in java.util package. Use JavaDoc comments."Give me the source code and explain how to create classes similar in java.util or any packages.. please.thanks i... View Questions/Answers

JAVA  June 25, 2010 at 11:34 AM
i browsed a picture in a html page then i want to use the path in the jsp then what i to do ?in java the the path of a file takes the two slashes instead of one example for c:\vinay\ghaf.gif we must use c:\\vinay\\ghaf.gifmy doubt is in the above question the returned... View Questions/Answers

Spring Hello World prog  June 25, 2010 at 8:07 AM
I used running the helloworld prog code mentioned in http://www.vaannila.com/spring/spring-mvc-tutorial-1.htmlI'm getting null pointer exception. as shown below. I added all the jars and my folder structure is similar to what showed in the website. I guess the null pointer e... View Questions/Answers

Spring Framework Training  June 25, 2010 at 4:29 AM
THinking of taking spring framework training from Intertech. Here's the class... does this give me what I need? http://www.intertech.com/Courses/Course.aspx?CourseID=99468 ... View Questions/Answers

Java code  June 24, 2010 at 10:19 PM
Write a Java program that accepts 5 integers and sort them ascending?Thank you so much.for helping me.thanks roseindia.hope you will help me ... View Questions/Answers

jsp  June 24, 2010 at 2:34 PM
LOAD DATA INFILE 'tempc.txt' INTO TABLE main FIELDS TERMINATED BY '|' LINES TERMINATED BY '#'(A200,A060,A620,A300,A201,A490,A400,A101,A630,A040,A600,A440,A100,A610,A320,A310,A002,A020,A022); ... View Questions/Answers

surface chart  June 24, 2010 at 2:25 PM
i have to make a surface chart of a piece of land with data given for each point in the xy plane....the chart should be such that the areas with different data range should show up in different colour.seriously need help on this one... ... View Questions/Answers

java  June 24, 2010 at 12:12 PM
how to sql database retrivr in excel sheet with code ... View Questions/Answers

java  June 24, 2010 at 11:34 AM
What is the different between swing and awt? ... View Questions/Answers

java+cts  June 24, 2010 at 10:24 AM
4100156955 ... View Questions/Answers

java+cts  June 24, 2010 at 10:12 AM
4100156952 ... View Questions/Answers

interface  June 24, 2010 at 9:47 AM
I need the complete program for Design of java interface for Stack ADT and implement the same using array and linked list in java.Kindly send it as soon as possible.SOme of your solutions are not accessible on net. how can we get them? ... View Questions/Answers

Java Coding  June 24, 2010 at 12:20 AM
Two overloading methods that returns average using following headersA) public static int average(int[] array)B) public static double average(double[] arrayThe program should prompt the user to enter a combination of 10 double and integer values and display the average v... View Questions/Answers

java error  June 23, 2010 at 10:30 PM
Thanks for providing me the answer for the question,but there are some errors while running the code are1.class SortFileData is public, should be declared in a file named SortFileData.java2.void cannot be dereferenced If Programme saved in SortFileData also shows some error Please ... View Questions/Answers

Java programme  June 23, 2010 at 10:20 PM
Can you provide me the coding for Date class provided by java util package ... View Questions/Answers

programming  June 23, 2010 at 7:45 PM
what are the majors of paradigm? ... View Questions/Answers

groovy compilation error  June 23, 2010 at 6:08 PM
while i am running the grails application , i got the error message like: [groovyc] org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: [groovyc] C:\Software\projects6.9\BookDemo\grails-app\conf\BootStrap.groovy: 4: unable to resolve class Book ... View Questions/Answers

Daemon Thread  June 23, 2010 at 5:58 PM
How to implement Daemon thread in java using JSF. ... View Questions/Answers

How to read a rows which have a values in a excel file using apache poi  June 23, 2010 at 4:31 PM
Dear sir, How to read excel file in that only a rows which are having some values using apache poi...please help me sir.Thanks and RegardsHarini Veerapur. ... View Questions/Answers

bpel and ActiveBpel  June 23, 2010 at 2:52 PM
Hello, I need help in Installing the ActiveBpel engine from this website http://www.activevos.com/community-open-source-engine-download.php. I don't know what to do with the patches. I had downloaded the zip file and patches (version 2.1). How am I going to invoke the webservice.?T... View Questions/Answers

to display single row from database and next to display other question  June 23, 2010 at 12:52 PM
Hi all,I am using JSP with MYSQL backend.In my project we have 100 questions in databasewe have to display first questionon clicking the button it has to display the next question.i tried it first question is displayed, but i am facing a problem while retiev... View Questions/Answers

j2me  June 23, 2010 at 12:45 PM
Dear all...Can you plz tell what is the distribution based security of mobile application,wat should be criteria for stoping the illegal copieng of software.Thanks RegardsRashan Abid ... View Questions/Answers

j2me  June 23, 2010 at 12:43 PM
Hey....I am developing a mobile application which stores the important datas, can you plz suggest how to take back up of datas in phone gallery which I am storing in rms,Thanks and regardsRashan Abid9990978757 ... View Questions/Answers

java  June 23, 2010 at 11:39 AM
Hi,What is hashing techniquesin java?Related program and examples.RegardsRagahvendra ... View Questions/Answers

How to upload a large excel file  June 23, 2010 at 11:02 AM
Dear sir , How to upload a large excel file and how to read a that large excel file or how to get a each column values from that large excel file.For small file i am getting values but for large file my code is not working so please help me sir i have used u r uploadandstore code for up... View Questions/Answers

How to?  June 23, 2010 at 6:06 AM
I have download this Barbecue 1.5 beta 1 (barcode generator). How should I properly put it in Netbean 6.5? It's also said that I can adjust the barcode width, heigth & resolution through http://host:port/barbecue/. How should I access that and at the import java.awt.print.*, how can I adjust the... View Questions/Answers

java compilation error  June 23, 2010 at 1:55 AM
Hello madam/sir, i m a beginners in java. My problem is that i want to connect a login form to a frame containing 4 panels. how could i do it?Please help!! ... View Questions/Answers

java  June 22, 2010 at 10:53 PM
getting 404 status (resource not found)wana know about direcrty structure and whats servlet mapping and hw to do it ... View Questions/Answers

College voting System  June 22, 2010 at 9:49 PM
Q:Create a package named "register.candidate" which has an abstract class named FormData that is containingabstract member function registerCandidate() and an interface named ProcessData containing memberfunctions processVoting() and show winnerCandidate();Create re... View Questions/Answers

java  June 22, 2010 at 7:39 PM
Develop a template for linked-list class along with its methods in Java ... View Questions/Answers

java  June 22, 2010 at 7:38 PM
Design a thread-safe implementation of Queue class. Write a multi-threaded producer-consumer application that uses this Queue class. ... View Questions/Answers

Java  June 22, 2010 at 7:37 PM
Write a multi-threaded Java program to print all numbers below 100,000 that are both prime and fibonacci number (some examples are 2, 3, 5, 13, etc.). Design a thread that generates prime numbers below 100,000 and writes them into a pipe. Design another thread that generates fibonacci numbers and... View Questions/Answers

Java programme  June 22, 2010 at 7:37 PM
Develop a multi-threaded GUI application using java application. ... View Questions/Answers

HIBERNATE COMPOSITE ID  June 22, 2010 at 6:51 PM
Hi, I have a database table structure asCREATE TABLE `attendance` ( `sno` int(11) NOT NULL auto_increment, `empRef` int(8) default NULL, `dat` date default NULL, `timeIn` time default NULL, `timeOut` time default NULL, PRIMARY KEY (`... View Questions/Answers

swings  June 22, 2010 at 6:42 PM
hi friends, I am working in gis project. i want to display a character/string at a specific point.For this i am using drawstring method , this is a inbuilt method in java, while using this method i am facing a small problem that is it will draw character from the base point means the symbol wi... View Questions/Answers

how to change background color in dojo tab container  June 22, 2010 at 6:23 PM
how to change background color in dojo tab container ... View Questions/Answers

resultset problem  June 21, 2010 at 10:46 PM
hi I have one problem with resultset?ResultSet rs=st.execute("select subjname,staffname from staffdetails"); while(rs.next()) { st.executeUpdate("update CSEFIRSTYEARTIMETABLE set p2='"+rs.getString(1)+"',p3='"+rs.getString(1)+"'... View Questions/Answers

java programmes  June 21, 2010 at 6:57 PM
Can you please send me the programmes for IT Deptartment.The subject code is IT2305.Based on new syllabus as per Anna University for 2008 regulation.It contains 12 programmes.. ... View Questions/Answers

How to validate a form  June 21, 2010 at 5:57 PM
Dear Sir, I have a one jsp ,in that i have a 2 forms ///One form1 as follows<form method="post" onsubmit="return IsEmpty(this);"><center><table><tr><td><b>Id</b><input type="t... View Questions/Answers

In pagination how to hilight the links  June 21, 2010 at 4:22 PM
Dear Sir, Thanks for posting the answer,its working fine.Now i want google or others like pagination ,in that if i click on a number only that number color will be changed like that i want in my code.So how to do this sir please help me .Thanks and RegardsHarini Veerapur.... View Questions/Answers

Oracle  June 21, 2010 at 3:33 PM
Oracle Begginers , if Downloadable Notes are there Please mention the site ... View Questions/Answers

Books Of Java  June 21, 2010 at 3:31 PM
Which Books Are Available for Short / Quick Learning ... View Questions/Answers

java  June 21, 2010 at 3:06 PM
How to read the latest file in a directory using simple javaThanks,sujitha.P ... View Questions/Answers

Further advice needed on my last question  June 21, 2010 at 2:35 PM
Dear Experts,I refer to your last solution regarding my matching codes.After I tried out your solution, I get alot of errors...Netbean IDE mpiling 1 source file to C:\Documents and Settings\build\generated\classesC:\Documents and Settings\enter_j... View Questions/Answers

In pagination how to hilight the links  June 21, 2010 at 2:11 PM
Dear Sir, In pagination how to highlight the links or how to change the color of that link when i clickon that particular link....Please help me sir..Some of the code which i used is as follows.. HashTable htEmp = employeeDataBase .findAllMa... View Questions/Answers

XML in java  June 21, 2010 at 1:16 PM
Write a program using SAX that will count the number of occurrences of each element type in an XML document and display them. The document file to be processed should be identified by the first command-line argument.Then modify the program resulting from the this exercise so that it will accept opti... View Questions/Answers

java code  June 21, 2010 at 1:14 PM
Write a program using SAX that will count the number of occurrences of each element type inan XML document and display them. The document file to be processed should be identified bythe first command-line argument. ... View Questions/Answers

Multiple inheritance using interface  June 21, 2010 at 12:36 PM
Hi, I understand the concept & uses of an interface. But i dont know about the implementation of interface in real time. Because most of the interface examples are with one class. But the use of the interface is when we use multiple inheritance with more than one sub class. I want to k... View Questions/Answers

Searching an element  June 21, 2010 at 11:50 AM
Dear sir,sir i have an employee table ,in that i have attributes like empId name ,salary,loc etc.I have one jsp in that i am doing a searching an element by empId and displaying a all the employee table with pagination.I have a 2 forms in one jsp.I have a one input text field for searching an ... View Questions/Answers

help to load information in init of application  June 21, 2010 at 10:07 AM
Thanks for ur previous answering to my question.I am working on struts2 framework and this is my question related to struts2 frameworkI want to keep some data in init of application.i.e. i want to read xml file data and keep it one time block statically that is in init of the appli... View Questions/Answers

Why string is storing null value  June 21, 2010 at 12:25 AM
I am reading lines from a file and then splitting it with " " as the criteriaIf line has first element null! then it is storing it in a temp variable.... but when i am running the program it is also storing null value in temp. WHY so? ... View Questions/Answers