Home Answers Questions Question and Answers


 
 

Latest Programming Questions askedAsk your question?

How to implement link in Web app lead to report with print and save features  April 30, 2011 at 9:28 PM
Hi friends, I developed a web application based on Java MVC architecture and Struts framework with Tomcat appserv, and I need to implement link lead to report. That report should allows to save a report as PDFprint or print it,whatever user like. So please if anyone can direct me into the appr... View Questions/Answers

Game  April 30, 2011 at 4:54 PM
How to develop a game using java? give me a total code for any simple game. ... View Questions/Answers

Advertisement

how to use bean to retrieve data from database  April 30, 2011 at 4:08 PM
how to use bean to retrieve data from database ... View Questions/Answers

Tomcat  April 30, 2011 at 4:05 PM
send me one simple project application how can we deploy the project in tomcat where we can store the html and Jsp ad Java, XML files in the tomcat web apps folder. the following structure is correct or not Tomcat-web apps-my project(beside this one jsp file) Inside the my project WEB-INF and ... View Questions/Answers

TOMCAT  April 30, 2011 at 2:22 PM
how can we deploy the project in Apache Tomcat. ... View Questions/Answers

JDBC  April 30, 2011 at 1:39 PM
in class.forname which driver name we are writing for the connection from jdbc to sqlserver 2008 ... View Questions/Answers

Java Graphical user interface  April 30, 2011 at 11:06 AM
Hi, guys. I'm christina, need help with my home work Task 1: GUI Design and Implementation The user requirements of your Java quiz GUI application are specified by the following program flow in two stages. Stage 1 ?? Registration Screen: Fig 1 is the scree... View Questions/Answers

Please provide the coding for this problem  April 30, 2011 at 5:11 AM
Please provide the coding for the following problem. Write a "hangman" game that randomly generates a word and prompts the user to guess one letter at a time. Each letter in the word is displayed as an asterisk. When the user makes a correct guess, the actual letter is then displayed. When the us... View Questions/Answers

How to make a button of different behaviour?  April 29, 2011 at 10:06 PM
Suppose In a jsp page I have a button SAVE with id="btnSave" value="SAVE" and a javascript function ajaxInsertUpdateData(arg,......) to call a servlet InsertUpdate.java. Onclick event of SAVE button will call ajaxInsertUpdateData(document.getElementByID("btnSave").value,......); Now I wa... View Questions/Answers

How to make a horizontally Scrollable grid in jsp using div, table, css, javascript?  April 29, 2011 at 9:24 PM
In a jsp page InsertUpdate.jsp (say) there is a button Insert to Save data in the database.I want that on clicking Insert button, besides saving data would be viewed in grid in the same page. Now problem is that, I need to display a record of 30 columns.Since the grid is made of table it ... View Questions/Answers

