Home Answers Questions Question and Answers


 
 

Latest Programming Questions askedAsk your question?

php create pages automatically  October 4, 2012 at 11:35 AM
How to create pages automatically in PHP? ... View Questions/Answers

new operator for creating the object of inner class  October 4, 2012 at 10:37 AM
Hi , The folliowing is my code : class Outer { class Inner{ void show() { System.out.println("Hello "); } } } class Test { public statis void main(String args[]) ... View Questions/Answers

cannot do the additional operator  October 4, 2012 at 8:28 AM
i got problem with additional and multiplication operator...please anyone help me <html> <head> <title>Simple Calculator</title> <script language = "JavaScript"> // calculate function function calculate () { //get input ... View Questions/Answers

Advertisement

Writing and Reading A File  October 4, 2012 at 6:57 AM
Hello, I've been trying to learn writing and reading data from file for our assignment, but just stuck on how to proceed. Our assignment requires us to make an application to read and write customer contact information the user enters. Our assignment requires us to make GUI apps. I decided to mak... View Questions/Answers

c program  October 3, 2012 at 11:12 PM
plz send me program for this. write a program to print the following code? 1 2 3 4 5 6 7 8 9 10 1 2 3 4 5 6 7 8 9 10 11 2 3 4 5 6 7 8 9 10 11 12 3 4 5 6 7 8 9 10 11 12 13 4 ... View Questions/Answers

c program  October 3, 2012 at 11:08 PM
plz send me program for this. write a program to print the following code? (in c language) 1 2 3 4 5 6 7 8 9 10 1 2 3 4 5 6 7 8 9 10 11 2 3 4 5 6 7 8 9 10 11 12 3 4 5 6 7 8 9 10 ... View Questions/Answers

form validate and perfom action immediatly  October 3, 2012 at 8:51 PM
This is ok, but what i'm looking for is whenever a user input different data his input has to validate and immediately he needs to redirect to a particular webpage based on the input provided. for ex: suppose if he enters input like "delhi" for Place and "18" f... View Questions/Answers

Works only for one row  October 3, 2012 at 8:01 PM
Hi, My below code is working only if there is a single row. could you please help me in doing it for all the rows retrieved from the database. <%@page import="java.util.concurrent.CountDownLatch"%> <%@include file="DBCon.jsp" %> <html>... View Questions/Answers

Export Extjs Gridview data to excel in jsp  October 3, 2012 at 6:07 PM
i need to export the extjs girdview data to excel can you please help me thanks in advance ... View Questions/Answers

Core Java  October 3, 2012 at 5:24 PM
Hi, can any one please tell me the uses of return type,"Super" and "this" calling statement in Java?? why do we required this,super calling statement?? why return type is required?? ... View Questions/Answers

Java I/O problem  October 3, 2012 at 5:11 PM
Write a Java application that prompts the user to input their Name, Address, Date of Birth and Student ID number using the standard input - this information should then be saved to a file named studentData. The program should use the FileWriter class and an appropriate processing stream ... View Questions/Answers

combining 5 images and text in between to one single image in java  October 3, 2012 at 5:09 PM
Hi I have to combine 5 images and text in between to one single image. I have image followed by description about the image. I have to put them together and create and single image for download. any help would be appreciated. Thank you. ... View Questions/Answers

how to post data in mysql php form  October 3, 2012 at 4:48 PM
how to post data in mysql php form ... View Questions/Answers

how to connect to database in php using mysql  October 3, 2012 at 4:47 PM
how to connect to database in php using mysql ... View Questions/Answers

how to create a user registration form in php  October 3, 2012 at 4:45 PM
how to create a user registration form in php ... View Questions/Answers

login page in php  October 3, 2012 at 4:42 PM
How to create a login page in php? ... View Questions/Answers

jar file built by ant jar task does not have all the dependant jars and throws exception while reading the appplicationContext,xml  October 3, 2012 at 2:12 PM
I have a spring class with main method. Inside the class am trying to read the values applicationContext.xml . My intention is to jar this main class along with its dependant jars,property files and applicationContext.xml .Hence i have my target as below <target ... View Questions/Answers

jsp to access query  October 3, 2012 at 1:14 PM
How to insert the values from jsp to access ? ... View Questions/Answers

Excel File data upload into postgresql database in struts 1.x  October 3, 2012 at 11:06 AM
Dear members please explain how Excel Files data upload into postgresql database in struts 1.x ... View Questions/Answers

Updating user profile  October 3, 2012 at 10:33 AM
how should i provide user to update his profile with edit option including entered data by user should be shown in jsp page fileds ... View Questions/Answers

Insert data in mysql database through jsp using Prepared Statement ---- Please Resolve it  October 2, 2012 at 11:15 PM
I have tried the following code Database creation: create database studentdb; create table stu_info ( ID int not null auto_increment, Name varchar(20), City varchar(20), Phone varchar(15), primary key(ID) ); datainsertion.js... View Questions/Answers

Insert data in mysql database through jsp using Prepared Statement ---- Please Resolve it  October 2, 2012 at 11:15 PM
I have tried the following code Database creation: create database studentdb; create table stu_info ( ID int not null auto_increment, Name varchar(20), City varchar(20), Phone varchar(15), primary key(ID) ); datainsertion.jsp: <... View Questions/Answers

openning the pdf or doc file in same jsp  October 2, 2012 at 3:35 PM
**how to open the pdf and doc file in same jsp after clicking the link or button (which is with out moving to the next page). will some body help me on this @simple format please it will be helpfull for my future** ... View Questions/Answers

java  October 2, 2012 at 3:21 PM
can we use the word "buffer" as a variable name? ... View Questions/Answers

java  October 2, 2012 at 3:18 PM
can we use buffer as a key word in java? ... View Questions/Answers

date in textbox on page load  October 2, 2012 at 1:06 PM
i want to insret the current date in textbox but this code dosen't work and the value of text box will be blank <script type="text/javascript"> function addDate() { var mydate = new Date(); var year = mydate.ge... View Questions/Answers

image retreival  October 2, 2012 at 12:33 PM
I ve stored the path of image and audio in mysql database. how to retrive it and display... Can u pls help me out.. ... View Questions/Answers

make a prog for this query  October 2, 2012 at 12:25 PM
write a program implementing interface for personal data n salary details. interface must contain abstract methods. steps for the program are 1) store the data in text file 2)display salary when emp id matches 3)duisplay emp name whose starts with 'a' 4)display emp name in uppercase so...... View Questions/Answers

