Home Answers Questions Question and Answers


 
 

Latest Programming Questions askedAsk your question?

jdk6 and oracle 8i  October 9, 2013 at 1:26 AM
I connecte oracle 8i and jdk6 I notice that why can not connect ... View Questions/Answers

How to redirect from a HTML page?  October 8, 2013 at 10:27 PM
Hi, Is it possible to redirect from HTML page to another page on the net? I have one page and I want to redirect it to another page. What will be the code for redirecting the page to another page when use visits the first page. Thanks ... View Questions/Answers

Strings  October 8, 2013 at 9:57 PM
Hi Kindly send me the code for to finding the longest substring in a string like "abccbcabcdab" ----The answer should be "abcd". please send me the code using the logic compare elements with their ASCII value. ... View Questions/Answers

Advertisement

Java Question  October 8, 2013 at 2:47 PM
what is Java? How it is useful in programming? Thanks ... View Questions/Answers

Dynamic table in jsp  October 8, 2013 at 12:02 PM
Hi..... I have a java file to read excel file. I have stored all the elements of excel file in a variable. Now i want to show all values of excel file on jsp page in a table format. All elements are displaying on jsp page but in vertical line. How can i cha... View Questions/Answers

Visitor IP Address and Host Name using jsp  October 8, 2013 at 10:02 AM
I have created one jsp page and i want to display the ip address of the visitor in my page. I used the following code to get the ip address: String ip=request.getRemoteAddr(); But i am not getting the correct ip address.I am getting the same ip address (127.0.0.1) for all the systems that i use.A... View Questions/Answers

connexion oracle 8i et jdk6  October 8, 2013 at 3:31 AM
j'ai connexion oracle 8i et jdk6 je remarque que connexion impossible comment ? ... View Questions/Answers

Text Editor with Syntax Highlighting  October 7, 2013 at 9:42 PM
How to write a java program for text editor with syntax highlighting ?? ... View Questions/Answers

Java write to file  October 7, 2013 at 7:18 PM
How to write to a file in Java? Is there any good example code here? Thanks ... View Questions/Answers

oracle database backup using jsp  October 7, 2013 at 5:01 PM
I want to take the backup of oracle database.I want to write the code in jsp ,so that when the page is loaded a backup of the database is stored in one of my local drives.Is it possible to do this task? If possible how can it be done ? ... View Questions/Answers

is this programm efficient to find the day of the given date . can it be more normalized ?  October 7, 2013 at 4:06 PM
#include <stdio.h> int main(void) { int dd,mm,yy,i,leap=0,ordi=0,odd_years,month_days= 0,total ; char week[7][10] ; strcpy(week[0], "Sunday") ; strcpy(week[1], "Monday") ; strcpy(week[2], "Tuesday") ; strcpy(week[3], "Wednesday") ; strcpy(we... View Questions/Answers

About captcha of strut2  October 7, 2013 at 2:58 PM
please do some captch using jcaptcha jar i am implementing but am not getting please do captcha using jar file.. Thanks in advance ... View Questions/Answers

About captcha of strut2  October 7, 2013 at 2:58 PM
please do some captch using jcaptcha jar i am implementing but am not getting please do captcha using jar file.. Thanks in advance ... View Questions/Answers

java [ cannot retrive date from sql ] why??  October 6, 2013 at 1:26 PM
import java.util.Date; import java.text.SimpleDateFormat; import java.text.ParseException; import java.io.*; import java.sql.Connection; import java.sql.Statement; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.DriverManager; imp... View Questions/Answers

hi,i'am new to Jsp.Can some one please let me know an answer for this question?  October 6, 2013 at 3:45 AM
how do we upload an xml file and validate them against WIPO DTD ... View Questions/Answers

Download.  October 5, 2013 at 2:59 PM
I need a swing program to download a file from the server. ... View Questions/Answers

download mp3 file on server in iphone  October 4, 2013 at 7:33 PM
I want to download mp3 file on the server in iphone......plz help me give me the demo code ... View Questions/Answers

How to make a ajax application which take data from textarea and that page is not refreshing.  October 4, 2013 at 6:37 PM
I am doing a application in that i am using Spring Framework.I am having a text area and a submit button. On pressing submit Button data is moved to spring controller and page must not be refresh. Actually i have done this without using AJAX but I want to do this using AJAX. ... View Questions/Answers

Which is the good website for struts 2 tutorials?  October 4, 2013 at 6:24 PM
Hi, After completing the MCA I have learned Java and now searching for good tutorial website for learning Struts 2. Suggest met the struts 2 tutorials good websites. Thanks ... View Questions/Answers

