Home Answers Questions Question and Answers


 
 

Latest Programming Questions askedAsk your question?

Servlets  May 3, 2011 at 1:12 PM
Again i got the same errors.the errors are as follow InsertServlet.java:3: package javax.servlet does not exist import javax.servlet.*; ^ InsertServlet.java:4: package javax.servlet.http does not exist import javax.servlet.http.*; ^ InsertServlet.java:7: cann... View Questions/Answers

SERVLETS  May 3, 2011 at 12:38 PM
when i compile ur code i get the following errors. InsertServlet.java:3: package javax.Servlet does not exist import javax.Servlet.*; ^ InsertServlet.java:4: package javax.Servlet.http does not exist import javax.Servlet.http.*; ^ InsertServlet.java:6: cannot... View Questions/Answers

Servlets  May 3, 2011 at 11:51 AM
when i am compiling the follow program it gives the error.so help me to resolve the problem import java.io.*; import javax.Servlet.*; import javax.Servlet.http.*; import java.sql.*; import java.sql.connection .*; public class LoginServlet extends HttpServl... View Questions/Answers

Advertisement

jasper report  May 3, 2011 at 11:38 AM
Sir, I have created report using ireport3 in netbeans but i am not able to show the report in jsp and also want to show the dynamicaly generated reports and aslo show in pdf and excel Please help Thanks. ... View Questions/Answers

how to print the average of each column of 2d n*m array using java  May 3, 2011 at 10:20 AM
here is my code: import java.io.File; import java.io.IOException; import java.util.ArrayList; import java.util.List; import java.util.Scanner; public class ReadContents { public static void main(String[] args) throws IOException { File file = n... View Questions/Answers

Java Bean  May 3, 2011 at 8:37 AM
What is Java Bean? ... View Questions/Answers

java this  May 3, 2011 at 3:12 AM
class Temp { int x = 10; void show(int y ,Temp this.x ) { System.out.println(x); System.out.println(this.x); } public static void main(String ...s) { Temp t = new Temp(); t.show(20,t); System.out.println(t); } } ... View Questions/Answers

project  May 2, 2011 at 10:56 PM
sir i want module and source code on my project hospital management system ... View Questions/Answers

please clarify regarding capacity method of my below string buffer class example  May 2, 2011 at 8:50 PM
hi here is the program below: > import java.lang.*; public class > Compare{ public static void > main(String[] args) { > System.out.println("StringBuffer > insert and append example!"); > StringBuffer sb = new StringBuffer(0); > //Fi... View Questions/Answers

what is wrong in this program?I have netbeans 7.0 & jdk 7. please do corrections.  May 2, 2011 at 8:48 PM
import java.io.*; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.IOException; import java.util.List; import java.io.InputStream; import java.nio.file.Paths; import java.nio.channels.FileChannel; import java.nio.file.Stan... View Questions/Answers

job  May 2, 2011 at 7:02 PM
i know siwing,and awt very well,and i also develop project in swing,can u suggest me any online job in swing,or and full time job in swing.. ... View Questions/Answers

sql query  May 2, 2011 at 5:40 PM
hi friend, Im doing a project,in that a main id called mid,that main id carries some sub ids which is sid one mid carries so many numbers of sids.i want to delete the sid based on the mid.for that i need sql query plz help to me. ... View Questions/Answers

sql query  May 2, 2011 at 5:40 PM
hi friend, Im doing a project,in that a main id called mid,that main id carries some sub ids which is sid one mid carries so many numbers of sids.i want to delete the sid based on the mid.for that i need sql query plz help to me. ... View Questions/Answers

sql query  May 2, 2011 at 5:40 PM
hi friend, Im doing a project,in that a main id called mid,that main id carries some sub ids which is sid one mid carries so many numbers of sids.i want to delete the sid based on the mid.for that i need sql query plz help to me. ... View Questions/Answers

EAR  May 2, 2011 at 4:25 PM
I have been created one EAR project with 16 EJB module in Netbeans 6.9.1 using JBoss 4.2.2 GA. Now How to create that same project using Eclipse Galileo? ... View Questions/Answers

fetch record from oracle database using jsp-servlet?  May 2, 2011 at 2:53 PM
how can i fetch data from oracle database by using jsp-servlet. i'm using eclipse, tomcat server and oracle database and creating jsp pages and also using servlet. ... View Questions/Answers

how to print the content of file in 2d matrix having same dimension as given in file(n*m).  May 2, 2011 at 1:21 PM
here is code: import java.io.File; import java.io.IOException; import java.util.ArrayList; import java.util.List; import java.util.Scanner; public class mat1 { public static void main(String[] args) throws IOException { Scanner s = new Scanner(new File("rfg.txt")); List... View Questions/Answers

print  May 2, 2011 at 9:33 AM
How to print JFrame All Componant? ... View Questions/Answers

EJB Project  May 2, 2011 at 9:22 AM
How to create Enterprise Application project with EJB module in Eclipse Galileo? ... View Questions/Answers

image upload  May 2, 2011 at 12:39 AM
How to access image file from database using jsp? ... View Questions/Answers

Databases  May 1, 2011 at 8:18 PM
how to add data dynamically into the database table?? i used back end is mysql.... ... View Questions/Answers

c program  May 1, 2011 at 7:45 PM
How to convert binary digits to decimal number without using power function? ... View Questions/Answers

user define exception programs  May 1, 2011 at 4:17 PM
user define exception programs ... View Questions/Answers

QUE 50 ...please show output also...  May 1, 2011 at 4:01 PM
Q1. Write a program to find maximum and minimum of 3 integers using nested if-else. Read numbers as a command line argument. Q2. Write a program that prints the prime no between 0 and 100. Q3. Write a program to determine grade for given marks Marks ... View Questions/Answers

Threads  May 1, 2011 at 3:49 PM
public class P3 extends Thread{ void waitForSignal() throws InterruptedException { Object obj = new Object(); synchronized (Thread.currentThread()) { obj.wait(); obj.notify(); } } public stati... View Questions/Answers

JAVA,JSP,SERVELTS  May 1, 2011 at 12:33 PM
plz Send me Login Page by using core java ,Jsp,Servelts......... ... View Questions/Answers

jsp problem  April 30, 2011 at 10:37 PM
Hello Friends, I want to show one page for 5 seconds and after that i want to redirect the page to another URL. ... View Questions/Answers

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

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

DMCA.com