Home Answers Questions Question and Answers


Latest Programming Questions askedAsk your question?

File Upload in J2ee on solaris machine using sftp  April 7, 2010 at 1:01 PM
Hi,Currently we are using FTP to upload the file from our J2EE web application. This is working perfectly fine. we are using below command to do so.ftp://abc:xyz@;type=iNow we have to change the application in such a way ... View Questions/Answers

java  April 7, 2010 at 12:18 PM
how to a selected image set a background image in textarea ... View Questions/Answers

swings  April 7, 2010 at 12:00 PM
hi I am using netbeans ide , while i am trying to debug my project it is giving me an error like this Have no FileObject for C:\Program Files\Java\jdk1.6.0_14\jre\lib\sunrsasign.jarHave no FileObject for C:\Program Files\Java\jdk1.6.0_14\jre\classeswh... View Questions/Answers


Please develop code  April 7, 2010 at 11:58 AM
i want to develop a program that search a file in a directory and its subdirectories and rename that file with name of main directory ... View Questions/Answers

java collections  April 7, 2010 at 10:55 AM
i need a sample quiz program by using collections and its property reply soon as possible .... ... View Questions/Answers

Javascript code  April 7, 2010 at 10:42 AM
Hi, This is ragavendran.. I have a simple doubt in my project.. There is a page in which there is a table with each row ending with a hyperlink called "View Image".. Once i click that link, the particular row should be color changed.. In the second phase, if i click another li... View Questions/Answers

java  April 7, 2010 at 10:36 AM
java code for retrive images from mysql database through jFrame ... View Questions/Answers

JDBC  April 7, 2010 at 9:39 AM
What is mean JDBC ANY E BOOK ... View Questions/Answers

java beginners  April 7, 2010 at 8:08 AM
pl. let me know how to exterat the decimal numbers from a number i want a java program for it Example if input 12.453OUTPUT 12 .453 if input 25.7657 OUTPUT 25 .7657 ... View Questions/Answers

Java Aplications  April 6, 2010 at 6:06 PM
Someone please help me write this Java programsi) Imagine you need to open a standard combination dial lock but don't know the combination and don't have a pair of bolt cutters. Write a Java program that prints all possible combinations so you can print them on a piece of paper and check off e... View Questions/Answers

Java Dialogs  April 6, 2010 at 4:27 PM
a) I wish to design a frame whose layout mimics the Firefox print dialog . (please you can go to Mozilla Firefox, click File, then Print- to see the diagram)None of the components actually have to do anything. It should just show me how to lay out components.b) I wish to write an ... View Questions/Answers

jsp  April 6, 2010 at 4:09 PM
how can i write a java script inside a jsp.i have a form in jsp and i want to do some client side validations on it. ... View Questions/Answers

JDBC  April 6, 2010 at 3:06 PM
How to connect to mysql database from an applets or GUI components (on J2SE) using Eclipse ? ... View Questions/Answers

java log4j  April 6, 2010 at 1:40 PM
which is the best site to prepare log4j in java since i am new to it ... View Questions/Answers

Jav Applets  April 6, 2010 at 1:36 PM
I need to write a small payroll program, using applet, that provides a text field for the number of hours, a text field for the pay rate, and a non-editable text field for the output. It should also also provide labels to identify all three text fields and a button to calculate the result. ... View Questions/Answers

java code  April 6, 2010 at 1:33 PM
Imagine you need to open a standard combination dial lock but don't know the combination and don't have a pair of bolt cutters. I need to write a Java program that prints all possible combinations so you can print them on a piece of paper and check off each one as you try it. Assume the numbers on t... View Questions/Answers

java  April 6, 2010 at 12:14 PM
java code for retrive an image from mysyl database through jFrame ... View Questions/Answers

ascending or descending order in jsp using servlet  April 6, 2010 at 11:54 AM
My Problem is that how to sort any column in ascending or descending order,with following requirements1. A single click on the header of a certain column causes the table to re-sort based on this column.2. A repeated click on the same column changes the sort dire... View Questions/Answers

