Home Answers Questions Question and Answers


 
 

Latest Programming Questions askedAsk your question?

how to read and write xml files in javascript  May 6, 2011 at 10:06 AM
hi m very new to javascript and xml,, now i want to read and write xml files in javascript,, please give me a sample code to do this ... View Questions/Answers

How to call print dialog box through JMenuItem?  May 6, 2011 at 10:05 AM
What is the way to call the print dialog box through JMenuItem to print the current page like we can do in javascript by calling window.print() function? ... View Questions/Answers

help in java  May 6, 2011 at 9:29 AM
Create 3 shopping carts from a Cart class. Each class should have four items in it, a title, a price for the 4 items and the number of each. Your shopping cart should use private variables, so use getter and setter methods to access the items (variables) in your Cart Object. After you have creat... View Questions/Answers

Ads

About Jsp  May 5, 2011 at 11:21 PM
Hello sir, I am developing online Quiz project in jsp using MySql Database. I want to know that How I will show Questions from database One by One on Same page and also want to calculate Result for the User. ... View Questions/Answers

Calculator class  May 5, 2011 at 10:34 PM
I am a beginner in Eclipse. I have to do a program called calculator that adds numbers. This is my code so far: //Margaret //ICS 4U /* * Created on Apr 29, 2011 * * TODO To change the template for this generated file go to * Window - Preferences - Java - Code Style - Code Templates *... View Questions/Answers

j2ee  May 5, 2011 at 10:14 PM
hi i'm beginner 2 j2ee.. my question is... (jdbc connecton): when user enters his fname,lname,address,city from ui(html) it gets inserted into db...my problem is when user submit without entering i,e blank it also get inserted into db even though i have given not null for e... View Questions/Answers

j2ee  May 5, 2011 at 10:08 PM
hi i'm beginner 2 j2ee.. my question is... when user enters his fname,lname,address,city from ui(html) it gets inserted into db...my problem is when user submit without entering i,e blank it also get inserted into db even though i have given not null for each elements in table.... ... View Questions/Answers

j2ee  May 5, 2011 at 10:08 PM
hi i'm beginner 2 j2ee.. my question is... when user enters his fname,lname,address,city from ui(html) it gets inserted into db...my problem is when user submit without entering i,e blank it also get inserted into db even though i have given not null for each elements in table.... ... View Questions/Answers

K-means clustering on WebLog Data, for 2-Dimenshional input  May 5, 2011 at 9:58 PM
The following is a JSP code for K-MEANS CLUSTERING .... My proect , titled "Pattern Analysis of Web Usage for System Improvement", involves the web log info from a database and then considering the attributes IP address and WEBPAGES,IN THE FORM OF NUMBERS(X,Y) for K-MEANS CLUSTERING... the output... View Questions/Answers

FileNotFoundException  May 5, 2011 at 6:32 PM
<%@page import="com.kit.db.*, com.kit.db.kb.*, com.kit.log.*, java.util.*, com.kit.db.mysqldb.*, com.kit.db.util.*, com.kit.db.seats.*, java.sql.*, ... View Questions/Answers

how to focus dojo slider to a particular value and then disabling dojo slider so that value not changes on clicking?  May 5, 2011 at 6:30 PM
How to focus dojo slider to a particular value (say 2.5 )on the slider and then disabling dojo slider so that value not changes on clicking on the dojo slider?ie i want to focus dojo slider to a particular value and then make it disable. <!DOCTYPE HTML PUBLIC "-... View Questions/Answers

TOMCAT  May 5, 2011 at 6:22 PM
why we got the error like HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception javax.servlet.ServletException: Error instantiating servlet class InsertServ... View Questions/Answers

JAVA DATABASE CONNECTION WITH JTABLE  May 5, 2011 at 5:33 PM
HOw To Load Database Contents From Access Database to JTable without using Vector. ... View Questions/Answers

