Home Answers Questions Question and Answers


 
 

Latest Programming Questions askedAsk your question?

spring  September 21, 2010 at 11:16 AM
sample code for formvalidation by using spring with javascript as presentationex textboxes like dept id dept name Submit buttonif i give id as string then ,i want validation like, number require ... View Questions/Answers

jsp-Hibernate Error  September 21, 2010 at 10:45 AM
hi, my problem is, I designed an Interface where i am tring to listing the all rows of a table using Iterator and putted a link for deleting each row. I am deleteing row using row id of that record.it delete from my database,but not from interface. when i restart the tomcat then only deleted row goe... View Questions/Answers

jsp-Hibernate Error  September 21, 2010 at 10:41 AM
hi, my problem is, I designed an Interface where i am tring to listing the all rows of a table using Iterator and putted a link for deleting each row. I am deleteing row using row id of that record.it delete from my database,but not from interface. ... View Questions/Answers

Ads

java servlet  September 20, 2010 at 11:48 PM
i use tomcat server and eclipse as ide for j2ee environment when i tries the example for sevlet context in roseindia to make entry in server log file ( context.log method to log entry) but could not see the log file kindly tell me where i look for the entry and how create external log file ... View Questions/Answers

java threads  September 20, 2010 at 8:27 PM
How can you change the proirity of number of a thread. ... View Questions/Answers

java threads  September 20, 2010 at 8:23 PM
what is difference between the Notify and NotifyAll? ... View Questions/Answers

marie compilation  September 20, 2010 at 8:22 PM
write a program using assembly language that execute(performs) the following algorithm while(n>1){ if (n is even) n=n/2 else n=3*n+1 } ... View Questions/Answers

java JDialogbox  September 20, 2010 at 8:17 PM
Hi how to create JDialogbox with one combobox and one text field..we select one item in combobox then enter the relevent search(text)in textField then click ok button go search else click cancel button to cancel the search ... View Questions/Answers

how to automatically invoke the java program whenever ofbiz starts?...  September 20, 2010 at 6:27 PM
hi to all, i am using apache ofbiz for our server application. now i want to automatically execute a java program whenever ofbiz startup.Please give me guide to do this...[email protected] ... View Questions/Answers

design patterns  September 20, 2010 at 6:01 PM
what are the design patterns used in java? ... View Questions/Answers

scrolling problem  September 20, 2010 at 3:54 PM
I have eco framework application in that i created one grid on contentpane and add image on grid . i also add window pane on contentpane also.while scrolling only image is moving but window is not moving .can anybody tell me how can solve this problem...... View Questions/Answers

java conrolling statements  September 19, 2010 at 7:06 PM
write a Java program to accept 10 integers and print the sum of numbers divisible by 5 ... View Questions/Answers

c programming  September 19, 2010 at 7:17 AM
Hello Sir,can you plz post an answer to these quesions :Write a program in c that prompts the user the name of a file and then counts and displays the number of bytes in a file. And create a duplicate fle with the word '.backup' appended to the filename. Please check whether the fi... View Questions/Answers

java server  September 18, 2010 at 8:36 PM
Develop multi-threaded echo server and a corresponding GUI client in java ... View Questions/Answers

Java Codes  September 18, 2010 at 8:08 PM
Please, can someone solve this? A prompt asks the executive secretary to input the time for the first interview, and then a loop continues to prompt for input of subsequent interview, and then a loop continues to prompt for input of subsequent interview times. Input terminates when the s... View Questions/Answers

servlets+jdbc+oracle  September 18, 2010 at 6:27 PM
can you please help me to create a dynamic website.can you send me source code for creating a dynamic website for an engneering college ... View Questions/Answers

atm java program  September 18, 2010 at 4:49 PM
i need an atm system program java code that requires a user to enter his pin.then after entering the pin,it will ask again the user to select from 3 choices such as [1]Inquiry [2]Withdraw [3]Deposit.then if he select [1] it will display his name and the current money he has,if he then select [2] he ... View Questions/Answers

