Home Answers Questions Question and Answers


 
 

Latest Programming Questions askedAsk your question?

java script and velidatores  April 28, 2010 at 6:50 AM
i made a job portal and in it many fields which required validate how i do throw java script.. can you help me please send me common validate function which used in any site..... ... View Questions/Answers

Criteria with Multiple Tables  April 27, 2010 at 6:28 PM
I am using Hibernates Criteria. How to get Joins using Criteria?e.g. instead of below query i want to use criteria then How i can? select user from TeamsUserEntity user, UserGroupUserEntity ugu where user... View Questions/Answers

readline Error 2  April 27, 2010 at 4:25 PM
Hi sir,can you look again please.The error is hard to notice, but if you execute the code, 1. enter a string the first input request (eg hello world), 2. ENTER3a. ENTER n for the next input requestThe code will not terminated after the 'n'. This is because t... View Questions/Answers

Advertisement

readline Error  April 27, 2010 at 1:50 PM
Hi sir, please helpme with my code.Mycode does not work. The readLine () method seems to loose the first character of the string input from command line after the the first call to it. When Ienter the text abcd, the firt time it prints it correctly, every other time the first character i... View Questions/Answers

servlet  April 27, 2010 at 1:32 PM
hi sir,plz provide what is a servlet ,how to run the servlet and what r the good books for understanding servlets,plz provide me ... View Questions/Answers

Java Programming  April 27, 2010 at 1:17 PM
Write and run a program that accepts a string as input and converts it to a number ... View Questions/Answers

Java Programming  April 27, 2010 at 1:14 PM
To find out minimum and maximum numbers in an array ... View Questions/Answers

retrieving of value from excel file  April 27, 2010 at 1:02 PM
Dear sir, Thanks for sending a code now i am getting a particular column value i.e EmailId column for snding a massmails,now i have to get a particular column values i.e Name(A),EL(B),CL(C),Bonus(D),EmailId(E) soon...(A,B,C,D,E.. are column names) i have to get and send a mail that con... View Questions/Answers

java  April 27, 2010 at 12:40 PM
how to use jasper report ... View Questions/Answers

Need J2ee project technical flow  April 27, 2010 at 11:59 AM
Hi friend,am newbie to web development.I need j2ee project technical project flow. For example Browser ---> Controller --> Servlet(validator) <-- | Action ... View Questions/Answers

baaank acoounts related  April 27, 2010 at 10:22 AM
hi alli have one code but that is not workingkindly help me send me a working code as i a am totally new to javaAssume that the bank maintains two kinds of accounts for its customers, one called savingsaccount and the other current account. The savings accou... View Questions/Answers

computer configuration  April 27, 2010 at 10:18 AM
someone posted a code but tha is not working and i am totaly new to java and i hae to submit my projectkindly help and send a working codeCreate a class Computer that stores information about different types of Computersavailable with the dealer. The information to be s... View Questions/Answers

java compilation error  April 27, 2010 at 12:51 AM
sir ,i have jdk1.6.0_01 and textpad installed .I have also set classpath and path.But stil on compiling my servlet programs in textpad i get compile time errors like javax.servlet.* ,javax.servlet.http.* ,javx.servlet.io.* packages not found .Sir ,plz tell me what should i do? ... View Questions/Answers

merging  April 26, 2010 at 5:53 PM
how to merge two arrays and displaying the third array ... View Questions/Answers

authentification avec JSP  April 26, 2010 at 4:18 PM
salut tout le monde,je cherche à trouver la page JSP qui va me permettre de s'authentifier selon le profil de l'utilisateur. selon le role de l'utilisateur, une page bien déterminée s'affiche.je veux programmer une application web avec J2EE,j'utilise comme serveur tomcat5.0,et comme logi... View Questions/Answers

how to get a values from processRecord  April 26, 2010 at 4:12 PM
dear sir,i have a problem in getting a values from java to jsp.Here jsp is used to read a excel sheet that intern call a java program so i want a column values i.e a column contains a email id these values to be inserted into a CC text area so please help me sir...thanks in advance..... View Questions/Answers

programming  April 26, 2010 at 3:06 PM
A student?s marks and status is determined according to the following schedule:Marks StatusGreater than or equal to 75 ExcellentLess than 75 but greater than or equal to 60 GoodLess than 60 but greater than or equal to 50 AverageLess than 50 but greater than or equal to... View Questions/Answers