javamail  May 5, 2011 at 4:31 PM
i need java mail code,i had use some code,that give me ssl error in java,plz help me,i need urgent basises. ... View Questions/Answers

need to update key , value pair in map from properties file  May 5, 2011 at 4:24 PM
I have a map with key , value pair. with key as integer and value as string datatype. I want the keys and values to be dynamically updated into map. that is i have .properties file where i will update the keys and values whenever needed. i want those values to be updated in map. can anyone ple... View Questions/Answers

url parameters displayed in short sentence  May 5, 2011 at 2:23 PM
In my url parmeter like below http://127.0.0.1:7778/project/preview.jsp.codesvr=127.0.0.1:9997&id="1" It will displayed the value of id=1 ... I want to change this url to bookmarked url like http://127.0.0.1:7778/project/preview/1 .... this url also retrive the value ... View Questions/Answers

Help needed on java standalone app and default browser interaction.  May 5, 2011 at 1:43 PM
Hi Developers and tutors, Is anyone able to guide on how am i able to extract the url thats displaying on my default browser to my java standalone application? Platform Windows Browser IE7 Any from of help would be deeply apperciated ... View Questions/Answers

i want to create website,with manu with three level submenu on top side of page please send me code java  May 5, 2011 at 1:35 PM
iam createing wibsite thats using eclipse andtomcat server,please help me to write menu with three level submenu ... View Questions/Answers

Moving The Images  May 5, 2011 at 12:44 PM
How to moving multiple images in one frame using swings? ... View Questions/Answers

TOMCAT  May 5, 2011 at 12:15 PM
When i am deploy the servlet class file in tomcat server i get the following errors pe Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception javax.servlet.ServletException: Error i... View Questions/Answers

JAVA  May 5, 2011 at 11:01 AM
i got the following error when i am run the pprogram Exception in thread "main" java.lang.NoSuchMethodError: main i am setting the jar file in the classpath also C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\website_app\WEB-I NF\classes>set CLASSPATH=C:\program Files\Apache Softw... View Questions/Answers

swing  May 5, 2011 at 4:32 AM
How to fetch data from a row of a JTable and save the data in a database table dynamically? How to fetch data from database table and set the values in a Jtbale rows dynamically? How to set the no. of rows of a JTable dynamically? Please give me solutions? Thanks in advance... ... View Questions/Answers

online exam portal  May 4, 2011 at 8:16 PM
i am thinking of developing a small online exam pattern with multipe choice questions , can u please give me any idea of how to start ... View Questions/Answers

how to re size image proportionately using java for different images like jpeg, png, gif.  May 4, 2011 at 6:55 PM
hi, i need sample code for re size image proportionately using java for different images like jpeg, png, gif, this code for my application plz help. Thanks Hari! ... View Questions/Answers

FileReader  May 4, 2011 at 5:42 PM
How to read a file in java? My file like this Name,Age, sex i read the file and i want to insert the data in the Name obj and age obj and sex obj how? ... View Questions/Answers

String  May 4, 2011 at 5:38 PM
How to Convert sunnapu gopal to Sunnapu Gopal in java using String? ... View Questions/Answers

Servlet  May 4, 2011 at 5:20 PM
when i add the following xml code to the web.xml it throws the same error <web-app> <servlet> <servlet-name>InsertServlet</servlet-name> <servlet-class>InsertServlet</servlet-class> </servlet> <servlet-mapping... View Questions/Answers

