Home Answers Questions Question and Answers


Latest Programming Questions askedAsk your question?

java to MS Access conectivity  July 22, 2010 at 10:20 PM
give me source code to stored the value entered by user in a text field(such as name, age, sex, add. of the user etc.) that are on the jpanel to the database created in MSACCESS 2007. actually i am making project on bank and i want to stored the information of customer to my database on the ACCESS. ... View Questions/Answers

railway reservation system  July 22, 2010 at 5:49 PM
help me develop a code on a railway reservation system which maintains records of passengers traveling in the different trains on different dates reaching different destinations in the system, the reservation of the passengers is made by supplying the train number or the the name of a train on the c... View Questions/Answers

JSF error  July 22, 2010 at 5:36 PM
When i am trying to run my jsf application using tomcat6.0 in eclipse europa ide i am getting the error like "java.lang.NoClassDefFoundError: javax/faces/event/SystemEventListener"Iam using jsf-api & jsf-impl.jar filesCan u plz resolve the issue asap.... View Questions/Answers


XSD Creation.  July 22, 2010 at 5:35 PM
When I try to generate xsd from java object. It is generating XSD filefinely. But the problem is it isgenerating XSD file elements inalphabetical order.can u please sujest me how can we do that one. I tried with annotationin java object but I am not getting the desired output... View Questions/Answers

reservation system  July 22, 2010 at 4:52 PM
hi help me write a program on a railway reservation system that records the destination of the passengers.It should be decided by the date on which they are to arrive on their destinations and also the number of the train.Thank you in advance ... View Questions/Answers

java programming  July 22, 2010 at 4:50 PM
Design a class for Complex numbers in Java. In addition to methods for basic operationson complex numbers, provide a method to return the number of active objects created. ... View Questions/Answers

Location finding error  July 22, 2010 at 3:55 PM
Location needs from drive name: My file uploading program has an error. It requires the location should be given from the directory name. Instead of this if only parent directory is given it shows the error as file not found. Below is the coding.The problem line is marked ^ character.... View Questions/Answers

java programming  July 22, 2010 at 3:51 PM
Develop a simple paint like program that can draw basic graphical primitives in different dimensions and colors. use appropriate menus and buttons. ... View Questions/Answers

java script,java  July 22, 2010 at 2:32 PM
hi deepak i have one image is there.beside the image ihave 11 digital numbers is there.that digital numbers we can drag and drop the image when we drop the digitan we can one display box will displayed with x,y coordinations.please it's very urgent please tell me ... View Questions/Answers

Regular Expressions  July 22, 2010 at 1:18 PM
hi tried writing this program and got stuck give some help pleaseWrite a java program to accept name, phone number , address,email and validate them.Name should Start with upper case and the lower cases, phone number Should start with +256-041-369024.Thanx ... View Questions/Answers

Iframe conetent  July 22, 2010 at 12:33 PM
Hi!i am loading web page in iframe in jsp page. when i am clicking on the link of iframe links it is loading in parent window that means in same window. i want to open the iframe content in new page. Is it possible? if possible let me know...Thanks in advance..., ... View Questions/Answers

java  July 22, 2010 at 12:07 PM
Hi,Please observe the below code:import javax.swing.*;import java.awt.*;import java.awt.event.*;import java.sql.*;class LoginDemo{JButton SUBMIT;JFrame f;JLabel label1,label2;final JTextField text1;... View Questions/Answers

java  July 22, 2010 at 7:19 AM
sir, i need Implement Lisp-like list in Java. Write basic operations such as 'car', 'cdr', and 'cons'. If L is a list [3, 0, 2, 5], L.car() returns 3, while L.cdr() returns [0,2,5].please reply must. ... View Questions/Answers

java  July 22, 2010 at 2:46 AM
hi sir. I want to know how we do JDBC connectivity in java with practical approach and explanation. And pls mention all the methods of connectivity also ... View Questions/Answers

images  July 21, 2010 at 8:53 PM
how to do image watermarking in java? or how to identify watermarked images.. tell something related to the watermarking concept implementation in java? ... View Questions/Answers

matching database again  July 21, 2010 at 7:34 PM
Dear experts,So happy I get through this ask a question page again. Thank God.I want to say "A BIG THANK YOU" for helping me about the matching codes.It is working now after fine tuning the SQL query :-) but I can't do it without you showing me the steps... View Questions/Answers