Validations  October 2, 2012 at 12:10 PM
Javascript validation is working fine in Internet Explorer browser but it is not working in Mozilla. Can you please let me know the reason. ... View Questions/Answers

Question about a flex...  October 2, 2012 at 11:33 AM
Is there good Future for Adobe flex ? ... View Questions/Answers

SEMISTER  October 1, 2012 at 9:51 PM
It has three tests, all of which count towards the final grade. You are provided with scores from all the tests from both semesters. You are required to compute summary statistics (mean and standard deviation) for each test, for both the semesters. These statistics would be used by the c... View Questions/Answers

How to embedd jre inside the converted .exe file from .jar using Launch4J  October 1, 2012 at 6:09 PM
Hello Sir, I created a .exe file from the .jar file using Launch4J tool. Now As per my need i have to execute it without installing jre .Means that jre should be embedded in the .exe file. Will you plz guide me how to achieve this goal. Thank you Sir. ... View Questions/Answers

Java servlet with jsp on sql server  October 1, 2012 at 3:43 PM
How to delete a user by an admin with check box in Java Servlet with jsp on Sql Server? ... View Questions/Answers

Getting mysql table in textbox  October 1, 2012 at 2:18 PM
how to get mysql table values into textbox in java using ajax and servlets ... View Questions/Answers

How to export grid into excel  October 1, 2012 at 1:28 PM
Hi, i created a grid panel i have to export it to the excel. please help me by some sample code. thanks in advance. cool day dude. ... View Questions/Answers