jsp directory created in net beans but not able to access  April 29, 2011 at 8:21 PM
File f = new File (config.getServletContext().getRealPath("/") + "artists/" +username); f.mkdir(); File video = new File (config.getServletContext().getRealPath("/") + "artists/" +username + "/video"); video.mkdir(); File mp3 = new File (config.getServletCon... View Questions/Answers

I have netbeans jdk 7.0, till it cann't import the file,"java.nio.file.Paths". Why?  April 29, 2011 at 8:15 PM
it shows message file "java.nio.file.Paths" does not exist. ... View Questions/Answers

database query  April 29, 2011 at 5:49 PM
create table file1 ( file_id int , file_data text ); i'm unable to create this table and the error is invalid type text. plz help me. ... View Questions/Answers

Java  April 29, 2011 at 5:19 PM
again same error i got. send me another link ... View Questions/Answers

Java  April 29, 2011 at 5:10 PM
i got the same error ... View Questions/Answers

Java  April 29, 2011 at 4:58 PM
When i am downloading from ur website it throes the error like Failed to load Main-class manifeast attribute from C:\Documents and settings\Administrator\mydocuments\download\mysql-connector-java-5.0.5(1).jar ... View Questions/Answers

Java  April 29, 2011 at 4:04 PM
Again it gives the following error. java.lang.ClassNotFoundException: com.mysql.jdbc.Driver is there any necessaity to install anything ... View Questions/Answers

Java  April 29, 2011 at 3:29 PM
Again i got the following errors.is succesfully compiled.but when i enter the details to save it gives the following error C:\work1>javac Formdata1.java C:\work1>java Formdata1 Exception in thread "main" java.lang.NoClassDefFoundError: Formdata1 (wrong name : FormData1) at... View Questions/Answers

pagination  April 29, 2011 at 3:21 PM
Simple way for pagination in jsp using java script to display data without send database ... View Questions/Answers

pagination  April 29, 2011 at 3:19 PM
How to set pagination using java script to display data ... View Questions/Answers

JAVA  April 29, 2011 at 2:58 PM
I got the error like NoClassDefFoundError Formdata1(my file name) as the wrong name ... View Questions/Answers

JAVA  April 29, 2011 at 2:58 PM
I got the error like NoClassDefFoundError Formdata1(my file name) as the wrong name ... View Questions/Answers

How to zip a file using javascrip?  April 29, 2011 at 1:14 PM
hi.. can anyone tell me How to zip a file using javascrip? ... View Questions/Answers

what is cloud computing? any how we can implement?  April 29, 2011 at 1:08 PM
what is cloud computing? any how we can implement? ... View Questions/Answers

url parameter using retrive data from database in jsp  April 29, 2011 at 1:00 PM
The user can create an event. In the create page, we have three buttons. Save as draft, preview and save and post buttons. Once the user entered all the datas and if he clicks the Preview button, you have to create a dynamic jsp which should read the contents from the db based on the event id. Bu... View Questions/Answers

JAVA  April 29, 2011 at 12:54 PM
I got another error like class,interface or enum Excepted ... View Questions/Answers

why crieterias are importent in hibernate?  April 29, 2011 at 12:47 PM
why crieterias are importent in hibernate? ... View Questions/Answers

ID using get the databse latest value and displayed in jsp  April 29, 2011 at 12:38 PM
function getRecord(){ var id=document.form.id.value; alert(id); var f=document.form; f.method="post"; f.action='preview.jsp?id='+id; f.submit(); } <body id="page1" onload="getRecord();"> <form> <% String id=request.g... View Questions/Answers

how to retrieve data from multiple tables in jsp using javabeans  April 29, 2011 at 11:46 AM
hey friends.... plz me to solve this question... I have used the following code for retrieving data fromm two tables : first table having fields: bookid,name,phno second table having field: seat-id But the data is not retrieved:why so??? 1)first -.java fil... View Questions/Answers

how to retrieve data from multiple tables in jsp using javabeans  April 29, 2011 at 11:46 AM
hey friends.... plz me to solve this question... I have used the following code for retrieving data fromm two tables : first table having fields: bookid,name,phno second table having field: seat-id But the data is not retrieved:why so??? 1)first -.java fil... View Questions/Answers

how to retrieve data from multiple tables in jsp using javabeans  April 29, 2011 at 11:46 AM
hey friends.... plz me to solve this question... I have used the following code for retrieving data fromm two tables : first table having fields: bookid,name,phno second table having field: seat-id But the data is not retrieved:why so??? 1)first -.java fil... View Questions/Answers

Java  April 29, 2011 at 11:19 AM
When i am compiling the Formdata it throws the error like 1) Formdata.java overrides or uses a deprecated API 2)Recompile with -Xlint :deprecation for details. I have the following dought also I am writing the fields which are available in Formdata.java in html.Generally we are using the out.pri... View Questions/Answers

Pagination  April 29, 2011 at 11:16 AM
how to use these two SQL_CALC_FOUND_ROWS, FOUND_ROWS in database? Is these are Columns in table? ... View Questions/Answers