programming  April 26, 2010 at 2:57 PM
Writes a program that reads 10 student?s CGPA and determine the status of theirUndergraduate Awards. Table of Undergraduate Awards is shown below:CGPA Status of UndergraduateAwardsMore than or equal to 3.70 First Class HonorsMore than 3.70 and less than orequal to... View Questions/Answers

socket class in java  April 26, 2010 at 2:57 PM
i created server and client class using socket....i have used localhost and port as 2010....if again i connected in that port it is saying already the port is used....now my question is how to close the port after it is used...??plz...help me in ... View Questions/Answers

struts  April 26, 2010 at 11:29 AM
hi..i have a problem regarding the webpagein the webpage i have 3 submit buttons are there.. in those two are similar and another one is taking different action..as per my problem if we click on first two submit buttons it is going to action in the form tag.. but if we click ... View Questions/Answers

Getting an exception  April 26, 2010 at 10:54 AM
sir i used u r code for sending a mass email by reading an excel sheet,but i am getting a following error so please help me if any changes in code .thanks in advance..java.io.IOException: Invalid header signature; read 0x6576206C6D783F3C, expected0xE11AB1A1E011CFD0at or... View Questions/Answers

insert arabic chacters in mysql via java  April 25, 2010 at 3:21 PM
Dear,I have I java rpogram that I want to insert arabic letters in mysql.Do you have any idea about the configuration of mysql that accepts arabic charcters.I will send you the code:package DBFin;import java.sql.*;import java.io.*; import ... View Questions/Answers

java  April 25, 2010 at 2:34 PM
What are interthread communication mechanism avialable in java. with example. ... View Questions/Answers

java  April 25, 2010 at 2:32 PM
Explain the process of adding class to existing packeges. ... View Questions/Answers

Java  April 25, 2010 at 2:31 PM
What happens if a final keyword is applied to Class, Function and Identifier. ... View Questions/Answers

hi  April 24, 2010 at 1:15 PM
hi sir,Thanks for ur coporation,i am save the 1 image with customer data,when i am search that customer data,i want to see that image (already saved image based on the customer data previously),plz provide program sir,plzzzzzzzzzz i have a panel that allows user to enter new custo... View Questions/Answers

java-help  April 24, 2010 at 12:33 PM
hello sir, please help me.....the below given is the output.java programhere in this program am using the stmtsta. append("clustering")where ta is a textarea created in input.java file.i have designed only one form with button and textarea. on button press this output.jav... View Questions/Answers

Getting an exception  April 24, 2010 at 11:18 AM
sir i used u r code for sending a mass email by reading an excel sheet,but i am getting a following error so please help me if any changes in code .thanks in advance..java.io.IOException: Invalid header signature; read 0x6576206C6D783F3C, expected 0xE11AB1A1E011CFD0 ... View Questions/Answers

JS  April 24, 2010 at 11:17 AM
<% try { Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); Connection con=DriverManager.getConnection("jdbc:odbc:newdsn","sa","master"); Statement stat=con.createStatement();... View Questions/Answers

Java Programming  April 24, 2010 at 10:17 AM
Write an applet that accepts a string as input and prints it in reverse order. ... View Questions/Answers

PaySlip  April 23, 2010 at 9:31 PM
package dmm.ui;import dmm.bean.Employee;import dmm.bean.Employees;import dmm.bean.FullTimeEmployee;import dmm.bean.PartTimeEmployee;import java.io.BufferedWriter;import java.io.File;import java.io.FileWriter;import java.io.IOException;impor... View Questions/Answers

Mockstrutstest case in Weblogic  April 23, 2010 at 6:15 PM
Hello All,I'm testing junits with Maven 2 using MockStrutsTestCase.The web.xml file is not loading even after I set the servlet config file with setServletConfigFile.I get the follwoing errorjunit.framework.AssertionFailedError: Received an exception w... View Questions/Answers

thread class  April 23, 2010 at 4:30 PM
Create 2 Thread classes.One Thread is Incrementor and has one variable cnt1 with initial Value 0. Incrementor threads increments value of cnt1 by 1 each time. The other thread is Decrementor which has variable cnt2 with initial value 100. Decrementor threads decrements value of cn... View Questions/Answers