java  April 6, 2010 at 10:56 AM
i wanna know about jgapwhat is it?why and how to use it in genetic algorithms?plzzzzzzz help me out as u r the most accurate source i had ... View Questions/Answers

Jtable Question  April 6, 2010 at 10:32 AM
Hello Sir,I have Created Database in MS access 2007 ,I want show the table data in toSwing JTable, How I can Show it,plz Help Me Sir. ... View Questions/Answers

Java singleton program  April 6, 2010 at 8:35 AM
Hi All,Can you please explain me in brife with an example how the singleton program works, i did see some documents but was not able to unerstand except one object can be used.this was a java interview question in Perot systems. ... View Questions/Answers

Swimming Pool Calculator  April 5, 2010 at 10:43 PM
Okay, so I tried making the program with this coding:import java.awt.*;import javax.swing.*;import java.awt.event.*;import java.util.*;import java.io.*;import java.text.SimpleDateFormat;public class SwimmCalc extends JFrame implements Actio... View Questions/Answers

Index.java  April 5, 2010 at 10:14 PM
I need to write a Java GUI application called Index.java that inputs several lines of text and a search character and uses String method indexOf to determine the number of occurrences of the character in the text. ... View Questions/Answers

Swimming Pool Calculator  April 5, 2010 at 10:11 PM
I have to write a program to calculate the volume of a swimming pool. The assignment is as follows:This Swimming Pool Calculator is one that is very simple to use. As you can see, it is a user interface that will allow the user to enter the desired length, width, and average depth of a ... View Questions/Answers

java  April 5, 2010 at 8:24 PM
sir please helpme as i need this to complete my module . q1)How to add Month in a Current Date , i am using simple Date Format in swing . ex: if Current Date is 5/4/2010 then it should displayed as 5/5/2010 q2)I have two table namely F... View Questions/Answers

Login form using Jsp in hibernate  April 5, 2010 at 6:24 PM
Hai Friend,As I new To hibernate, I'm facing problem in My project(JSP with hibernate).. My login form is working but the problem is ,when i enter correct user name and password it is working but when i enter wrong user name and password that it is also accepting and entering into... View Questions/Answers

How to call jasper from jsp or servlet  April 5, 2010 at 5:54 PM
Hi Expert ,I created jasper report using ireport.how to call that jasper with jsp file or servlet file ?Thanks in advanceEswaramoorthy.s ... View Questions/Answers

How To Display MS Access Table into Swing JTable  April 5, 2010 at 1:10 PM
How to Display Records From MS Access Database To JTable.Plz Help Me ... View Questions/Answers

Ascending or descending order  April 5, 2010 at 12:00 PM
I have a table by name employee,attributes are emiid,fstname,lastname,address,emailid and soon..I have to create a 2 fields in a column empid,fstname,lastname1 for asc and another for desc order for each column.if i click on a asc in empid column the empid should be order in asc order an... View Questions/Answers

values of Combo boxes are not stored in database  April 5, 2010 at 11:28 AM
i have some combo box values.when i click the submit button after select combo box values, the values are not going in database.please review the code:<%if((school.equals("indus"))||(school.equals("dps"))||(school.equals("mdn")))... View Questions/Answers

exception in thread main java.lang.unsupportedclassversionerror unsupported major.minor version 50.0  April 5, 2010 at 11:12 AM
I am getting the below error when the class now.java -version java version "1.4.2_06" javac -version java version "1.6.0_10" ... View Questions/Answers

INSERT CAPTCHA  April 5, 2010 at 10:05 AM

validation of date,phone number,email  April 4, 2010 at 5:43 PM
Sir how to validate date,phone number and email in java swings ... View Questions/Answers

date picker componnt  April 4, 2010 at 5:41 PM
sir i need code for date picker in java swing for my project sir please send me sir ... View Questions/Answers

java  April 4, 2010 at 3:35 PM
Dear,Please I hope you help me. I want to select all files that ends with txt ( txt files) using Filechooser from a directory that I choose. Can you help me.With my best regards ... View Questions/Answers