answer it soon  April 29, 2011 at 11:15 AM
write a proggram to accept a number and check whether the sum of prime factors of a number is a prime number or not ... View Questions/Answers

help m e  April 29, 2011 at 11:11 AM
11 12 22 13 23 33 14 24 34 44 15 25 35 35 ... View Questions/Answers

ID using get the databse latest value and displayed in jsp  April 29, 2011 at 10:34 AM
I have some text box like name address city ,I have submit button and preview button ... once click the submit button the data will be stored in mysql database ... after i click the preview button it should show the values you have entered in the form (it means latest values) ... how to retrive ... View Questions/Answers

dns server  April 29, 2011 at 12:52 AM
how to make my pc a dns server ... View Questions/Answers

dns server  April 29, 2011 at 12:52 AM
how to make my pc a dns server ... View Questions/Answers

dns server  April 29, 2011 at 12:52 AM
how to make my pc a dns server ... View Questions/Answers

dns server  April 29, 2011 at 12:51 AM
how to make my pc a dns server ... View Questions/Answers

dns server  April 29, 2011 at 12:51 AM
how to make my pc a dns server ... View Questions/Answers

Keys in DBMS  April 29, 2011 at 12:42 AM
Whats the main difference between composite and super keys ... View Questions/Answers

How to access session values through Ajax?  April 28, 2011 at 9:57 PM
Suppose in a servlet a variable userName is kept in session. How can I access this variable from JSP through AJAX? Is it possible? ... View Questions/Answers

Displaying java.util.Calendar using JSP struts tags  April 28, 2011 at 8:00 PM
My question is in regard to displaying a date whose source is java.util.Calendar and not java.util.Date. In all the examples I have found they only refer to the java.util.Date and display it as <s:date name="todayDate" format="yyyy-MM-dd" /> ... View Questions/Answers

JAVA  April 28, 2011 at 5:33 PM
I want the following fields in the Java code.Fields are First name,last name,email,password,conform password,Date of birth,age,Gender,Address,country,State,city,Telephone,mobile,how did u hear.I am design all these fields in html page.but i want this in Java coding form.give star mark to all fie... View Questions/Answers

Pagination  April 28, 2011 at 5:20 PM
How to create pagination in jsp with EJB using MS SQL? ... View Questions/Answers

In netbean jdk, it does not import the file,"java.nio.file.Paths". why?.  April 28, 2011 at 4:11 PM
it shows error file does not exist. ... View Questions/Answers

windows shell scripting  April 28, 2011 at 3:00 PM
Hi All, Using this knowledge make a batch file to achieve the following when the batch file is executed. Accept three parameters, a. Param1 b. Param2 c. Param3 Display the accepted parameters with a message like ??Entered Param1 = , Param2 = , ... View Questions/Answers

windows shell scripting  April 28, 2011 at 2:59 PM
Hi All, Using this knowledge make a batch file to achieve the following when the batch file is executed. Accept three parameters, a. Param1 b. Param2 c. Param3 Display the accepted parameters with a message like ??Entered Param1 = , Param2 = , ... View Questions/Answers

2. Given a string and a number ‘n’, find the ‘n’th distinct repeating character.  April 28, 2011 at 1:56 PM
Given a string and a number ?n?, find the ?n?th distinct repeating character. For example, Input: Abracadabra, 1 Abracadabra, 2 Abracadabra, 3 Abracadabra, 4 Output a b r null ... View Questions/Answers

plz give me program to this: Given a string and a number ‘n’, find the ‘n’th distinct repeating character.  April 28, 2011 at 1:55 PM
Given a string and a number ?n?, find the ?n?th distinct repeating character. For example, Input: Abracadabra, 1 Abracadabra, 2 Abracadabra, 3 Abracadabra, 4 Output a b r null ... View Questions/Answers

php  April 28, 2011 at 1:52 PM
plz tell me code for PHP SQL Insert,delete,update,view is used to insert the record from HTML page to Mysql database using in single PHP form. ... View Questions/Answers