Ethernet port in java  April 23, 2010 at 4:29 PM
Hello,I am new to this field. I have to make an web application in JSP in which i have to decode the packets received on ethernet port. I have no idea how to program the ethernet port in java and read packets.Please guide me.......... ... View Questions/Answers

bank management  April 23, 2010 at 4:29 PM
Assume that the bank maintains two kinds of accounts for its customers, one called savings account and the other current account. The savings account provides compound interest and withdrawal facilities but no cheque book facility. The current Account provides cheque book facility ... View Questions/Answers

computer management  April 23, 2010 at 4:26 PM
Create a class Computer that stores information about different types of Computers available with the dealer. The information to be stored about a single computer is, - Company Name - RAM size. - Hard Disk Capacity. - Processor Speed. - Processor Make. ... View Questions/Answers

why jsp pages are not working on linux but java application is working in windows  April 23, 2010 at 4:22 PM
java web application jsp pages are not showing the fileds corectly on linux server but same application is working on windows.why? ... View Questions/Answers

Read a particular column in excel sheet  April 23, 2010 at 4:21 PM
hi sir i used ur code,but where i have to put that index value ,i am calling the following methods for sending a mail please help me if any changes.Following is my code for calling methods .thanks in advanceboolean isSuccess = false; String isValid = null; MailObject ma... View Questions/Answers

hi  April 23, 2010 at 2:48 PM
hi sir,Thanks for ur coporation, i am save the 1 image with customer data,when i am search that customer data,i want to see that image (already saved image based on the customer data previously),plz provide program sir,plzzzzzzzzzzzz ... View Questions/Answers

export to word document  April 23, 2010 at 2:45 PM
hi sir,when i am click on a button under the jtable,for example (print button),then i want to print that jtable in word document,automatically,plz provide program sir ... View Questions/Answers

jtable combo  April 23, 2010 at 2:42 PM
i am using jtable (using defaulttablemodel) ,when i am click on a particular cell of jtable i want to display the combo box in that cell,plz provide program ... View Questions/Answers

Read a particular column in excel sheet  April 23, 2010 at 12:57 PM
hi sir i want to a read a excel sheet ,in that i have to take a particular column that contains a mailIds ,use that column to send a mail to all so how to do this sir give me some code to do this sirthanks in advance.. ... View Questions/Answers

Project Question No. 2B : Create 2 Thread classes.One Thread is Incrementor and has one variable cnt1 with initial Value 0. Incrementor threads increments value of cnt1 by 1 each time.  April 23, 2010 at 12:22 PM
Create 2 Thread classes.One Thread is Incrementor and has one variable cnt1 with initial Value 0. Incrementor threads increments value of cnt1 by 1 each time. The other thread is Decrementor which has variable cnt2 with initial value 100. Decrementor threads decrements valu... View Questions/Answers

thanks  April 23, 2010 at 11:56 AM
thanks sir its working... ... View Questions/Answers

JAVA PROGRAM  April 23, 2010 at 11:13 AM
TO FIND OUT MINIMUM AND MAXIMUM NUMBERS IN AN ARRAY ... View Questions/Answers

java compilation error  April 23, 2010 at 10:46 AM
package punitha;import java.util.Vector;import javax.swing.*;import javax.swing.JFrame.*;import javax.swing.JTextField.*;import javax.swing.JButton.*;import javax.swing.JFileChooser.*;import javax.swing.JOptionPane.*;import javax.swing.JTextArea.*;... View Questions/Answers

java problem  April 22, 2010 at 7:46 PM
Room.javaThis file defines a class of Room objects. The objects have the following instance variables: number of beds in the room, of type integer; guest?s name, of type String; booking status of a room ? if the room has been booked, the status is 'true', otherwise it is... View Questions/Answers

datagram  April 22, 2010 at 7:29 PM
program that sends "hello" message to a machine named "yahoo" on port"4000" using datagram ... View Questions/Answers

hi  April 22, 2010 at 5:46 PM
hi sir,thanks for providing the datepicker program but i want to create a datepicker class in my package and i want to use that datepicker class when i am want,in that type of flexibility plz provide the program sir,in my project i am using the 1 frame for total project,in that jtabbedpanes a... View Questions/Answers