XML in database  July 21, 2010 at 5:59 PM
Hi Deepak, i m again facing problem with single element multiple tag in xml.i m trying to read the tag values into my database but it gives nullpointerexception. pls guide me appropriatly.MyXML Structure is ,Test1.xml<test1> <Firsttab>... View Questions/Answers

java  July 21, 2010 at 5:05 PM
HiPlease observe the following code:import mysql.DataAcc;// import package class for getting database connectionimport java.sql.*;import java.awt.*;import javax.swing.*;import java.awt.event.*;class D1 extends JFrame implements... View Questions/Answers

javascript for prompt  July 21, 2010 at 4:39 PM
Dear Sir, I am using a prompt() for taking a reason for delete.I used your code,its working fine .but i am validating a prompt contains any special character or what.If contains a alert message has to come toremove a special character.I done but when an alert message come press ok then that ... View Questions/Answers

java  July 21, 2010 at 4:26 PM
Hiiam using servlets ,in one program my requirement is if there is a image(if u like) in anywhere and we browse that image and it is store in u r account like orkut.my doubt is if the image is stored in database it is not the good idea. my requirement is the image is stored in... View Questions/Answers

tree view  July 21, 2010 at 4:04 PM
I want to use tree view in my example code to display data in hierarchical form. how ??Thanks ... View Questions/Answers

java  July 21, 2010 at 3:26 PM
Hiiam created a new registration form as a desktop application using swings.and this is the code: pls have a lookimport mysql.DataAcc;// import package class for getting database connectionimport java.sql.*;import java.awt.*;im... View Questions/Answers

Java with Grid  July 21, 2010 at 12:18 PM
please check this URLhttp://demos.telerik.com/aspnet-ajax/grid/examples/hierarchy/nestedviewtemplate/defaultcs.aspxgrid on above link is made in dotnet. i want to make [b]same UI[/b] as in Java.which technologies should be used that can be easy to use with java.... View Questions/Answers

What's wrong with my form?  July 21, 2010 at 11:55 AM
Dear expert,I'm having trouble with my enquiry form.Hope you can tell me where my mistake lies.Thanks.Here's my jsp code:<title>Enquiries</title><link rel="stylesheet" type="text/css" href="styl... View Questions/Answers

java  July 21, 2010 at 11:27 AM
how to grab pixel from an image ... View Questions/Answers

loading image  July 21, 2010 at 11:14 AM
give me a source code to add any wallpaer of my PC as a background image to jpanel on a jframe . ... View Questions/Answers

java to excel connectivity  July 21, 2010 at 11:11 AM
give me source code to stored the value entered by user in a text field(such as name, age, sex, add. of the user etc.) that are on the jpanel to the database created in MSEXCEL 2007. actually i am making project on bank and i want to stored the information of customer to my database on the excel. ... View Questions/Answers

Read XML in java  July 21, 2010 at 10:19 AM
Hi Deepak, I want to read a xml file which have only one element with multiple attributes with same tag name.here is my file<employee> <firstname>Tom</firstname> <lastname>Cruise</lastname> <firstname>joil</firstname> ... View Questions/Answers

java  July 21, 2010 at 9:43 AM
hiiam created a desktop login form using swings , and it works properly and my doubt iswhen valid user is login , the user name ,server date and server time is automatically stored in database and how it is and how to check valid user or not.pls tell me ... View Questions/Answers

Java Problem  July 20, 2010 at 9:47 PM
How to create a jar file of a program ... View Questions/Answers