Find the percentage of words which starts with a vowel in a file  April 28, 2011 at 1:50 PM
Question: Find the percentage of words which starts with a vowel in a file. Ex: Input: Contents of File1- There is an endless loop in the program. Output: Vowel Percentage: 50%. ... View Questions/Answers

Dojo  April 28, 2011 at 1:43 PM
I have a text box built in dojo and i am unable to select the contents of this text box in IE. In mozilla it works fine.Please suggest ... View Questions/Answers

Java Complier  April 28, 2011 at 12:21 PM
In the cmd when i enter the dir it shows the my file name.but when i enter the javac its give the error like javac is not recognized as internal and external.i am restart the system also after changing the settings.But it give the same error ... View Questions/Answers

Java Complier  April 28, 2011 at 12:18 PM
in the cmd e=when i enter the dir it shows the my file name.but when i type javac it shows the error like javac is recognized as internal and external.i am restart the system also.but its not working ... View Questions/Answers

JAVA Complier  April 28, 2011 at 11:53 AM
In my system when i am compiling the Java program i got error like"Javac is not recognized as internal or external command, operable program or batch file".i am install the java location as C:\Program Files\Java\jre1.6.0\bin: i am change the settings in environmental variable as the following Ed... View Questions/Answers

Passing Parameter Values to another jsp in Query Strings  April 28, 2011 at 11:30 AM
HI ALL, I m trying to pass a variable value to another JSP using query string... response.sendRedirect("http://localhost:8080/SWIFT/index.jsp?loginid='"+loginid+"'" ); but i m getting http://localhost:8080/SWIFT/index.jsp?loginid='null'** *in URL even though some values* stored ... View Questions/Answers

DataGrid without DataBase  April 28, 2011 at 11:14 AM
I want display list of data without using database. Ex- Employee have some elements like- name, sex, place, designation. I have to display the content of these elements but without having this information in database, but this can be present in java file. NAME SEX PLACE D... View Questions/Answers

scjp details  April 28, 2011 at 10:04 AM
SCJP fees details abou scjp? What are the best books for preparing to scjp? How many time scjp exam's are conducted for one year? ... View Questions/Answers

Print the following format  April 28, 2011 at 8:14 AM
how to print the following format given string "00401121" in java 0-** 1-* 2-* 3- 4-* ... View Questions/Answers

Can I pass a  April 28, 2011 at 12:29 AM
Suppose I have servlet named Name.java and there is a variable String name holding a value "Roseindia". I have collected the value to Getname.jsp via ajax. Now how can I pass this value to scriplet without page refreshing? ... View Questions/Answers

How to eliminate error," Could not find the main class: filecopy.FileCopy. Program will exit." ?  April 27, 2011 at 9:20 PM
run: java.lang.NoClassDefFoundError: filecopy/FileCopy Caused by: java.lang.ClassNotFoundException: filecopy.FileCopy at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLo... View Questions/Answers

HTML  April 27, 2011 at 7:22 PM
How can we increase the row size in the grid form view of the table.I want to store the maximum 4 details of the candidate in one page of the grid table view ... View Questions/Answers

how to insert checkbox value into database using jsp  April 27, 2011 at 6:44 PM
how to insert check box value to the database using jsp my code is <link href="font&colors.css" rel="stylesheet" type="text/css"> <p></p> <p>&nbsp;</p> <p>&nbsp;</p> &... View Questions/Answers

java  April 27, 2011 at 6:08 PM
Design a Super market transaction Processing application that can perform the following; Capture Item name, quantity and Unit price and can let the user perform activities such as enter several products in the system, carry out several sales to the customers, able to display stock available in t... View Questions/Answers

java  April 27, 2011 at 6:08 PM
Design a Pay roll system application that can let the user perform the following transition; enter employees details, deposit employees salary for the month, Compute allowances, compute PAYE and NSSF for employees display details and exit the program. Use the switch case statement to let the use... View Questions/Answers