error occured in oracle  April 4, 2010 at 12:13 PM
hi... this is the error i got in oracle 11g when i am trying to insert image ORA-00984:column not allowedd here for the insert statement like this insert into imgapp('1','xxx','G:\image folder\ultrasound image\02us12a.jpg") ... View Questions/Answers

oracle insert statement error  April 4, 2010 at 9:55 AM
hi.. please help me to insert a image into oracle 11g database and please say me how can i insert image from directory like G:\imagefolder\ultrasoundimage\02us02.jpeg please help me ... View Questions/Answers

html  April 4, 2010 at 12:45 AM
7) Create an HTML page containing the following featuresa. A combo box containing the list of 7 colors: Violet, Indigo, Blue, Green, Yellow, Orange, Redb. Depending upon the color selected from the above combo box, the message in the status bar of the window must be reflect the va... View Questions/Answers

html  April 4, 2010 at 12:43 AM
3) Create a HTML page to display a list of film songs available in the library. The following are features of the pagea. The name of the songs must be hyper linked to the songs, so that the users must be able to download songs.b. The following is the song database available in the librar... View Questions/Answers

java  April 3, 2010 at 12:46 PM
sir i have 2 tables namely FEES(Fileno,Stname,Totalfee,Feepaid,Balance) and INSTALMENT(Fileno,Stname,Totalfee,Balance,Instalmentpaid,Balancetobepaid)i am retreiving Fileno , Stname , Totalfee ,Balance into INSTALMENT table from FEES table , my Balance value is not updated onc... View Questions/Answers

Servlet Question  April 2, 2010 at 11:39 PM
I want to call one servlet when the browser window is closed by User. ... View Questions/Answers

Servlet Question  April 2, 2010 at 11:39 PM
I want to call one servlet when the browser window is closed by User. ... View Questions/Answers

storing details in database on clicking submit button  April 2, 2010 at 7:58 PM
I am using JSP in NetBeans and have developed an application form which has fileds naming 'Name' and 'ID'.I want to store the details of these two fields in the MYSQL database on clicking submit button. I am unable to do this.Can u tell me how to code this page and where and should be my code writte... View Questions/Answers

Problem with Java Source Code  April 2, 2010 at 4:12 PM
Dear Sir I have Following Source Code ,But There is Problem with classes,plz Help Me.package mes.gui;import javax.swing.JOptionPane.*;import java.sql.*;import javax.swing.*;import javax.swing.border.*;import java.awt.*;import java.awt.event... View Questions/Answers

blank space in input field  April 2, 2010 at 3:43 PM
I retrieved the fields from my mysql table...If the field contains null value i want to display a blank space in input field(text box)..but i am displaying null how to overcome this..u r help is highly appreciated. ... View Questions/Answers