Java Program  July 20, 2010 at 9:42 PM
A program to create a simple game using swings. ... View Questions/Answers

java  July 20, 2010 at 7:57 PM
Can you provide me the concepts of class hierarchy with a suitable diagram and concepts of polymorphism with dynamic binding with a programming example for each please... ... View Questions/Answers

Java Networking  July 20, 2010 at 2:58 PM
I want to get all systems' (computer,printer,laptop) IP address on LAN using java code. I tried a lot but find only my system's IP. I want java code for dat. ... View Questions/Answers

dropdown  July 20, 2010 at 1:01 PM
i have below code for dropdown . now i want to user that textbox value in query at same page... how to get it in a new variable???<html><script>function getValue(){var combo = document.getElementById("sel");var val = combo.options[combo.selec... View Questions/Answers

validation message  July 20, 2010 at 12:41 PM
sir, i took help of that example but in that we change only color of the message i want to shift the place of the error message.means all messages are put together at top of the form. ... View Questions/Answers

struts validation problem  July 20, 2010 at 11:40 AM
i used client side validation in struts 2 .but message will display only on the top of the component.i want to display it on the top of the page ya right side of the component.Que: how to configure parameter for the message tag or any other alternative solution? ... View Questions/Answers

servlets  July 20, 2010 at 10:57 AM
Q: i write program to upload image into perticular folder.but i want to store that path into database but not image and display that image in page from the db.pls any one send me code for that in servlets asap.pls vary urgent.i will be thankful to youpls send me ... View Questions/Answers

drodown  July 20, 2010 at 10:49 AM
how to display selected dropdown value in textbox without using form. also want to use that value in query... ... View Questions/Answers

jsp solution  July 20, 2010 at 10:43 AM
how to display javascript value in current jsp page without refreshing page.. dont want alert... got value in 1 variable in javascript and want to print in current jsp page ... View Questions/Answers

core java  July 20, 2010 at 9:28 AM
what is the difference b/w #include and import?? ... View Questions/Answers

Cybercafe  July 19, 2010 at 11:19 PM
Hi, i'm a java beginner, i'm in project to create a cyber cafe manager, my machines are running linux (ubunutu). I am looking for a code to freeze the screen until a user name and a password is given. Thanks for helping me ... View Questions/Answers

javascript for prompt  July 19, 2010 at 6:07 PM
Dear sir, I have used prompt() for taking a reason while deleting using java script its working fine but prompt was coming at the top left so i want that prompt should come at middle so how to do this ,please help me.Thanks.... ... View Questions/Answers

java  July 19, 2010 at 5:05 PM
Q What is the real use for log4J? ... View Questions/Answers

Servlet  July 19, 2010 at 5:02 PM
Q why javasoft has declared HttpServlet Class as an Abstract Class althoug there is no abstract method availiable in HttpServlet Class? ... View Questions/Answers

java  July 19, 2010 at 4:58 PM
Q What is the disadvantage of Singleton design pattern? ... View Questions/Answers

grid view in java  July 19, 2010 at 4:47 PM
Is it possible to create dynamic grid view to display data from database. if yes. how ?? ... View Questions/Answers

Java  July 19, 2010 at 12:27 PM
I have write a program to capture images from camera and scanners,I got image in panel but how should i save this image through save dialogbox at any location ...plz help ... View Questions/Answers

ToolTip Code  July 19, 2010 at 11:59 AM
Dear Sir,One more question i have.In my web page many students' roll number are there.I want to dispaly student's information just after placing the mouse on that roll number.(Details like-age,sex.location.)Only by placing,not by clicking.No new page should open.I heard ki Tooltip can be used ... View Questions/Answers

Java logical error  July 19, 2010 at 11:26 AM
Subject:Buttons not displaying over imageDear Sir/Madam,I am making a login page using java 1.6 Swings.I have want to apply picture in the backgoud of the frame and want to place buttons on it.But the buttons are not displaying properly.So,I request your kind help... View Questions/Answers

Hash value is not same  July 19, 2010 at 9:29 AM
Hi, I've two Excel files with same data. One is in Excel 2003 (.xls) format and other one is in Excel 2007 (.xlsx) format. I've generated one way hash using SHA-1 algorithm. But the hash value of Excel 2003 files is not same as the hash value of Excel 2007 file. What might be... View Questions/Answers

JSP and AJAX very urgent  July 18, 2010 at 10:01 PM
Hi Team, This is Ragavendran.R.. I have a very basic doubt in AJAX. While Using AJAX, of course, there will be <div> tag involved in JSP page. But in my current project, I am using too many <div> tags in my JSP page and as a result, I am getting only the last div t... View Questions/Answers

struts  July 18, 2010 at 9:51 PM
when the action servlet is invoked in struts? ... View Questions/Answers

Java Code  July 18, 2010 at 9:48 PM
why overiding method used in your project? ... View Questions/Answers

java  July 17, 2010 at 6:24 PM
how to create a login page for desktop application haveing user interface page and after thatuser is valid then it will store name,mail,etc., and also automatic date and time(it is important) database.the uqestion is how to store automatic date and timepls help me ... View Questions/Answers

core java  July 17, 2010 at 6:15 PM
how to create a login page using only corejava(not servlets,jsp,hibernate,springs,structs)and that created loginpage contains database(ms-access) the database contains data what ever u r enter and automatically date and time and alsoinserted in the database pls help me that is useful f... View Questions/Answers

audio files in jdbc connectivity with ms-access  July 17, 2010 at 4:03 PM
i need to know how to retrieve audio files through jdbc connectivity with ms-access and how to play them through link in browser.... ... View Questions/Answers

Unable to get data from class  July 16, 2010 at 10:10 PM
I get this code from the internet which read from comm port of the computer & modify is as below:-package COM;/** * * @author kwngeaw */import javax.comm.*;import java.io.*;import java.util.*;public class ComControl implemen... View Questions/Answers

servlet  July 16, 2010 at 7:22 PM
problem: home.jsp contains 6 checkboxes 1.A 2.B 3.C 4.C1 5.C2 6.D conditions are (1)if user select only A (or) only B (or) only c(or) only D (or)both AB ,AD --print valid user(2)if user select only C(or) only C1 (or) only C2 --print valid user... View Questions/Answers

J2ME Sub Menu  July 16, 2010 at 7:01 PM
I am creating a J2ME midlet in which I have created a menu by adding different commands in it. Now for example my command list is as follows1. A2. B3. C4. D5. ExitNow my question is I want to add the command in A (i.e. A -> 1. Hi), etc.Can you... View Questions/Answers

hibernate caching  July 16, 2010 at 7:00 PM
what is caching ?how to work with caching in hibernate ?can u give brief explanitation ... View Questions/Answers

spring first example  July 16, 2010 at 3:53 PM
I am trying my first example of spring from the linkhttp://www.maestric.com/doc/java/spring/setupBut I am not getting the simple "Hi" message ,I have created simple one jsp page and /WEB_INF/web.xml it is showing status 404HTTP Status 404 - /springapp/--------... View Questions/Answers

java  July 16, 2010 at 3:38 PM
write a package for college which has two classes teacher and subject .teacher has two methods accept() and display and student has two methods accepts() and display().display the information about teacher and subject of the college package ... View Questions/Answers

java  July 16, 2010 at 3:37 PM
write a package for college which has two classes teacher and subject .teacher has two methods accept() and display and student has two methods accepts() and display().display the information about teacher and subject of the college package ... View Questions/Answers

java  July 16, 2010 at 3:34 PM
create two packages ,package1 contains two classes manager and clerk.both classes having method to accept corresponding information.packages 2 contains class employee with method accept info.write a program to display all information. ... View Questions/Answers

core java  July 16, 2010 at 11:53 AM
Is there any Compile time exceptions in java? ... View Questions/Answers

javascript for textbox or prompt using servlet  July 16, 2010 at 10:26 AM
Dear sir, I am using a prompt(),when a delete is confirmed,its working fine ,but when a prompt is closed or cancel ,i have to remain in the same page but here it is going to next page .So please help me how to do..Thanks... ... View Questions/Answers

One way hash in Java  July 16, 2010 at 9:46 AM
Hi, What is one way hashing. How to implement it in Java. I've to compare the contents of two files by generating their hash value in Java.Please give some examples.Thank You, ... View Questions/Answers

Java code  July 16, 2010 at 7:35 AM
in GWT ,which classes would be required to implement a screen showing a Grid with its cells derived from a JDBC select to a database table, let's define the table simply, say: CREATE TABLE contact ( name TEXT, phone_number TEXT );So effectively you would be just displaying t... View Questions/Answers

java bean  July 16, 2010 at 12:02 AM
what is the diffrence between javabean and propertyfile both can be used as storage if these are there than in which case we use file and database please clearify.one more question why there is ejb if all that work can be done by simple pojo as in mvc ,is only we want container help for transaction ... View Questions/Answers

code  July 15, 2010 at 11:51 PM
hi,i have a condition like when a radio button is clicked than it should refresh that page and give a warning message like "you are unable to route this document as its INTERNAL" and that option should also be disabled after that,so if possible provide th code in java,post the ... View Questions/Answers

javascript  July 15, 2010 at 11:45 PM
hi,i need to disable the link/hyperlink by clicking on a object by meeting the condition by using java script.if possible provide a code in a simple way,post the code to my id:[email protected] ... View Questions/Answers

MySql ClassNotFoundException  July 15, 2010 at 6:40 PM
Dear sir,i am working in Linux platform with MySQL database , actually i finished all installation in MySQL but while i am executing java program i am getting ClassNotFoundException. Can i install in linux any software making connection between java and MySQL. Or how can i execute my pro... View Questions/Answers

web design  July 15, 2010 at 3:45 PM
hello sir.my quesstion is same please guide me.please reply my question .because it very urgrent.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 clic... View Questions/Answers

website creation using java and mysql  July 15, 2010 at 3:22 PM
i am going to create a website for some company using java and mySql... i dont know the procedure to create a website.can anybody give me the steps what i have to follow for these??? ... View Questions/Answers

struts2-db connection error  July 15, 2010 at 3:07 PM
i m unable to connect to the database in one of my application using struts2???These concepts are pretty new to me..so i wanted to know where the problem would hav occured? ... View Questions/Answers

jsp  July 15, 2010 at 1:14 PM
Write a program using JSP that accepts the enrollment number of a student as input 20and displays the name and address of study center to which the student is attached. ... View Questions/Answers

jsp  July 15, 2010 at 1:12 PM
Write a program using JSP that displays a webpage consisting of Examination Form of 20any university. The form is filled by any student who intends to appear for examinations.Make necessary assumptions ... View Questions/Answers

code for this problem  July 15, 2010 at 1:09 PM
i have buttom submit .It is working with single click.Suppose if i am At the same time clicking(parallel) twise second request will be stoped until process the proces first requst and terminate the process. ... View Questions/Answers

JSP Code  July 15, 2010 at 12:31 PM
Hi frnds,This is reference to solution which u have provided for 'Limiting the Number of Record Display in a table'.With full respect to what the solution you have provided, its really appreciable but since i am using PostgreSQL, few of the function of SQL are not available i... View Questions/Answers

JSP Code  July 15, 2010 at 12:22 PM
Hi Frnds,I am using a checkbox in my one of page & which is by default checked. Now if i have to use the status of this checkbox in another page then how can i use. Example: if it is checked in page1.jsp then it should also be checked in page2.jsp.How can i achieve ... View Questions/Answers

JSP Code  July 15, 2010 at 12:16 PM
Dear Frnds,I m using a 'multiple selecttion in List box' & trying to get all the value selected in list box. Here is the line which i am using to retrieve the value....String a=request.getParameter("drpdwnAllRole");This is giving me only first ... View Questions/Answers

jsp  July 15, 2010 at 12:07 PM
it is possible to fire a java page from a jsp page through <a href > tag ... View Questions/Answers

jsp  July 15, 2010 at 11:53 AM
what are the thinks in el (jsp) nesseay to take care wel codeing ... View Questions/Answers

Java Problem  July 15, 2010 at 11:51 AM
How to create executable file of a java program.That is steps to create a Jar File of a Java Program ... View Questions/Answers

Calling exe through Java program.  July 15, 2010 at 11:19 AM
Hi,How to call a vb exe that takes one argument , using a Java program.Thank You,Umesh Kilkile ... View Questions/Answers

co  July 15, 2010 at 12:52 AM
what is the difference b/w #include and import?? ... View Questions/Answers

core java  July 15, 2010 at 12:50 AM
catch(Exception e) {System.out.println(e); }what is use of this?? ... View Questions/Answers

How to identify the remote system that gets connected to our  July 14, 2010 at 6:53 PM
Hi,I am doing a project which works on providing security.In this my pblem is any user from anywhere and any location if they get registered into our site how can we provide security to them through my website in online from accessing unwanted sites.how can I provide that security... View Questions/Answers

javascript for textbox or prompt using servlet  July 14, 2010 at 5:26 PM
Dear sir I am writing script in servlet,so prompt() is not working here so please help me...In my project when a vendors want to delete the uploaded file ,if they are confirmed to delete the i have to take a reason for deleting a textbox as to come if press ok then delete the file then i... View Questions/Answers

javascript for textbox  July 14, 2010 at 4:08 PM
Dear Sir, In my project if i use a var reason=prompt(\"Reason for deleting:\",\"\") in a javascript after confirm the delete option ,its not invoking the prompt()...So please help me..Thanks... ... View Questions/Answers

about interview ques.  July 14, 2010 at 3:18 PM
i give a interview for java..they ask me.what is System.out.println(); what is its write ans... ... View Questions/Answers

About desing patterns  July 14, 2010 at 12:36 PM
How many Design Patterns are there supported by Java? and what is an Application Controller? what is the difference between Front Controller & Application Contorller? ... View Questions/Answers

java  July 14, 2010 at 11:42 AM
Develop a multi-threaded GUI application of your choice. ... View Questions/Answers

java  July 14, 2010 at 11:41 AM
Write a multi-threaded Java program to print all numbers below 100,000 that areboth prime and fibonacci number (some examples are 2, 3, 5, 13, etc.). Design athread that generates prime numbers below 100,000 and writes them into a pipe.Design another thread that generates fibonacci... View Questions/Answers

java  July 14, 2010 at 11:39 AM
Design a thread-safe implementation of Queue class. Write a multi-threadedproducer-consumer application that uses this Queue class. ... View Questions/Answers

java  July 14, 2010 at 11:38 AM
Develop a template for linked-list class along with its methods in Java. ... View Questions/Answers

java  July 14, 2010 at 11:38 AM
Develop a scientific calculator using even-driven programming paradigm of Java. ... View Questions/Answers

java  July 14, 2010 at 11:37 AM
Develop a simple paint-like program that can draw basic graphical primitives indifferent dimensions and colors. Use appropriate menu and buttons. ... View Questions/Answers

java  July 14, 2010 at 11:37 AM
Write a Java program to read a file that contains DNA sequences of arbitrary lengthone per line (note that each DNA sequence is just a String). Your program shouldsort the sequences in descending order with respect to the number of 'TATA'subsequences present. Finally write the sequ... View Questions/Answers

java  July 14, 2010 at 11:36 AM
Design a Java interface for ADT Stack. Develop two different classes that implementthis interface, one using array and the other using linked-list. Provide necessaryexception handling in both the implementations. ... View Questions/Answers