How to Open Text or Word File on JButton Click in Java  April 22, 2010 at 5:30 PM
How to Open Text or Word File on JButton Click in Java ... View Questions/Answers

Open Text or Word Document on JButton Click in Java  April 22, 2010 at 4:45 PM
How to open Word document or Text File on JButton Click in java ... View Questions/Answers

Related to multiple inhetitance  April 22, 2010 at 1:11 PM
Sir,Plz help me to solve this question.Q.1. Write a Progarm to illustrate the concept of multiple inheritance using interface ... View Questions/Answers

Java  April 22, 2010 at 12:59 PM
Sir,plz help me to solve these java problems:Q.1. Write a Progarm to illustrate the concept of multiple inheritance using interfaceQ.2. Write a program to illustrate subclasses an imported classQ.3. Write a program for creating thread using thread class.... View Questions/Answers

Getting an exception  April 22, 2010 at 12:57 PM
sir i m Getting an following exception while sending a mail with attachment value ofsession is javax.mail.Session@192d604 value of mimemessage is javax.mail.internet.MimeMessage@120b2da value of internetaddress is harini.veerapur@gmail.com** length of attachment is 1... View Questions/Answers

Getting an exception  April 22, 2010 at 12:24 PM
sir i changed to that ieInputStream myInput1 = new FileInputStream(fileName); HSSFWorkbook myWorkBook = new HSSFWorkbook(myInput1);but when i click on a browse button and attached a file and then click on a read button to read a file it is displaying a new file instead of ... View Questions/Answers

java -netbeans help  April 22, 2010 at 12:23 PM
a simple program in netbeans ide to add two numbers and display the result as ADDITION OF TWO NUMBERS IS:70 in the textareadesign containsone textarea one buttonand two text field to get inputthese GUI actions should be in input.java filewhen u press the button i... View Questions/Answers

setbackground image to JFrame  April 22, 2010 at 11:36 AM
how to setbackground image to JFrame. ... View Questions/Answers

Create and Show Wordpad File on JButton Click  April 22, 2010 at 11:33 AM
Hello Sir I want to create wordpad or word document on JButton Click Event.which contains data which is currently on Form ie filled by User,with following format STUDENT ADMISSION FORMSTUDENT ID: (JTextField1Value currenly on Form)NAME: ... View Questions/Answers

sending a mail  April 22, 2010 at 11:23 AM
I m writing a code for send mail in jsp,i sending a mail to specified receiver but if i attach an file and send a mail then i m getting an error. Here Attachment is in String[] Attachment=null so how to convert from string to String[] here is whaString[] i have done... View Questions/Answers

Getting an exception  April 22, 2010 at 11:10 AM
thanks sir for u r reply ,but i already added that jar file sir even though i m getting an exception sir please help me sir ...thanks in advance.. ... View Questions/Answers

hi  April 22, 2010 at 10:39 AM
hi sir,create a new button and embed the datepicker code to that button sir,plzzzzzzzzzzzzzzzzzzzzzzzzzzz ... View Questions/Answers

datepick  April 22, 2010 at 10:33 AM
sir,when i am click on a submit button the datepicker is appeared sir ... View Questions/Answers

Error Opening File  April 22, 2010 at 10:33 AM
Dear,Please if help me to resolve this problem.I have an application in java that works correctly under Eclipse. But when I try to export it under Runnbale jar file on my desktop and I run this generated file, a message was displayed: Error opening file.<... View Questions/Answers

hi  April 22, 2010 at 9:46 AM
hi sir,u provide a answer for datepicker,but i don't know how to embed that datepicker to my panel This is my panel code,plz provide steps,how to embed the datepicker code to my panel. This is my panel code. package Welcome;import java.... View Questions/Answers

JSP code problem  April 22, 2010 at 6:57 AM
Hi friends, I used the following code for uploading an image file. After compilation it shows the required message, "Image successfully uploaded", but when i try to retrieve the image I'm unable to do so. The uploaded image is not getting saved anywhere. The fo... View Questions/Answers

Unicode  April 21, 2010 at 11:04 PM
hii wanna retrieve Unicode values from the database........when i do so and print the fetched values in java control (JTextArea) or IN doc or RTF or WEB page it get the UNICODE as ????? what can i do so Language JAVA platform XPdatabase SQL... View Questions/Answers