Re: base the value of first combo box, how i display the second combox  April 2, 2010 at 1:12 PM
Dear Sir,in this program when i click on submit button, the corrosponding value of combo box should be sent. but when i clicked to submit button, it do nothing.please review this code:<%if((school.equals("indus"))||(school.equals("dps"))||(s... View Questions/Answers

How to change backgroundcolor and foreground color of JLabel in Java  April 2, 2010 at 10:42 AM
How to change backgroundcolor and foreground color of JLabel in Java ... View Questions/Answers

javascript code  April 2, 2010 at 4:31 AM
Hi,thanks for ur slideshow coding which is very user interactive and attractive.but in this we r explicitely specifying each image file name one by one. Can we make it in a while loop which will read all the files in a image folder and display it. Kindly clarify my doubt. ... View Questions/Answers

conversion  April 1, 2010 at 7:54 PM
how to convertor .xl to .pdf and .pdf to .xl and .mp4 to .mp3 ... View Questions/Answers

Connecting JTable to database  April 1, 2010 at 7:28 PM
Hi..I am doing a project on Project Management System for which i created the user interfaces..I have a user interface in which i have used JTables..Now my problem is I dont know how to how to store this JTable content in my database table..This is a very important table of m... View Questions/Answers

how to link differnt modules  April 1, 2010 at 7:11 PM
i am doing my final year project which is based on steganography.we hide the secret msg in the spaces between the words and paragraphs.we have around 4 modules.all the modules are running fine individually.the prob is how can i link all the 4 modules so that they work in a step by step manner.... View Questions/Answers

Struts  April 1, 2010 at 6:59 PM
Hi, I am doing a reverse engineering in a project based on struts 1.1,after seeing the log file, i encounter some lines that are written by applicatoin, following are the lines in log related to strtus while actionservelt is doing his task.****************************o... View Questions/Answers

Wireless communication  April 1, 2010 at 6:33 PM
I want to send and receive data(message/data) between 2 lappys which are connected in wireless lan. can u plz expalin how to start the JAVA source code?? ... View Questions/Answers

Remote Location Handeling  April 1, 2010 at 5:32 PM
I have application where I want main control from one location and have to connect two more locations remotly and have to handle it.So what should I use in my application Server/RMI or web application?Also help me to connect me to the remote locations having main control with my location ... View Questions/Answers

Re: base the value of first combo box, how i display the second combox  April 1, 2010 at 3:55 PM
thanks for your reply.i want to know suppose the second combo box appear only when i select the class 11th or 12th.please review.your answer:<html><h2>ComboBox</h2><script language="javascript">... View Questions/Answers

datagrid search  April 1, 2010 at 3:11 PM
Hi friend, i have displayed a datagrid using jsp but i need a search option in that which is used to display and sort it in a alphabetical order....pls help me...Thanks in advance... ... View Questions/Answers

Retrieve Value from Table  April 1, 2010 at 3:05 PM
Hai friend,I need help, How can i retrieve values From database using hibernate in web Application. As I new to hibernate I couldn't find solution for this problem.. Can anyone help please.. ... View Questions/Answers

Html / Java Script  April 1, 2010 at 2:15 PM
Hi There,in my form there are ten text boxes. my requirement is that when i click checkbox,the values of first five textbox has to copy to next five. I need jscript for that ... View Questions/Answers

base the value of first combo box, how i display the second combox  April 1, 2010 at 1:25 PM
i have a combo box for classes. my requirement is when i select the class, if class is 11 or 12 the second combo box of subject should be appear.please let me how i implement this in JSP.<%! int i=1; %><tr><td>Class</td><td><selec... View Questions/Answers

java Exception handling  April 1, 2010 at 12:44 PM
what is the difference between throw and throws keywords ... View Questions/Answers

java Exception handling  April 1, 2010 at 12:42 PM
what is the difference between throw and throws keywords ... View Questions/Answers

Paging or pagination  April 1, 2010 at 10:34 AM
1.how to do paging or pagination in jsp using servlets?I have a 20 records ,i have to show them in 2 pages like pages 1 2...i done this but i m geting starting 10 records correctly but i m unable to get a next 10 records it is showing a starting 10 records only please help me... View Questions/Answers

jsp  March 31, 2010 at 11:35 PM
How to creat table in jsp which show single containt tha is employee nameWhen u enter the employee name and submit.then another box will display which show the every detail of the employee of the same name from data base if of employee dose not existing in same name then another box will disp... View Questions/Answers

Encryption In Swing  March 31, 2010 at 9:43 PM
Hi sir i have a JFrame Containing User Name and Password is there any way to encrypt password and how can we store the encrypted passwaord to MS ACCESS ... View Questions/Answers

javascript code  March 31, 2010 at 9:00 PM
hi,i want to display all the image files in a folder one by one like a slidshow on my website using javascript. Will you please help me for this??? ... View Questions/Answers

SWING  March 31, 2010 at 7:48 PM
how to insert image and components such as JLabel,JButton,JTextfield in JFrame in swing? ... View Questions/Answers

enable users to enter names  March 31, 2010 at 6:51 PM
this is the code for tic tac toe game, i want users can save their name as player X and player O, but I do not know how? can you give me some tips?package threeTsGame;import java.awt.*;import java.awt.event.*;import javax.swing.*;publ... View Questions/Answers

core Java  March 31, 2010 at 6:04 PM
how is it possible to create object before calling main() in Java? ... View Questions/Answers

Keep servlet session alive  March 31, 2010 at 3:40 PM
Hi,I am developing an application in java swing and servlet. Database is kept on server. I am using HttpClient for swing servlet communication.I want to send heartbeat message from client to server after every specific time interval so that servlet will not invalidate session... View Questions/Answers

exporting data to excel sheet  March 31, 2010 at 3:25 PM
Sir i have already send request about this problem sir.Sir i want code for below applicationSir whenever execute query in java swing program,i want to print the result about the query in excel sheet.Sir plz help me sir. ... View Questions/Answers

java  March 31, 2010 at 3:06 PM
siri have 2 tables namely FEES(Fileno,Stname,Totalfee,Feepaid,Balance) and INSTALMENT(Fileno,Stname,Totalfee,Balance,Instalmentpaid,Balancetobepaid) i am retreiving Fileno , Stname , Totalfee ,Balance into INSTALMENT table from FEES table , my Balance value is not updated onc... View Questions/Answers

server-jsp  March 31, 2010 at 2:01 PM
how can we implement a simple database(ms access) for storing information about the HTTP requests sent to a web server(database)? ... View Questions/Answers

EJB JNDI LOOK UP PROBLEM  March 31, 2010 at 12:53 PM
Hi, I am using jboss4.2 and created a sessionbean<stateless> using EJB3 but while running client code I am finding NoInitialContextException claname not set in enviornment properties... Thankx. ... View Questions/Answers

java  March 31, 2010 at 12:28 PM
just by removing the package name???? ... View Questions/Answers

swings  March 31, 2010 at 12:27 PM
hi i want to fill a polygon with a pattern. for this i am trying to use the HSSFCellStyle.FINE_DOTS, but it gives a error like cannot find the variable HSSFCellStyle.how can i use the all hsscfill patterns give me a small example for this.......... ... View Questions/Answers

java  March 31, 2010 at 12:07 PM
bank acoount progamclass as account+account(initbalance:double)methods+getBalance():double+deposit(amt:double):void+withdraw(amt:double):void ... View Questions/Answers

java  March 31, 2010 at 12:06 PM
bank acoount progamclass as account+account(initbalance:double)methods+getBalance():double+deposit(amt:double):void+withdraw(amt:double):void ... View Questions/Answers

what is diffrence between the spring and ejb which is better for small application  March 31, 2010 at 11:15 AM
what is diffrence between the spring and ejb which is better for small application. and why do we need to use sping or ejb for web appplication.what is diffrence between the struts with spring application and struts without spring application ... View Questions/Answers

java beginners  March 31, 2010 at 10:18 AM
Q. 1 How is class related to data abstraction?Q. 2 what is the relationship between a class and an object? thanks ... View Questions/Answers

Calendar window is not showing the textbox values for the Dynamic rows in html page  March 31, 2010 at 9:22 AM
My code is here now.When i click on calendar ,value is not showing in textbox please help to me it is very urgent for me <HTML> <HEAD> <TITLE> Add/Remove dynamic rows in HTML table </TITLE> <script type="text/javascript"... View Questions/Answers

Calendar window is not coming for the Dynamic rows in html page  March 31, 2010 at 8:59 AM
Calendar window is not coming for the Dynamic rows in html page.I have 3 textboxes. one column is having the date textbox .I need to add the calendar icon to the date textbox. ... View Questions/Answers

java beginners  March 31, 2010 at 8:45 AM
what are real constant? give some example of real constant. which of the following is the valid real constant.2.0, -16.0, +15/2, 1.9E, 189.E4, 0.67E3.6 ... View Questions/Answers

java beginners  March 31, 2010 at 8:42 AM
pl. give few example program of signed and unsigned integerbye ... View Questions/Answers

XML base64 ecoding  March 31, 2010 at 2:57 AM
Hello..I have this code which is in the JSP page and generates XML...I want this to have base64 encoding..I have no idea how to do that..can anyone help me thanks<?xml version="1.0" encoding="utf-8"?><%@ page contentType="te... View Questions/Answers

task 2  March 31, 2010 at 12:24 AM
Write a time server that follows the time protocol outlined in RFC 868.When a client connects, the server sends a 4-byte, big-endian, unsigned integer specifying the number of seconds that have passed since 12:00 A.M., January 1, 1970 GMT (the epoch). ... View Questions/Answers

java compilation error  March 30, 2010 at 10:16 PM
/* *Project:employee.java *Date:April 04,2007. *Purpose:To All Java Developers **/ package employee; import javax.swing.*; import java.awt.*; import javax.swing.border.*; import java.awt.event.*; import java.sql.*... View Questions/Answers

jsp  March 30, 2010 at 10:14 PM
how can i creat a login havin 3 column,1st user type,2nd user name,3rd userid.if all 3 containt is corract then display the log in page successfully and in this log in page another button will display named login reportbwhen we click in this button it display the time of login and time duration ... View Questions/Answers

task 1  March 30, 2010 at 10:02 PM
Please write a Java client that send a small letters string to a Java server which convert it to uppercase letters and send it back to the client. Please submit both the client and server programs ... View Questions/Answers

programming  March 30, 2010 at 9:26 PM
I need a source code,using collections,I/O files. The aim of the project is to create a Dictionary solution. The solution will provide a menu based option to the user to add words, meanings, semantics (noun, adverb, etc), examples, pronunciation, etc to the dictionary. The menu will also provide opt... View Questions/Answers

Struts  March 30, 2010 at 9:03 PM
=========================Exception i am getting as=========================exceptionorg.apache.jasper.JasperException: javax.servlet.ServletException: javax.servlet.jsp.JspException: Cannot find bean under name statelist2 org.apache.jasper.servlet.JspServletWrappe... View Questions/Answers

java  March 30, 2010 at 8:36 PM
How can I write a java program to do the following:-1. Switch the values of two variables using a method2. Print the switched values onto the screenthanks my homey ... View Questions/Answers

java swing  March 30, 2010 at 8:10 PM
how i can insert in JFrame in swing? ... View Questions/Answers

Java  March 30, 2010 at 7:51 PM
How can insert image folder in mysql database + creating a new database through Jframe? ... View Questions/Answers

java applets  March 30, 2010 at 7:26 PM
hiiiii... i need ur help in usage of java code for navigation of one applet window to other...?? can you plz respond to me ... View Questions/Answers

Schedular starting problem  March 30, 2010 at 7:09 PM
Hello,I have a schedular called Billing schedular which suppose to run everyday at 2:15 AM (Created in servelt, multi threading and using quartz.jar API). This was running fine. But since last 7 days it is not running..The application is running on tomcat 5.0.Can any on... View Questions/Answers

resize dynamic image in jsp  March 30, 2010 at 6:58 PM
Sir,I am saving the images in mysql database with Blob. An I am retrieving the images with this code:-<%@ page import="java.sql.*" %> <%@ page import="java.io.*" %><%@ page import="servlets.MySqlConnect" %> <%... View Questions/Answers

Java JTextField Validation  March 30, 2010 at 5:17 PM
Hello Sir ,How I can Validate JTextField In Java,when I enter Any Character value in JTextField ,I want To Display MsgBox ("Enter only Numeric Value") for Id Field ,How I can Validate that plz Help Me ... View Questions/Answers

date problem in sql server  March 30, 2010 at 5:16 PM
select count(*) from xxxx_tbl where emplid="+emplid+" and work_dt=#"+work_date+"#"; work_date is in string ,Backend is sql server 2000.i am getting the date problem when using in jsp page. ... View Questions/Answers

JSP  March 30, 2010 at 4:37 PM
How to maintain a session in jsp? If a user logs out I want to make the back button of browser inactive or to kill the session.How is it possible? Please help me with the code. ... View Questions/Answers

javadoc  March 30, 2010 at 4:32 PM
Can anyone please tell me how to generate javadoc for a user defined class in netbeans.Thanks in advance ... View Questions/Answers