java  September 18, 2010 at 2:43 PM
hi therei am new in java plz tell me how make a simple programe in J2eethisyear my project in jspthen please help me out............where input class nad package and library i dont know plzzzzzzzzzzShubhra Shrivastava ... View Questions/Answers

JSF code Error  September 18, 2010 at 11:14 AM
Hii Friends, When Iam working on JSF..,What jars are have to add in Applicaton?Thanks and Regards BySreedhar ... View Questions/Answers

JAVA  September 18, 2010 at 9:48 AM
How Do I Print the follwoing patterns in JAVA ( Blue J envoirnmant)1. * * * * * * * * * * * * * *2. * * * * * * ... View Questions/Answers

java  September 18, 2010 at 9:24 AM
tell me the sequence of execution of statements in following code with the full explanation of the code class BoolTest{ public static void main(String args[]) boolean b; b=false; System.out.println("b is"+b); b=true; System.out.pr... View Questions/Answers

JTable  September 18, 2010 at 9:12 AM
Hi Deepak, i m facing a problem with jtable. i am able to display the values from the database into the jtable. but not able to modifying multiple cell values in a row. also i want to store those modified values into the dbtable and want to generate the log of that modified entries.... View Questions/Answers

JFRAME  September 17, 2010 at 1:12 PM
i am creating menu bar(file,edit) & in file am creating menuItems(new,open)..actionevent given to open(menuitem)...now when click on open i want open filechooser what is logic sirr??jMenuItem2.addActionListener(new java.awt.event.ActionListener() { pu... View Questions/Answers

Paypal integration to my website  September 17, 2010 at 11:40 AM
Hi there, I am working on paypal.My question is....I have one webiste and in that I kept a button called Buy Now and if I click that it will redirect to paypal website,that is fine I can able do that....and after logging in to that paypal website we'll get d shopping cart I mean we can... View Questions/Answers

recursions  September 17, 2010 at 10:46 AM
Can somebody help me with these four questions. Please. i am learning recursions in Java.Question1. Trying to find the value of result when its (5) from this code.public int result(int n){ if (n==1) return 2; else return 2 * result(... View Questions/Answers

Java Compiler Error  September 17, 2010 at 9:17 AM
I get this error when i compile this Java inheritance OOP. What I'm i doing wrong.F:\Java\WorkerDemo.java:9: cannot find symbolsymbol : constructor ProductionWorker(java.lang.String)location: class ProductionWorker ProductionWorker newProd = new ProductionWorker("... View Questions/Answers

code  September 17, 2010 at 12:36 AM
i want example problem for menubar in swings ... View Questions/Answers

java program example  September 16, 2010 at 10:35 PM
can we create java program without static and main?can u plzz explain with an example ... View Questions/Answers

java  September 16, 2010 at 6:42 PM
how to create the simple text editor using javapls send coding to mail id.......... ... View Questions/Answers

j2me mobile list  September 16, 2010 at 2:46 PM
on which mobiles the j2me applications are compatible to run? ... View Questions/Answers

letter count problem  September 16, 2010 at 2:07 PM
i have a problem in my java coding to count two characters of a string.eg to count the letter "ou" in the string "How do you feel today?". The answer should be 5. but i still have error compiling it here is my coding:public int countCharset(Str... View Questions/Answers

JSP  September 16, 2010 at 1:57 PM
am working with JSPI have one list box which is populated from the database. On selecting the value from the list box I want to populate the text box with the corresponding values of the previously selected value. For example If I select the name from the list box I want the... View Questions/Answers

Java Program  September 16, 2010 at 1:12 PM
A java program that display data in textfields and having buttons for move next, move previous,move last,move first using JFrame ... View Questions/Answers

Java Program  September 16, 2010 at 12:18 PM
A java program that display in in a table in JTable ... View Questions/Answers

java exception handling  September 15, 2010 at 9:38 PM
hi while i am compailing the program given below i am getting an error please help me as soon as possibleimport java.io.*;class insufbal extends Exception{public insufbal(String str){super(str);}}public class bank{private ... View Questions/Answers

Java Program  September 15, 2010 at 7:45 PM
A Java Program that display image on ImageIcon after selecting an image from the JFileChooser ... View Questions/Answers

Java Program  September 15, 2010 at 7:38 PM
A java Program that display data from a Table in MSAccess in JTable using JFrame ... View Questions/Answers

Error  September 15, 2010 at 4:18 PM
1. login.java/* * login.java * * Created on September 14, 2010, 11:47 AM */import java.io.*;import java.net.*;import java.sql.Connection;import java.sql.DriverManager;import java.sql.ResultSet;import java.sql.Stateme... View Questions/Answers

ajax  September 15, 2010 at 12:12 PM
i would like to include ajax method.how can i write the code in javascript for ajax? ... View Questions/Answers

spring question  September 15, 2010 at 12:42 AM
what is quartz API in spring? ... View Questions/Answers

project security tool  September 15, 2010 at 12:39 AM
what are the security tools are available for online money transactions(through credit/debit cards)in the project?mean my project is insurance project,payments are through on line for this process we need any security tool ... View Questions/Answers

Code problem  September 14, 2010 at 10:44 PM
Hi.I want to create a drop down button,where the value will be hard coded and on selecting an option another drop down button will be activated whose values will depend on the value of the first drop down button and these values will come from the database.Can anyone help me with the cod... View Questions/Answers

How ot get a web page title and meta tags in java(jsp/ servlet)  September 14, 2010 at 6:14 PM
Hi i want to get a web page title and meta tags using servlet of java but i am unable to do that and my target will be to read only the title and meta tags with img not the complete web page ... View Questions/Answers

java  September 14, 2010 at 2:19 PM
what is graphics? ... View Questions/Answers

php error  September 14, 2010 at 1:02 PM
how can an error showing undefined index be resolved? ... View Questions/Answers

java program...need help as soon as possible!!!  September 14, 2010 at 12:09 PM
Modify the Lexer (15 points):1. Use a command line argument for the input file for processing tokens ? do not use simple.x2. Recognize the new tokens > void floatBe sure to change token file appropriately and then run TokenSetup as required3. Include line numb... View Questions/Answers

java program.. the question is scary ...please help  September 14, 2010 at 12:08 PM
Modify the Lexer (15 points):1. Use a command line argument for the input file for processing tokens ? do not use simple.x2. Recognize the new tokens > void floatBe sure to change token file appropriately and then run TokenSetup as required3. Include line numb... View Questions/Answers

lucky no programme  September 14, 2010 at 11:24 AM
Sir , with due respect , iam a beginner level programmer i need some hint in making lucky no programmme . So please send me lucky no programmme on my mail id:- [email protected] ... View Questions/Answers

Java  September 14, 2010 at 11:15 AM
(1) What is the exact difference between insance and object in java.(2) Somebody tells Runnable and Comparable also "Markar Interfaces" why ?. It's also having one method.(3) How exact work Servlets "Single instance Multible threads" concept. (if pos... View Questions/Answers

About J2me  September 14, 2010 at 10:50 AM
hello, i want to know that what is j2me and what's the use of the j2me in mobile application. ... View Questions/Answers

java multithread  September 13, 2010 at 7:50 PM
sir i am send it again sir.please reply me sir.Develop multi-threaded echo server and a corresponding GUI client in java. ... View Questions/Answers

programming problem  September 13, 2010 at 2:13 PM
i am using FileDialog to select an image and displaying it on a canvas using getDirectory() and getFile().now i want to use the path obtained from getDirectory() and getFile()to obtain same selected image in my second program. i can not write this second programe in first one as its is very lo... View Questions/Answers

Using a variable filename  September 12, 2010 at 8:12 PM
Dear sir, my program a JFrame containes of 3 JTextFields and 2 different JButtons intend to sends data to 2 Input files. The program should work like that: when I enter a data to the JTextFields and click button1, the data should write to data1.txt file. and when enter other data and click button2, ... View Questions/Answers

java program  September 12, 2010 at 6:01 PM
1.java program to Develop a multi-threaded GUI application of your choice. 2.program to Develop a template for linked-list class along with its methods in Java. ... View Questions/Answers

java EJB  September 12, 2010 at 2:41 PM
Please,Tell me the directory structure of EJB applicationsand how to deploy ejb on glassfish server ... View Questions/Answers

java  September 12, 2010 at 12:42 PM
how can we create private constructor? what is its significance? ... View Questions/Answers

Java Compilation error  September 11, 2010 at 10:20 PM
import java.io.*;import java.util.*;import javax.swing.*;public class saveAccount{private String accNo;private int ind ;private String name;private String nm[] = new String [10];private String acc[] = new String[10];public... View Questions/Answers

Java Compilation error  September 11, 2010 at 10:10 PM
import java.io.*;import java.util.*;import javax.swing.*;public class saveAccount { private String accNo; private int ind ; private String name; private String nm[] = new String [10]; private String acc[] = new String[10];... View Questions/Answers

listening http port 8080  September 11, 2010 at 4:09 PM
Hi SirI just need java code through which i can listen the http port 8080 ... i want to interpret the http request before it reaches the server and i also want to know how to send it back to the server after interpretation is over ... View Questions/Answers

Re: NEEDS CONSULTANCY  September 11, 2010 at 12:32 PM
how to check a string is palindrome or not without using any inbuilt method? ... View Questions/Answers

i have problem in that program sir  September 11, 2010 at 6:57 AM
1.Develop multi-threaded echo server and a corresponding GUI client in Java ... View Questions/Answers

java  September 11, 2010 at 6:48 AM
i need to set the popup calender button in table column&also set the date in the same table column using core java-swing. ... View Questions/Answers

i have problem in that program to my assignment sir  September 11, 2010 at 6:32 AM
Develop a programmer's editor in Java that supports syntax-highlighting, compilation support, debugging support, etc. ... View Questions/Answers

java & servlet  September 10, 2010 at 6:39 PM
Sir I Took a project called SoftDocs inspired by GoogleDocs for my final year project.Though my teacher was in no mood to allocate this one,but i convinced him.Now I am facing a lot of problem.Can u tell me how to open any document file in Browser.Intially I thought that there will be some Buid API... View Questions/Answers

JTextBox  September 10, 2010 at 4:30 PM
i hava 3 textboxes.1. Income2.Expense3.Balance=fix 500 in first.If i enter income amount then the balance amount increment automatically.(ie)i am enter 200 in first textbox then the balance textbox value change to 700.If i enter expense amount 300 then... View Questions/Answers

java  September 10, 2010 at 2:14 PM
i need to encrypt the password and store it in databaseand while retreiving it it should b decrypt form ... View Questions/Answers

String  September 10, 2010 at 12:44 PM
i have a String s1="abc"; String s2="123";then how to get a String s3="a1b2c3"; ... View Questions/Answers

Applet  September 10, 2010 at 11:48 AM
sir, I have just started applet. Now i am going to design my resume using java. Now, if I want to attach my photo, which code will suitable for that??please help. ... View Questions/Answers

recursionarray  September 10, 2010 at 6:10 AM
I need to initialize a 1-D array with the values: 2,4,6,8,10,12,18,20 using recursion to test all values from 0 to 20 and see if they are contained in the array. I will have to print the results out for all the numbers 0-20Thanks Please ... View Questions/Answers

recursion numbers  September 9, 2010 at 7:06 PM
I need to use recursion to test all values from 0 to 20 and see if they are contain in a 1-D array with values: 2,4,6,8,10,12,14,16,18,20. The results of all numbers from 0-20 will be printed. ... View Questions/Answers

error in java progran at run time  September 9, 2010 at 6:14 PM
Hello sir,,, i make a servlet program in java,,but i face some problem,,so please me.. Actually this type of error are come in my all servlet programMy Servlet-- Error- package P1; import javax.Servlet.*; import java.io... View Questions/Answers

error in java progran at run time  September 9, 2010 at 6:10 PM
Hello sir,,, i make a servlet program in java,,but i face some problem,,so please me.. Actually this type of error are come in my all servlet programMy Servlet-- Error- package P1; import javax.Servlet.*; import java.io... View Questions/Answers

JComboBox Display Problem  September 9, 2010 at 10:59 AM
I am create one program that contain two combo boxes. If first combo box i am display all date. If i select one date from first combo box then the second combo box display some dates based on first combo box select date. Here is my full programimport java.awt.*;import java.awt.even... View Questions/Answers

how to check particular value is avilable in hashmap  September 9, 2010 at 10:20 AM
Hi friends,i created a hashmap,in that hashmap key is tagginglist and value is tagsname,these tags is in the form arraylist.then how i will check particular tags is available in the hashmap or not.my code is like this:Hashmap msgMap=new HashMap();String headLine=msg.getSubjec... View Questions/Answers

i have problem in that program  September 9, 2010 at 6:01 AM
1. Write a multi-threaded Java program to print all numbers below 100,000 that are both prime and fibonacci number (some examples are 2, 3, 5, 13, etc.). Design a thread that generates prime numbers below 100,000 and writes them into a pipe. Design another thread that generates fibonacci numbers ... View Questions/Answers

hibernate code  September 8, 2010 at 9:04 PM
sir, i have tried ur hibernate 3.0 firt example code, i have done as u have told in the tutorial like import all the related jar files,made asimple java project and copied the two xml files into src/bin,but when i run this it shows error i.e Exception in thre... View Questions/Answers

core java  September 8, 2010 at 5:53 PM
sir why did u declare or intilize the variables in static main method().. But non-static members are does't decalred in the static function?? we only declare the static members in static function only........... plz give clear explanation sir...... ... View Questions/Answers

SplitButton of dropdownbutton invisible when mouse clicking  September 8, 2010 at 4:49 PM
click the SplitButton of dropdownbutton, when dropdownmenu willbe displayed. but this is not disabled when mouevent performed on the jpanelhow to disabled or hide the dropdownmenu when we click the dropdown button? //the code is belowimport java.awt.*;import java.awt.ev... View Questions/Answers

jsp code  September 8, 2010 at 2:47 PM
in my table there are 3 fields named orderid ,itemname, itemqty. i want code that fetch orderid in dropdown... on select dropdown get table of item details of that orderid... there are multiple items at one orderid... ... View Questions/Answers

Connection to jdbc  September 8, 2010 at 12:14 PM
I need to populate a listbox in jsp with values from Postgresql JDBC.i used the following code... but its not working... can u suggest me with the correct solution.my.jsp<%@ page import="java.sql.*" %><%@ page language="java" %>... View Questions/Answers

difference between the obj and reference  September 8, 2010 at 8:17 AM
what is the difference between object and reference ?is there any difference ? ... View Questions/Answers

how to truncate  September 7, 2010 at 3:29 PM
Dear sir , How to truncate the result of 0.5% 0.1 =0.09999999999999992 to 0.099 ,please help me.Thanks... ... View Questions/Answers

To find the reminder for a double  September 7, 2010 at 1:08 PM
Dear sir , How to find the reminder for a 0.5%0.1.When i do this it is giving 0.09999999999999998 .it is giving correct zero reminder for even numbers for odd numbers it is giving this result ,so i want a zero reminder if it is a multiple of 0.1,please help me...Thanks... ... View Questions/Answers

jsp function  September 7, 2010 at 11:25 AM
how to make function in jsp... i want example of jsp method or function in which on button click function get data fron database and print that data.. don't want javascripts.. ... View Questions/Answers

java  September 7, 2010 at 3:38 AM
i have button browse button in my applet form.when i click on browse button i have to go to file storage box(what ever files stored in my computer )i have to select the file path from that box(like attaching files in the mail).i have display that file path in my applet form.am learner please send m... View Questions/Answers

Java Memory Leak  September 7, 2010 at 1:53 AM
I am having a memory leak in my java version of the game Snake. I have narrowed the exact step of when the program memory is increased to two possible points. The last step before the my game timer runs, (this.pack()), or the first execution of the game/pregame menu timer's loops run. The actually o... View Questions/Answers

Uploading a .3gp file.  September 6, 2010 at 9:19 PM
sir, i m sending it again .i want code for java based mobile application, that can take .3GP video file and upload it to youtubeusing youtube's APIs. The video file would be located on a weblink (a direct http link to a video file).i hope u understand what i have asked. i am asking th... View Questions/Answers

HELP! Design Review & Risk Management topics (in Java projects) required  September 6, 2010 at 3:32 PM
Hi,I have to take 2 one hour sessions on the following topics:* Project Design Review* Project Risk ManagementCan you please recommend any topics/examples/case studies for the same? Any help will be much appreciated. ... View Questions/Answers

arraylist problem  September 6, 2010 at 1:22 PM
Hello....I wrote the following code for adding a string array into an array list along with other strings...and to display the string array...But there's a problem with this...import java.util.*;class TestArray{ public static void main(String arg... View Questions/Answers

arraylist  September 6, 2010 at 12:41 PM
Hi..I've an arraylist where i need to add a string array along with other string values.My string array is array[]and arraylist is ali added other string values name,time,date asal.add(name);al.add(time);al.add(date);and the string array as,... View Questions/Answers

java  September 6, 2010 at 12:01 PM
how to update database record in jsp.what is the syntax? ... View Questions/Answers

image in jsp  September 6, 2010 at 10:59 AM
i m storing path of image in my database.. but when i m trying to display image using that path image is not getting... i m storing path like c:\image\a.jpg ... and i m using <img /> tag... how to get it??? ... View Questions/Answers

Java  September 6, 2010 at 10:55 AM
How to implement Thread ... View Questions/Answers

Re:number of Files download problem in jsp  September 6, 2010 at 9:32 AM
I write code for single file downloading , but I want to download number of files at same time , means I want stored number of files in one temp zip file then it download it. please help in this case ...code :<%@ page import="java.io.FileInputStream" %><%@... View Questions/Answers

java  September 5, 2010 at 5:01 PM
why main() execution starts defaultly by jvm? ... View Questions/Answers

java  September 5, 2010 at 4:54 PM
why JVM executes only main method by defaultly?why not executes the user defined static method? that means,show below program class sample { public static void main(String[] args) { System.out.pri... View Questions/Answers

need to solve the below question  September 5, 2010 at 1:48 PM
I need to write an application that uses the circle class.it must read a radius of a circle from the user .create a circle object and return the object ... View Questions/Answers

java method return type :  September 5, 2010 at 11:08 AM
i have one question regarding methods,,, if we create a method with return type as class name (public employee addemp(int,int))what should be its return type.....and if any know this pls explain with more example...... ... View Questions/Answers

java  September 5, 2010 at 10:22 AM
there are four text boxes like, id, name,sal,age. if i select any one of the textbox ,remaing textbox values has to come automatically,these values stored in database.database id name age sal 1 a 10 200 2 b 20 300jsp... View Questions/Answers

java reflection  September 4, 2010 at 7:16 PM
how to save and run reflection class in java?please immediately reply sir ... View Questions/Answers

DMCA.com