unicode  April 21, 2010 at 11:02 PM
hii wanna retrieve Unicode values from the database........when i do so and print the fetched values in java control (JTextArea) or IN doc or RTF or WEB page it get the UNICODE as ????? what can i do so Language JAVA platform XPdatabase SQL... View Questions/Answers

Getting an exception  April 21, 2010 at 5:18 PM
sir i am Getting following exception when executingjavax.servlet.ServletException: java.lang.NoClassDefFoundError: org/apache/poi/poifs/filesystem/POIFSFileSystemI have used ur codeimport java.io.FileInputStream;import java.util.Iterator;import java.u... View Questions/Answers

Access Report to Java Application  April 21, 2010 at 4:30 PM
Hello Sir can I connect Access Report to Java Application when i Enter Student ID in JTextField then the Appropriate Records From the Database will Be Shown in to Access Report. plz Help Me ... View Questions/Answers

How to Create and display Reports in Java with Database connectivity  April 21, 2010 at 3:57 PM
Hello Sir ,I have Created Student Admission Form with Swing and MS Access 2007 Database Connection,when i will click on Print button it shows the report of student id which is exists in the Current JTexfield /when I give Student Id Number then it Shows the Report with that prticular id with ... View Questions/Answers

sql query  April 21, 2010 at 3:49 PM
hi sir,i have a month and year numbers,when i am enter a month and year in sql query then i want results for 1st day of month to last day of month in that year for that month plz provide a solution for me plzzzzzzzzzz ... View Questions/Answers

set a class path  April 21, 2010 at 2:49 PM
thanks u sir i got a .jar file,but while declareing a HSSFWorkbooks wb = new HSSFWorkbooks(); i m getting a error in eclipse .how to set a classpath for that please help me sir thanks in advance... ... View Questions/Answers

I want simple steps to create Jar File of Java Project  April 21, 2010 at 11:53 AM
Hello Sir How I can Create Jar File of Java Project,plz Help Me ... View Questions/Answers

How to create and Attach MS Access Reports and Crystal Reorts in Java.  April 21, 2010 at 11:35 AM
How to create and Attach MS Access Reports and Crystal Reorts in Java WITH MS Access 2007 Database, plz Help Me Sir ... View Questions/Answers

Create Reports in Java with access database  April 21, 2010 at 11:23 AM
Hello Sir How to Create Reports of Any Type using Java when i submit data is stored in the MS access database,but when I click on PRINT Button then it will display it into either Text File or any type of Report and then i want to print it.How I can Generate it plz help Me ... View Questions/Answers

i need your help  April 21, 2010 at 9:31 AM
Write a java program that:i. Allows user to enter 2 numbers from the keyboardii. Uses a method to compare the two numbers to determine which is largeriii. Print to the screen stating which number is larger than the other. ... View Questions/Answers

Data Redundancy  April 20, 2010 at 9:08 PM
Sorry for disturbing you again but there's redundancy of the selected data on this jsp u gif me. The selected data will appear twice at the drop down box. I've tried to fix it but still unable to do so. Is there anything can be done?<%@ page language="java" import=&quo... View Questions/Answers

CLOB example  April 20, 2010 at 8:09 PM
Hi everybody can u tell me the method to use CLOB in javathe CLOB is to use with database ..........it must retrieve value with resultset and display in the JTextArea that fetched text.......thanku ... View Questions/Answers

java  April 20, 2010 at 7:46 PM
i want know the basics of the struts ... View Questions/Answers

java  April 20, 2010 at 7:41 PM
why we will use the public static void main(String args[])? and explain each term in that syntax. ... View Questions/Answers

java  April 20, 2010 at 7:37 PM
what is the importance of System.out.print("");?in this why we will use System,".",out, and print? ... View Questions/Answers

question on class  April 20, 2010 at 7:07 PM
A class can act as subclass itself?if yes give me one example if no give me one example ... View Questions/Answers

How to Create any type of Reports in Java  April 20, 2010 at 6:20 PM
Hello Sir ,How I can create any type of Reports like Crystal Reports etc(Student Result Report) in Java Application,plz Help Me Sir ... View Questions/Answers

java code  April 20, 2010 at 5:41 PM
how to read an xml file in java and store its contents into a database ?i want to know the flow ... View Questions/Answers