how to find subarray from given large 2d array of arbritary dimension  May 4, 2011 at 5:19 PM
my code is: import java.lang.*; import java.io.*; import java.io.File; import java.io.IOException; import java.util.ArrayList; import java.util.List; import java.util.Scanner; public class SubMatrix { public static void main(String[] args) throws IOException { ... View Questions/Answers

Tomcat  May 4, 2011 at 3:36 PM
when i am compiling my program i got .class file.but when i am try to run it it shows the error like Exception in thread "main" java.lang.NoClassDefFoundError: InsertServlet how can we resolve this. and what can we type in the url path of the tomcat to see the output ... View Questions/Answers

Reversing dojo slider to make it slide from right to left rather left to right as given  May 4, 2011 at 3:02 PM
I am using Dojo slider in my project But i want to reverse the slider chosen value so that it slides from right to left ie the blueish part on slider must start from right side of the slider so that slider slides from right to left(not from left to right as in given example) how can i reverse thi... View Questions/Answers

JAVA  May 4, 2011 at 11:30 AM
when i am compiling the program first time it was successfully compiling.but from the second time i got the errors like 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.*... View Questions/Answers

Can anyone assist with the coding of this game?  May 4, 2011 at 9:04 AM
I am in need of the coding for this game. I need to write a "Hangman" game that will randomly generate a word from a text file and will prompt the user to guess one letter at a time. Each letter in the word needs to be displayed with an asterisk. When the user makes a correct guess of a letter, t... View Questions/Answers

I need Oracle connector jar file. where will i download?  May 4, 2011 at 8:49 AM
I need Oracle connector jar file. where will i download? ... View Questions/Answers

java class  May 3, 2011 at 8:39 PM
write a java program to display a msg "window closing" when the user attempts to close the window.(a) create a window class (b) create frame within the window class (c) extends window adapter class to display the msg "window closing". ... View Questions/Answers

java app  May 3, 2011 at 8:31 PM
create an applet to display the Fibonacci numbers ... View Questions/Answers

Core Java-ArrayList  May 3, 2011 at 8:00 PM
How do i find duplicates in ArrayList. First i add some elements to ArrayList, then how do i find the duplicates and show the duplicate elements. Give an example ... View Questions/Answers

JAVA  May 3, 2011 at 6:22 PM
plz send me code, How to find fare form one place to another place using Java,Jsp,Servlets? for example:i need to calculate from bangalore to gulbarga..i need to claculate the bus fare,distance in kms.. ... View Questions/Answers

how to create unit matrix in java of arbritary dimensions  May 3, 2011 at 5:35 PM
i want to create the unit matrix of arbritary dimensions say (n*m).i m a new beginner to java.someone having the program for that? help would be appreciable. ... View Questions/Answers

hasim  May 3, 2011 at 4:29 PM
how to define session only a one page time limit 5 sec. in jsp page ... View Questions/Answers

Question  May 3, 2011 at 4:27 PM
1- what is Servlet work flow 2- how to identify the Jsp Size(by default) ... View Questions/Answers

SERVLETS  May 3, 2011 at 3:34 PM
I follow the same procedure what you send by the links.but i got the same errors coding is: import java.io.*; import java.sql.*; import javax.servlet.*; import javax.servlet.http.*; public class InsertServlet extends HttpServlet{ public void doPost(... View Questions/Answers

EAR  May 3, 2011 at 2:15 PM
Where to cteate JSP page in EAR project in Eclipse ... View Questions/Answers

EAR  May 3, 2011 at 2:15 PM
Where to cteate JSP page in EAR project in Eclipse ... View Questions/Answers

Servlets  May 3, 2011 at 1:46 PM
Java Servlet technology... View Questions/Answers

Servlets  May 3, 2011 at 1:36 PM
No its not working again it gives the following errors code is : import java.io.*; import java.sql.*; import javax.servlet.*; import javax.servlet.http.*; public class InsertServlet extends HttpServlet{ public void doPost(HttpServletRequest req,Http... View Questions/Answers

Servlets  May 3, 2011 at 1:23 PM
the code is as follow import java.io.*; import java.sql.*; import javax.servlet.*; import javax.servlet.http.*; public class InsertServlet extends HttpServlet{ public void doPost(HttpServletRequest req,HttpServletResponse res) throws ServletExceptio... View Questions/Answers

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

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

DMCA.com