How do SEL and @selector work in iphone sdk?  October 1, 2012 at 1:10 PM
How do SEL and @selector work in iphone sdk? ... View Questions/Answers

string  October 1, 2012 at 10:05 AM
how we conunt the no. of words in java without using in pre defined method in java ... View Questions/Answers

Java2  October 1, 2012 at 5:27 AM
Write a program that replaces a, e, i, o, u, with the letter z. (i.e. John Smith -> Jzhn Smzth. Also the program reverses the users name (i.e. John Smith -> htimS nhoJ) ... View Questions/Answers

Write a program that replaces a, e, i, o, u in Java2  October 1, 2012 at 5:27 AM
Write a program that replaces a, e, i, o, u, with the letter z. (i.e. John Smith -> Jzhn Smzth. Also the program reverses the users name (i.e. John Smith -> htimS nhoJ) ... View Questions/Answers

Write a program that converts any given year to Roman Numeral in Java  October 1, 2012 at 5:03 AM
Write a program that converts any given year to Roman Numeral ... View Questions/Answers

Java converts any given year to Roman Numeral  October 1, 2012 at 5:03 AM
Write a program that converts any given year to Roman Numeral ... View Questions/Answers

log4j is not logging even under src path  September 30, 2012 at 7:54 PM
We are working with struts application and using log4j.properties file , it is placed under WEB-INF/classes and we have referenced log4j-1.2.8.jar in classpath file even after this it is not logging messages in linux servers . It is working in local setup. Please suggest any help for this issue.<... View Questions/Answers

display multiple image file or pdf file in multiple column of a row from server or database  September 30, 2012 at 6:15 PM
hello sir I have uploaded the file to the server and I want to display that file to the user page but I want to display that file in a particular format i.e I have to display more than one files in multiple columns in a single row..Suppose I have to display two files in a row then after uploading... View Questions/Answers

packages  September 30, 2012 at 5:53 PM
how to save program created by sub package method......... ... View Questions/Answers

project in java using applet and servlet...which tool i should use?eclipse or netbeans?  September 30, 2012 at 3:17 PM
i want to do a project in java using applet and servlet...which tool i should use?eclipse or netbeans? ... View Questions/Answers

mobile application  September 30, 2012 at 12:15 AM
hey i am given a project on j2me it has to be start with authentication tab den when we click it login and register item shud get blinked after registering it must save the data..to login data and it must login with the registered id password..after it der must be to menu color menu and shape men... View Questions/Answers

want a project  September 29, 2012 at 10:49 PM
i want to make project in java on railway reservation using applets and servlets and ms access as database..please provide me code and how i can compile and run it... ... View Questions/Answers

Waiting for ur quick response  September 29, 2012 at 8:51 PM
Hi, I have two different java programs like sun and moon. In both of these two programs i have used same class name like A. For example, File name:sun.java Then the code is here: Class A { public static void main(String args[]) { System.ou... View Questions/Answers

Question on Checked Exception  September 29, 2012 at 8:42 PM
why checked exception force to put try and catch block ? Please send me answer ... View Questions/Answers

connectivity problem  September 29, 2012 at 7:20 PM
i am facing error in Class.for name statement please help me correct it the error is ""java.lang.ClassNotFoundException: oracle.jdbc.OracleDriver"" i am using this with netbeans since i have gain connectivity still i am facing this error* ================================orac... View Questions/Answers

Write a program in JAVA which accepts a sentence & displays the longest word in the sentence alongn with it length of the word.  September 29, 2012 at 7:08 PM
**A program in JAVA which accepts a sentence & displays the longest word in the sentence along with it length of the word, ... View Questions/Answers

oracle connectivity problem with netbeans  September 29, 2012 at 6:29 PM
sir I am using oracle window version +net bean6.8. jam trying to connect net bean to oracle. for this after adding new driver(ojdbc6.jar) in services tab I got connectivity with oracle since I execute statement directly from net bean but now I am preparing a program of simple connectivity with or... View Questions/Answers

Query to insert values in the empty fields in the last row of a table in Mysql database?  September 29, 2012 at 5:39 PM
I have some fields filled and some fields empty in the last row of my MYSQL database. Now I want to fill up those empty fields in the last row. So what will be the query for that? ... View Questions/Answers

Zend question  September 29, 2012 at 1:16 PM
How to change action in zend framework?? suppose i want to add data in DB so my logic is that form view code in my indexAction() and insert process in addAction so how to go addAction() part in cilck on submit button???? Please ans.... thanks.... ... View Questions/Answers

how to make exampage in jsp ?  September 29, 2012 at 1:06 PM
how to make a online exam page in jsp and servelet ? ... View Questions/Answers

dojo grid from 3 different sources  September 29, 2012 at 10:07 AM
I'm new with dojo. I need to get data from 3 different database tables and diplay them on the browser (maybe a grid) and show friends (name+img) of the logged in user with the title of the recommended movie. table #1 fields: username, friend id, movie id (that the friend recommends to t... View Questions/Answers

problem in servlet program  September 28, 2012 at 11:25 PM
Dear Sir, I have a problem to insert the Blob type data like as video file, audio file in the database using Servlet and html code.... View Questions/Answers

White Space encoding problem in PDF  September 28, 2012 at 7:55 PM
I am reading PDF version 1.3 using iText. Things are fine but with one problem that is I am not able to get whitespace. Is there any problem in whitespace encoding in PDF version 1.3 ?? ... View Questions/Answers

java file handling  September 28, 2012 at 6:29 PM
enter string from keyboard and then read a file if this string is present in file then print message already exists else write this string to file? ... View Questions/Answers

make a program  September 28, 2012 at 3:48 PM
GoodEmployee is defined who has ALL the following properties: He should be married. He should have 2 or less than 2 children. His middle name should start with "k" but not end with "e" The last name should have more than 4 characters The character "a" should appear i... View Questions/Answers

Auto complete of word search using ajax with java  September 28, 2012 at 12:48 PM
I want to display the list of words when I type the first letter of the word in a text box. I am using jsp to design the form. I want ajax sample to achieve this feature. Its like google search. Please help. Thanks in advance. ... View Questions/Answers

illegal start of expression in servlet error..  September 28, 2012 at 11:22 AM
hello Sir, here is my servlet code and i am getting illegal start of expression error in declaring the method named " public Boolean ModificarUsuario(int IdUsuario, String Usuario, String Email) {" plz help me out to solve the problem .thank you Sir. public class edi... View Questions/Answers

Why the null values are stored in Database when I am sending proper values?  September 28, 2012 at 10:27 AM
I am making a project in which I am sending the image into a folder & the imagepath into the Database (MySQL) from the JSP. Along with the ImagePath I am also sending the name, Rate, Dimension to the Database through the text field. The problem is that the imagepath is being sent to the Datab... View Questions/Answers

loop to input multiple points to calculate final distance and speed  September 27, 2012 at 11:49 PM
import java.util.Scanner; public class Travel { private double time; private double distance; public Travel() { time=0; distance=0; } public void setTime(double t) { time=t; } public void setDistance(double d) { distace=d; } ... View Questions/Answers

Employee form  September 27, 2012 at 10:47 PM
In employee form emp Id id after any data iserted is incremented for oher data insertion. insert, delete, update buttons when we cleak the select buttoun then the created table data iserted automaticaly. ... View Questions/Answers

search program  September 27, 2012 at 7:56 PM
i m writing program which takes company names from databse...serch on google...n try to find the best match WEBSITE...of company name....m confused....how can i find best match..between my company name ..and all links after google search...plzz help..... ... View Questions/Answers

class MyThread2 extends Thread  September 27, 2012 at 7:18 PM
Hi Friend, Try the following code: import java.io.*; import java.util.*; class MyThread1 extends Thread { private PipedReader pr; private PipedWriter pw; MyThread1(PipedReader pr, PipedWriter pw) { this.pr = pr; this.pw = pw; } pub... View Questions/Answers

HELP Generic linked list  September 27, 2012 at 6:59 PM
How to create Generic linked list example program in Java?... View Questions/Answers

Reading xml file using dom parser in java with out using getelementby tag name  September 27, 2012 at 2:58 PM
Hi, How to read the xml file using java with dom parser, but without using getelementbytag name, and also read the attribute values also. I had found some thing in the below url : http://www.roseindia.net/answers/viewqa/Java-Beginners/8384-java-with-xml-parsing.html b... View Questions/Answers

How to show autocomplete textbox values on combo box option selection using database?  September 27, 2012 at 2:58 PM
When I select option(i.e First Year) then it will show list of student names in auto-complete text box. ... View Questions/Answers

Draw Line  September 27, 2012 at 12:51 PM
sir i want to draw a moving line in j2me.That line should also show arrow in moving direction. How can we do so. ... View Questions/Answers

Countdown timer to show a link  September 27, 2012 at 11:05 AM
Hi to everyone! I have this code, which is basically a countdown widget...what I want is that when the countdown finish, a link appears. The thing is that my musical group will be presenting an EP whitin a month and a half, and we want this countdown to be in the website. The day arrives, and the... View Questions/Answers

xml  September 27, 2012 at 10:52 AM
what is name space,xml scema give an example for each ... View Questions/Answers

web  September 27, 2012 at 10:43 AM
what do you mean by stacking elements? explain with example(in web programming) ... View Questions/Answers

web  September 27, 2012 at 10:43 AM
what do you mean by stacking elements? explain with example(in web programming) ... View Questions/Answers

spring+jdbc  September 27, 2012 at 10:42 AM
I crated a jsp page with one text box named as user id and submit button. When I submit the form all the details(Columns of database) corresponding to that particular field must be retrieved. The project must be spring. ... View Questions/Answers

retail invoice and billing source code in struts  September 27, 2012 at 10:26 AM
Hi. I need source code for "retail invoice and billing source code in struts", Please help me in doing so. Please It's important and urgent to.............................................. ... View Questions/Answers

For Loop/PHP  September 27, 2012 at 10:24 AM
Write a class called math. It is to have one property called num. It also has one method called factorial. This method is to start at 1 and multiply all of the integers to num. If num is 5 then you would multiply 12345. How would you write this as a loop? Would I need to use ... View Questions/Answers

Storing and Reading data  September 27, 2012 at 8:32 AM
Hello, I'm developing a GUI application as part of an assignment but stuck on how my program stores and reads the data the user entered into the GUI table I created. I also wanted to apply a java code that limits the data type and the character size that can be entered into the table fields. I go... View Questions/Answers

program an interface for a futuristic vending machine  September 27, 2012 at 4:09 AM
program an interface for a futuristic vending machine that serves users hot food and drinks. Users enter input in from a numerical keypad that also contains a handful of letters. The customer will receive a menu and a prompts asking for their selection. The vending machine needs to keep... View Questions/Answers

Provide a method that calculates the total of the order Provide a method that prints the Entree  September 27, 2012 at 4:08 AM
program an interface for a futuristic vending machine that serves users hot food and drinks. Users enter input in from a numerical keypad that also contains a handful of letters. The customer will receive a menu and a prompts asking for their selection. The vending machine needs to keep... View Questions/Answers

About jsp  September 26, 2012 at 8:28 PM
Read Excel data using JSP and update MySQL databse ... View Questions/Answers

Disable BBcode encoding within a latex tag  September 26, 2012 at 7:40 PM
Hello, I have the following bb function function bb($string) { $string = trim($string); $search = array( '@\<(?i)latex\>(.*?)\</(?i)latex\>@si', '@\<(?i)b\>(.*?)\</(?i)b\>@si', '@\<(?i)i\>(.*?)\</(?i)i\>@si', '@... View Questions/Answers

Converting PDF in to XML  September 26, 2012 at 7:03 PM
I have to convert PDF into XMl without any loss in text. Please suggest sth good. ... View Questions/Answers

Traffic Simulator  September 26, 2012 at 5:56 PM
Hi, I am doing a project on creating a traffic simulator for a particular road junction in java. I am looking for ideas on how I would go about recreating the visual of the junction in which I can have moving cars on. Would I use Graph with nodes or is there another way? Thanks ... View Questions/Answers

pyramid  September 26, 2012 at 5:31 PM
123321 12 21 1 1 1 1 12 21 123321 ... View Questions/Answers

write excel file into the oracle database  September 26, 2012 at 5:31 PM
dear sir, i need the jsp code that reads the excel file and stores it into the oracle database table..and also i need the code to connect oracle database? thank u in advance.. ... View Questions/Answers

How to Communicate with the operating system embedded on processor running on hardware machine in java  September 26, 2012 at 4:25 PM
hello Sir, i have a operating system embedded on processor running on hardware machine .Now as per my need i have to communicate with the opearating system using java tools. Will you plz give me the names of the tools for this task. Thank you Sir. ... View Questions/Answers

session maintanance  September 26, 2012 at 3:24 PM
Hi i am developing a small project using j2ee... i have some problem in maintaing session in my project... in my project when a user logout and when he click back button in the browser it goes back to the application....suggest me some codes so that i can maintain session in my project and also w... View Questions/Answers

collection  September 26, 2012 at 1:53 PM
can you pass object reference as key , value ? ... View Questions/Answers

Extracting position of a particular string from a PDF  September 26, 2012 at 12:59 PM
I have a pdf form. I want to knw the exact position(location) of a particular string of that form. Using iText I have extracted all the string from the PDF form, but nt able to get the excat position the string I want to. Please suggest ... View Questions/Answers

File path for jar file  September 26, 2012 at 10:43 AM
Hi Experts, I have created one eclipse project, its about Velocity Template. In that project I have given the hard-coded path of the template, which is working as per expectation. But I have created jar file of that application, unfortunately it is giving the error that resource not fo... View Questions/Answers

get data between date using jsp with msaccess  September 26, 2012 at 9:49 AM
hi, urgently i need program for get data between date using jsp with MsAccess database.plz any one can help me.thanks for anyone replay with regards c.b.chellappa ... View Questions/Answers

how to validate national ID number  September 25, 2012 at 11:22 PM
hey guys, plz send me a code how to vlaidate national ID number using jtextfield. in ID num thers 9 numbers +V.the V letter is included at the end of the numbers. ex:123456789V i don knw how to do this.im confused. plz help me ... View Questions/Answers

loop  September 25, 2012 at 11:13 PM
i want to write my name(inder) through loop in java using star("*"). ... View Questions/Answers

Preprocessor directive case for multiplication and addition  September 25, 2012 at 9:46 PM
Preprocessor directive case for multiplication and addition include<stdio.h> define m 2+10 include<conio.h> int main() { int i; clrscr(); i=m*m; printf("i=%d\n",i); return 0; } ... View Questions/Answers

Preprocessor directive case for multiplication and addition  September 25, 2012 at 9:46 PM
#include<stdio.h> #define m 2+10 #include<conio.h> int main() { int i; clrscr(); i=m*m; printf("i=%d\n",i); return 0; } ... View Questions/Answers

Preprocessor directive case for multiplication and addition  September 25, 2012 at 9:46 PM
#include<stdio.h> #define m 2+10 #include<conio.h> int main() { int i; clrscr(); i=m*m; printf("i=%d\n",i); return 0; } ... View Questions/Answers

profile doesn't match application identifier  September 25, 2012 at 8:14 PM
profile doesn't match application identifier ... View Questions/Answers

Threads in Java Swing MVC Application  September 25, 2012 at 8:00 PM
Hello, I am currently making a Java Swing application, but I am having a lot of trouble with implementing threads into my program. I use the MVC paradigm and I just can't seem to implement custom threads into it, so my GUI doesn't freeze when I run certain parts of the program. I have read your T... View Questions/Answers

DMCA.com