java  April 27, 2011 at 6:06 PM
Design a Bank Account Application that will allow users to do their transactions. For this, user will have to enter all the required information like, name, account number, account type and initial balance etc and using the switch case statement they can select the type of transaction they want t... View Questions/Answers

php function call  April 27, 2011 at 5:50 PM
I have an function in error-status.php like this function validateHostName($hostName) { if((strpbrk($hostName,'`~!@#$^&*()=+.[ ]{}\|;:\'",<>/?')==FALSE) && !ctype_digit($hostName) && eregi("^([a-z0-9-]+)$",$hostName) && ereg("^[^-]",$hostNa... View Questions/Answers

how to make a radiobutton selected when retrieving data from database using struts framework and spring jdbc  April 27, 2011 at 5:08 PM
how to make a radio button selected when retrieving data from database using struts framework and spring jdbc. ... View Questions/Answers

how can i prevent duplicate records using servlets and MVC model?  April 27, 2011 at 4:51 PM
hai, I need a program to insert values into database at the same time it shows error msg on response page while we are giving duplicate entry of a primary key.i want this program in MVC model.can anyone help me... Thanks&Regards P.Divya ... View Questions/Answers

send Binary Data by doGet or doPost?  April 27, 2011 at 4:31 PM
which method in doGet or doPost is use to send binary date to server? ... View Questions/Answers

Printing stars  April 27, 2011 at 3:55 PM
I am a beginer and i have one assignment which couldnt give me any idea how to do it..The Question is "Get a string "001222014654" and print o/p as 0 - * 1- ** 2- * 4- ** 5-* 6-* I dont know how to split these strings in java so that i can put it in array..can so... View Questions/Answers

give answer  April 27, 2011 at 2:56 PM
. Which of the following will he use to compile the KeyTest class successfully ... View Questions/Answers

HTML  April 27, 2011 at 12:59 PM
how can we design the gird form view in html i want the following fields in the grid form The fields are Name of the candidate,Title of the work,Description of the work,video of the work,Image of the work,points from the judges.Under the video of the work i want two buttons like view and download... View Questions/Answers

Creation of xml  April 27, 2011 at 11:13 AM
Hi, I need to fetch details from my database and to create a xml file containing all those datas...My database datas are in key value pair... AppID Label Value 12345 Applicant name XXXX 12345 Masterno YYYY 12345 Batchno ZZZZ 12345 Tradelic... View Questions/Answers

socket programing in servlet  April 27, 2011 at 10:24 AM
give me a example to write socket programing in servlet ... View Questions/Answers

mouseover  April 27, 2011 at 9:40 AM
Sir, I have stored three images in database for one perticular item,when search is made only one image is dispaled,i want to do mouseover on that image and display other two images in popup using javascript or ajax. please help Thanks ... View Questions/Answers

struts problem ... need help urgently.. please reply ASAP  April 27, 2011 at 8:26 AM
Hi Every1, I want to make an application using struts 1.2. I am a beginner on struts. Dont know much about struts. In application I have to make jsp to get some search keys from user and according to that I have to show data from DB on jsp. Files I have created are : JSP ACTION... View Questions/Answers

Java using Netbeans Object Oriented Programming  April 27, 2011 at 5:38 AM
I am trying to make a program that uses a main class and a separate class with one public method and one private method. The main method in the main class asks the user for 2 strings and a set of numbers for an array. This array is then sorted in descending numerical order. It then initiates the ... View Questions/Answers

How can I write a GUI stack program by Java to push Image files instead of other data type items?  April 27, 2011 at 3:50 AM
How can I write a GUI stack program by Java to push Image files instead of other data type items? for the push instruction I wish to give the name of the image file to add it in to the stack, and set the pop instruction to remove the image which is at the top of the stack? please help? ... View Questions/Answers

Keybourd in java  April 27, 2011 at 2:57 AM
I have wrote a GUI java program which acts as a keyboard, in the program I have used a JTextfield and a collection of Buttons in my program. when the user click to any of the Button the result appears in the Textfield, I want to modify my Keyboard program to make it possible of displaying the res... View Questions/Answers

Keybourd in java  April 27, 2011 at 2:57 AM
I have wrote a GUI java program which acts as a keyboard, in the program I have used a JTextfield and a collection of Buttons in my program. when the user click to any of the Button the result appears in the Textfield, I want to modify my Keyboard program to make it possible of displaying the res... View Questions/Answers

Latitude and Longitude  April 27, 2011 at 12:51 AM
Hi, I have to learn about Latitude and Longitude. Can any one tell me what is the use of Latitude and Longitude? Thanks ... View Questions/Answers

how can create clock baisc in java  April 27, 2011 at 12:34 AM
think u for help me .. ... View Questions/Answers

how can create clock baisc in java  April 27, 2011 at 12:34 AM
think u for help me .. ... View Questions/Answers

how can create clock baisc in java  April 27, 2011 at 12:34 AM
think u for help me .. ... View Questions/Answers

SOCKET PROGRAMING IN THE JAVA FOR NETWORKING CONCEPT  April 26, 2011 at 8:51 PM
I WANT TO KNOW ABOUT THE JAVA SOCKET PROGRAMING FROM BASIC LEVEL AND HOW CAN I WORK ON IT I KNOW THE JAVA PROGRAMING.SO PLEASE HELP ME HOW CAN I DO SOCKET PROGRAMING? ... View Questions/Answers

xml output  April 26, 2011 at 5:28 PM
generate an xml output in the following format <FileCount> <DOC>AA <RTF>BB <PDF>CC <Total>DD where AA=total number of .DOC files found BB=total number of .RTF files found,etc ... View Questions/Answers

SQL  April 26, 2011 at 5:10 PM
what data type we use for the uploading the video and image files in MySQL server 2008 ... View Questions/Answers

Managment  April 26, 2011 at 3:51 PM
Pl sir convert this C program to java program. #include<graphics.h> #include <stdio.h> #include <conio.h> #include <stdlib.h> #include <string.h> void lincol(int,int,int); void delrec(void); void edit(void); void add(void);... View Questions/Answers

Managment  April 26, 2011 at 3:51 PM
Pl sir convert this C program to java program. #include<graphics.h> #include <stdio.h> #include <conio.h> #include <stdlib.h> #include <string.h> void lincol(int,int,int); void delrec(void); void edit(void); void add(void);... View Questions/Answers

Managment  April 26, 2011 at 3:51 PM
Pl sir convert this C program to java program. #include<graphics.h> #include <stdio.h> #include <conio.h> #include <stdlib.h> #include <string.h> void lincol(int,int,int); void delrec(void); void edit(void); void add(void);... View Questions/Answers

Managment  April 26, 2011 at 3:51 PM
Pl sir convert this C program to java program. #include<graphics.h> #include <stdio.h> #include <conio.h> #include <stdlib.h> #include <string.h> void lincol(int,int,int); void delrec(void); void edit(void); void add(void);... View Questions/Answers

Managment  April 26, 2011 at 3:51 PM
Pl sir convert this C program to java program. #include<graphics.h> #include <stdio.h> #include <conio.h> #include <stdlib.h> #include <string.h> void lincol(int,int,int); void delrec(void); void edit(void); void add(void);... View Questions/Answers

scjp  April 26, 2011 at 3:18 PM
What is the eligibility for appearing scjp examination? ... View Questions/Answers

SCJP Eligibility  April 26, 2011 at 3:14 PM
What is the eligibility for appearing scjp examination? ... View Questions/Answers

java project question  April 26, 2011 at 10:46 AM
hi!!! I am doing a web related project in java.. And i am new to jsp. I am getting the following wargings. Pls help me with proper solution. Wargings are as follows. Description Resource Path Location Type Class is a raw type. References to generic type Class<T> shoul... View Questions/Answers

I have crude application  April 26, 2011 at 10:34 AM
I have crude application, how to load into this roseindia.net ... View Questions/Answers

DMCA.com