Home Answers Questions Question and Answers


 
 

Latest Programming Questions askedAsk your question?

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

Advertisement

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

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

DMCA.com