I want to Transfer only 1/3rd of contents from one folder to other but my code is transferring all contents  October 4, 2013 at 12:55 PM
private static void copyFilesRecursively(File src, File dest) throws IOException { if (src.isDirectory()) { dest.mkdir(); File[] entries = src.listFiles(); if (entries == null) { throw new IOException... View Questions/Answers

advance java  October 4, 2013 at 12:07 PM
application to demonstrate email validator ... View Questions/Answers

Wordpress Hosting  October 3, 2013 at 7:14 PM
Hi, What is Wordpress hosting and how is benefits of it? Thanks ... View Questions/Answers

doubt  October 3, 2013 at 11:55 AM
difference between .exe file and jar file ... View Questions/Answers

Order Entry System  October 3, 2013 at 3:50 AM
Create a new order entry system using netbeans and microsoft access.can anyone help me? ... View Questions/Answers

In JSP page, inside a javascript function, can I place a java code using scriptlet tag?  October 2, 2013 at 9:51 PM
Objective: When the user is trying to close a window, I need to check whether a particular list is empty or not. If its not empty, I need to make a hibernate call to do some action. Did Coding as below: While the user is trying to close a window, I am calling a java script function close... View Questions/Answers

Easiest method for expiring the css and js headers  October 2, 2013 at 3:27 PM
Hi, I have a website with many thousand users visiting per day. I have changes the css file and uploaded it on server. Now some user is getting the old css file. Let's know what could be the easiest method to solve the browser cache issue? There is not way to tell the users of my ... View Questions/Answers

Java  October 2, 2013 at 11:22 AM
how to draw class diagrams in java? ... View Questions/Answers

source code  October 2, 2013 at 10:36 AM
sir...i need an online shopping web application on struts and jdbc....could u pls send me the source code ... View Questions/Answers

source code  October 2, 2013 at 10:36 AM
sir...i need an online shopping web application on struts and jdbc....could u pls send me the source code ... View Questions/Answers

Spring Validations  October 1, 2013 at 10:34 PM
Hi.. i need code for validations using spring annotations ... View Questions/Answers

Converting jsp variable to java variable  October 1, 2013 at 11:02 AM
Hi how to convert java script variable to java variable on same jsp page?? ... View Questions/Answers

how to handle action events in case of more than one JFrame  September 30, 2013 at 4:02 PM
I have downloaded a snake game project from the internet, initially this project contains three java files namely 1. Engine.java 2. Snake.java 3. Gameoard.java when i runs Engine.java ,game starts running .. Now i have done some modification in it to improve the interactivity of t... View Questions/Answers

how can i set an object in focus  September 30, 2013 at 3:59 PM
There is a Canvas object in my game and this object is not set in focus, because of this my snake is not moving on the Board . Basically i am working on snake game project, and i want is when play button is clicked from PlayGame.java JDialog ,game should start ,but problem i am facing is ... View Questions/Answers

In Struts 2 how to pass the s: property value'  September 30, 2013 at 12:29 PM
In Struts 2 how to pass the s: property value' I have page where i display the list of treasury, their names. I need to have them as hyperlinks ans on click of A treasury name i need to call another jsp say "datafwd.jsp". This action will get data about this data.jsp from that DB and di... View Questions/Answers

if/else statements  September 30, 2013 at 10:29 AM
I'm having a hard time programming this question: code an if/else statement that test the value of a string variable named shippingMethod to determine if it has a value of "UPS," "FEDEX," or another value. If the value is "UPS," code another if/else statement that tests the value of a double vari... View Questions/Answers

4G  September 30, 2013 at 8:40 AM
I wish to know more about 4G technology ... View Questions/Answers

java program  September 29, 2013 at 11:31 PM
Write a program to create an applet and display The message "welcome to java" ... View Questions/Answers

java program  September 29, 2013 at 11:27 PM
Write a java program to find the number of Positive numbers in m* n matrix. ... View Questions/Answers

java program  September 29, 2013 at 11:22 PM
Write a java program to do matrix addition operation On two given matrices. ... View Questions/Answers

java program  September 29, 2013 at 12:31 PM
write a program to read 10 numbers from user and store it in a array. display the maximum n minimum number in the array ... View Questions/Answers

how to write a function to print for finding the longest palindrome in the given string  September 29, 2013 at 10:41 AM
how to write a function to print for finding the longest palindrome in the given string? ... View Questions/Answers

java  September 29, 2013 at 12:01 AM
what is classpath?describe various levels of access protection? ... View Questions/Answers

jsp  September 28, 2013 at 11:32 PM
how to upload image through csv format in jsp ... View Questions/Answers

java programming  September 28, 2013 at 12:38 AM
A computer is used to count the votes in an election. At the start of the election, the number of candidates standing is entered. Suppose this value is N ?? candidates will then be numbered 1 to N. Each elector in turn has ONE chance to choose his candidate from 1 to N. The program th... View Questions/Answers

java programming  September 28, 2013 at 12:32 AM
A name is ALREADY in a string variable in memory. The string is called NAME or NAME$ . The variable holds a person's name with a space between the first and family name. WILLIAM (space) JONES. Write a high-level language routine to extract from this single variable the two names,... View Questions/Answers

how to solve 'Stop Running This Script' Error ?  September 27, 2013 at 7:00 PM
Hi.. When opened the page on IE browser(version : 8.0),it gives an java script error (i.e.Stop Running This Script). I have used jsp/servlet for this. Please help to resolved this issue. Thanks...... ... View Questions/Answers

Configure Js request in Web.xml  September 26, 2013 at 10:51 PM
Hi all, I have 1 basic doubt,suppose i have 2 jsp,1 servlet,1 web.xml file.i need to redirect 1 page via servlet with help of web.xml file.Here just i need to redirect to mainCtrl.java file.Thats enough. for this purpose any thing i need to configure in web.xml .If it's Explain how do i... View Questions/Answers

Insert value of dynamic generated text box in jsp using javascript  September 26, 2013 at 4:28 PM
hello sir , i want to generate dynamic text box at run time and i did that using javascript code given at your site now sir problem is i am not able to insert that dynamically generated text box value into database at a time without reloading the page what i want is i can insert the multiple colu... View Questions/Answers

java program  September 26, 2013 at 3:38 PM
To find the sum of all integer numbers greater than 100 and less than 200 That are divided by 7. ... View Questions/Answers

jsp  September 26, 2013 at 2:51 PM
Hi I don know any frame works...I am tryin to create a page in jsp which should get translated to Indian languages like kannada , telugu etc..when user selects a language can u help me out.. thanks ... View Questions/Answers

random numbers  September 26, 2013 at 5:34 AM
Hi I need some help with the code for the this program. This program should randomly choose a number between 1 and 1000, and then challenge the user to guess what it is, giving hints ('too high!' or 'too low') for wrong guesses, and congratulations when the user finally guesses the right ... View Questions/Answers

Ascending order  September 26, 2013 at 5:08 AM
Hello,I need some help with the code for the following.A program that allows the user to type in three different integers (none of them equal to each other, in any order, (for example, 23, 7, 156; but not 23, 7, 23), and then it should print out the three integers in ascending order, saying which... View Questions/Answers

project  September 26, 2013 at 1:38 AM
I'm designing a netbeans java program/project. I have to design a program that captures the persons name and mark #.then find the average mark of the whole class.after that need to count and display who had the highest mark and who had the lowest mark from the class.then display how many people p... View Questions/Answers

how to create xls file and give download option using jsp/servlet?  September 25, 2013 at 5:21 PM
Hi, how to create file and give download option to user,so that the user can save the file on defined path. ... View Questions/Answers

i18n example  September 25, 2013 at 11:42 AM
Hi.. I need a code for jsp home where user can select his regional language like kannada, telugu , Tamil etc..so that jsp page gets displayed in that language. ... View Questions/Answers

execute dos commands  September 24, 2013 at 7:50 PM
how to execute dos commands using a java program ... View Questions/Answers

Data over Voice Communication  September 24, 2013 at 5:02 PM
I just Want to know that Data Over Voice communication is possible in India or Not, If not then Why. and If Yes then Why Please anyone give the answer. ... View Questions/Answers

how to open one Jframe from main method call  September 24, 2013 at 4:23 PM
I have downloaded a snake game project in java. Initially the project contains three java files i.e " Engine.java Snake.java GameBoard.java And Engine.java have the main() method, when i run this Engine.java class game starts ru... View Questions/Answers

SPSS Writer  September 24, 2013 at 3:23 PM
Please help me how to create spss file in java ? ... View Questions/Answers

How to threow timeout exception when DB is not responding  September 24, 2013 at 1:50 PM
How to throw timeout exception when DB is not responding ? ... View Questions/Answers

How to threow timeout exception when DB is not responding  September 24, 2013 at 1:48 PM
How to throw timeout exception when DB is not responding ? ... View Questions/Answers

How to create file and save it into user defined path using jsp/servlet?  September 24, 2013 at 12:49 PM
Hi.. Onclick event I have created one file.When file will create it should asked where to save file(like browse option). ... View Questions/Answers

duplicate values  September 23, 2013 at 5:15 PM
My database having cursor that has duplicate values.i want to remove duplicate values through java application. ... View Questions/Answers

instead of extend  September 22, 2013 at 9:41 PM
Hi, I want answer this question. Ouestion: Instead of extends keyword,is there any keyword available in java? Regards krishna ... View Questions/Answers

instead of extend  September 22, 2013 at 9:41 PM
Hi, I want answer this question. Ouestion: Instead of extends keyword,is there any keyword available in java? Regards krishna ... View Questions/Answers

connection of php to MySQL.  September 22, 2013 at 4:04 PM
I have a query on connection of php to MySQL. Website's serverspace by godaddy and provides phpmyadmin(interface of MySQL) for Database I have a page admin.php <?php if (isset($_POST["submitted"])) { include('connect-mysql.php'); $usern... View Questions/Answers

java  September 20, 2013 at 8:15 PM
Accept a filename from the user and display the contents of the file. Accept the names of two files and copy the contents of the first to the second. Add Author name and Date in comments in the beginning of file. Add the comment ?end of file? at the end. Accept the names of three files and copy t... View Questions/Answers

java  September 20, 2013 at 8:15 PM
Accept a filename from the user and display the contents of the file. Accept the names of two files and copy the contents of the first to the second. Add Author name and Date in comments in the beginning of file. Add the comment ?end of file? at the end. Accept the names of three files and copy t... View Questions/Answers

java  September 20, 2013 at 8:15 PM
Accept a filename from the user and display the contents of the file. Accept the names of two files and copy the contents of the first to the second. Add Author name and Date in comments in the beginning of file. Add the comment ?end of file? at the end. Accept the names of three files and copy t... View Questions/Answers

java  September 20, 2013 at 8:15 PM
Accept a filename from the user and display the contents of the file. Accept the names of two files and copy the contents of the first to the second. Add Author name and Date in comments in the beginning of file. Add the comment ?end of file? at the end. Accept the names of three files and copy t... View Questions/Answers

java  September 20, 2013 at 8:14 PM
Accept a filename from the user and display the contents of the file. Accept the names of two files and copy the contents of the first to the second. Add Author name and Date in comments in the beginning of file. Add the comment ?end of file? at the end. Accept the names of three files and copy t... View Questions/Answers

java  September 20, 2013 at 8:14 PM
Accept a filename from the user and display the contents of the file. Accept the names of two files and copy the contents of the first to the second. Add Author name and Date in comments in the beginning of file. Add the comment ?end of file? at the end. Accept the names of three files and copy t... View Questions/Answers

java  September 20, 2013 at 8:14 PM
Accept a filename from the user and display the contents of the file. Accept the names of two files and copy the contents of the first to the second. Add Author name and Date in comments in the beginning of file. Add the comment ?end of file? at the end. Accept the names of three files and copy t... View Questions/Answers

java  September 20, 2013 at 8:14 PM
Accept a filename from the user and display the contents of the file. Accept the names of two files and copy the contents of the first to the second. Add Author name and Date in comments in the beginning of file. Add the comment ?end of file? at the end. Accept the names of three files and copy t... View Questions/Answers

java  September 20, 2013 at 8:14 PM
Accept a filename from the user and display the contents of the file. Accept the names of two files and copy the contents of the first to the second. Add Author name and Date in comments in the beginning of file. Add the comment ?end of file? at the end. Accept the names of three files and copy t... View Questions/Answers

java  September 20, 2013 at 8:13 PM
Accept a filename from the user and display the contents of the file. Accept the names of two files and copy the contents of the first to the second. Add Author name and Date in comments in the beginning of file. Add the comment ?end of file? at the end. Accept the names of three files and copy t... View Questions/Answers

core java  September 20, 2013 at 2:38 PM
Is it possible to create a shallow copy of an arraylist instance? if yes then please post the code. ... View Questions/Answers

How to delete excel file records using Store Procedure?  September 20, 2013 at 12:21 PM
Hi.. I have created one Excel file through stored procedure.Now I want to delete records or delete excel file. Thanks............ ... View Questions/Answers

Unable to Insert Arabic words in mysql table  September 19, 2013 at 11:31 PM
I have I java program that I want to insert arabic letters in mysql. Do you have any idea about the configuration of mysql that accepts arabic charcters. ... View Questions/Answers

Upload Image and save in database using jsp-servlet mvc  September 19, 2013 at 3:57 PM
Here is my code.. In jsp ... <form name=frm method="post" action="Device"> <table> <tr><TD ><B>Upload Image</B></TD> <td><input type="file" name="Image" size="20" value=""></TD> ... View Questions/Answers

Upload Image and save in database using jsp-servlet mvc  September 19, 2013 at 3:57 PM
Here is my code.. In jsp ... <form name=frm method="post" action="Device"> <table> <tr><TD ><B>Upload Image</B></TD> <td><input type="file" name="Image" size="20" value=""></TD> ... View Questions/Answers

java assignment  September 19, 2013 at 3:18 PM
Write an application that allows the user to choose insurance options in JCheckBoxes. Use a ButtonGroup to allow the user to select only one of two insurance typesâ???HMO (health maintenance organization) or PPO (preferred provider organization). Use regular (single) JCheckBoxes for dental in... View Questions/Answers

javascript  September 19, 2013 at 12:25 PM
hi sir, if i want to learn javascript. what concepts i want to know. ... View Questions/Answers

JavaFX deployment in Jboss  September 19, 2013 at 12:24 PM
Hi, How to deploy javafx application into JBoss? ... View Questions/Answers

javascript  September 19, 2013 at 12:18 PM
Hi sir, This is sinduri, i want to learn javascript, so plz can u help me.how to learn. ... View Questions/Answers

java vertual machine launcher error; cannot access jarfiles  September 18, 2013 at 11:41 PM
Hi I am getting a error while running Dos bat file Error showing as error; cannot access jarfiles D\Documents Please help Regards GP ... View Questions/Answers

In JSF2 application, source code written in xhtml file is downloading  September 18, 2013 at 11:40 PM
HI All, We have a jsf2 application deployed on WAS 8.0. When we hit on xhtml pages, source code written on xhtml pages is downloaded. Same application has some jsp pages, and they are working fine. We are using IBM JSF2.0 for the development. (Due to c... View Questions/Answers

C programming  September 18, 2013 at 9:16 PM
i am beginner in C my text book says getchar() and putchar() reads single character at a time and print single character respectively. but when i write following program, more than one characters are read and printed on screen. Why?please help. #include &... View Questions/Answers

Sql to excel  September 18, 2013 at 5:57 PM
How to convert a Sql Data into excel Doc with Using Netbeans ... View Questions/Answers

image processing in java  September 18, 2013 at 11:58 AM
public class testing { static BufferedImage image; public static void main(String[] args) throws IOException { ArrayList<Integer> l1=new ArrayList<Integer>(); ArrayList<Integer> l2=new ArrayList<Integer>(); ArrayList<Integer> l3... View Questions/Answers

Reading multiple xml files  September 17, 2013 at 4:07 PM
How can we read many xml files from a folder? The same procedure as that of "listfiles()" ? ... View Questions/Answers

esign filter for wifi router  September 16, 2013 at 10:53 PM
How can i make a filter for my wifi router to filter packets from specific ip or mac address? ... View Questions/Answers

java  September 16, 2013 at 10:31 PM
Hi, Can you please help me in writing program in jsp and servlet. Want to get values from combo box and on click of submit button, want to retreive values from database and display values in table format in jsp, from the one column value need give input to query and display result in second table... View Questions/Answers

Java Experience (2.4Years)  September 16, 2013 at 2:06 PM
why should we use interface more instead of abstract class and what are the advantages of interfaces over abstrct class? ... View Questions/Answers

how to ignore http 500 error?  September 16, 2013 at 1:37 PM
In XML data parsing while connecting to many server through URL if one does not connect gives the error. Is there any process to ignore that URL connection and get data from other connection which responds. ... View Questions/Answers

loan calculator  September 16, 2013 at 12:10 PM
code of the loan clculator ... View Questions/Answers

amar  September 16, 2013 at 7:46 AM
write a java program to print all words starting with "a" in a given sentence ... View Questions/Answers

HTML WITH AJAX  September 15, 2013 at 9:55 PM
I WANT A SIMPLE HTML AJAX PROGRAM WHICH GETS ANY STRING STRING AS INPUT AND GIVES THE RESULT ... View Questions/Answers

Prompt for a password when deleting a data  September 15, 2013 at 4:34 PM
I am using netbeans and mysql. i have added a username and password. i have a set of data in the database. so when deleting a data it should prompt for the password and if the password is correct then the data should be deleted and if the password is wrong then the data should not be deleted &... View Questions/Answers

How to browse excel file and stored the contents into the database using jsp/servlet?  September 15, 2013 at 3:56 PM
Hi.. I want to browse excel file and stored the file data into the My-sql database using jsp/servlet. ... View Questions/Answers

DMCA.com