print only Form Fillup Contents through Text File  April 20, 2010 at 5:27 PM
Hello Sir ,I have Designed Employee Details Form using java swing components Now i want to print contents which is filled by employee,How i can Print it,and also i want print it with word means when i click on print then contents which is filled in employee form(swing application) that contents wi... View Questions/Answers

PHP  April 20, 2010 at 2:42 PM
Hello,I have to check the images.If I mages found relative change it to absolute.for example ../default/test.png ---->/image/default/test.png.I have try this with str_replace("..", "/image", $vae). but its not a good idea to do it.If there is any ... View Questions/Answers

requesting for a jar file  April 20, 2010 at 12:17 PM
Sir Please send me a jar file of this sir , i need this package jar file org.apache.poi.hssf.usermodel for Excel reading /Writing in java please help me.thanks in advance.... ... View Questions/Answers

Advanced Concepts with Classes  April 20, 2010 at 11:58 AM
Advanced Concepts with Classes( Inheritance, Polymorphism, Overriding)i need help to create this application,than youEmployees in a company are divided into the classes Employee, HourlyPaid,SalesCommissioned, and Executive for the purpose of calculating their weeklywage... View Questions/Answers

SIMULATING AN ELEVATOR  April 20, 2010 at 11:55 AM
Classes, Methods, Constructorsplease i need help to create an elevator programSimulating an Elevatorwrite an Elevator class containing various methods.Then, write a program that creates Elevator objects and invokes the various methods.put comments on methods and h... View Questions/Answers

problem in record viewing in jsp  April 20, 2010 at 11:08 AM
hai i send the code can you please find where is the problem it is not showing any error but i cannot able to view the record after eclipse ide is closed and reopen iti have used the jsp and servlet and back end mysqlactually what is my problem is i have to everytime refresh the viewing ... View Questions/Answers

drag n drop  April 20, 2010 at 10:42 AM
I want to implement drag n drop functionality for simple HTML/JSP without using applet,flash or any heavy components.using browse button user can select one file at a time.but user needs to select multiple files using drag and drop mode.when user drag n drop file then display the complete path in te... View Questions/Answers

for store data in data base  April 20, 2010 at 10:02 AM
i want to a job site, in this site user can registered by a form..in this form there are his information...i use three form for it1)for user name and password..2)for personal detail...3)for educational details..by 1 and 2 i can move on three by continue.. button..... View Questions/Answers

ejb  April 20, 2010 at 9:31 AM
plz send me the process of running a cmp with a web application send me an example. ... View Questions/Answers

NullPointerException  April 19, 2010 at 10:26 PM
I wonder why this coding could not work since i really need to pass the selected choice inside, giving me real time data change from the database.I guess this is the structure I need to to so.The jsp just couldn't read from the parameter "name" but if i directly insert a string into the va... View Questions/Answers

airline reservation java code  April 19, 2010 at 8:37 PM
Write a program that simulates the booking of seats on board a small airplane. The layout of the aircraft is illustratedbelow. You will be required to create a menu based system with the following choices:(a) View Seating (b) Book a Seat (c) Cancel a Booking (d) Reset All (e) QuitE... View Questions/Answers

java  April 19, 2010 at 7:11 PM
a java code that takes input regular expression and a string and produces as output all lines of the string that contains a substring denoted by regular expression ... View Questions/Answers

c programming language  April 19, 2010 at 6:44 PM
int main(){ int i = 1, c = 0, sum = 1,j ; scanf("%d", &j); while (i <= j) { sum = sum + (i /3+i/5); printf("%d\n", sum); i = ... View Questions/Answers

C++ programming language  April 19, 2010 at 6:37 PM
int main(){ int i = 1, c = 0, sum = 1,j ; scanf("%d", &j); while (i <= j) { sum = sum + (i /3+i/5); printf("%d\n", sum); i = ... View Questions/Answers

java Class  April 19, 2010 at 6:32 PM
Can anyone please explain what this code means?import java.util.TreeMap;import java.util.Iterator;//Please tell me what this class declaration means????????????public class ST<Key extends Comparable<Key>, Val> implements Iterable<Key>{... View Questions/Answers

what is the need of...  April 19, 2010 at 4:59 PM
what is the need of " return type like void ? ... View Questions/Answers

DMCA.com