Home Answers Questions Question and Answers


 
 

Latest Programming Questions askedAsk your question?

Junit  February 9, 2012 at 11:05 AM
Hi.. here is my code : **Public static void setConnectionDetails(ConnectionDetails connectionDetails) { UniversalData.connectionDetails = connectionDetails; }** if i want to make a test case using Junit...how can i make it??? ma... View Questions/Answers

mail  February 9, 2012 at 10:19 AM
how to send mail using jsp ... View Questions/Answers

Array Sorter  February 9, 2012 at 4:15 AM
I need a program that will ask the user to either "Enter an Array" or to "Exit the program" If the user want to enter an array the are asked to enter ten numbers. Then those ten numbers are stored in an array and reprinted then that array is sorted by positive even, positive odd, and negative num... View Questions/Answers

Advertisement

Sum of integers  February 9, 2012 at 3:54 AM
A Java program that reads an integer value from the user and displays i) the sum of all even integers between 1 and the input value, both inclusive. ii) The sum of all odd integers between 1 and the input value both inclusive Example: User enters 7. Sum of even integers = 2+4+6 = 12 Su... View Questions/Answers

Read Header/Footer Margin size using Java  February 8, 2012 at 10:27 PM
Hi, Is it possible to read the "Header from Top" and "Footer from bottom" properties of a MS word document in Java? I have been searching the web for hours now, POI's and several other API's, but couldn't found any helpful solution. Any suggestions are welcome. Regards, Pa... View Questions/Answers

Read Header/Footer Margin size using Java  February 8, 2012 at 10:27 PM
Hi, Is it possible to read the "Header from Top" and "Footer from bottom" properties of a MS word document in Java? I have been searching the web for hours now, POI's and several other API's, but couldn't found any helpful solution. Any suggestions are welcome. Regards, Pa... View Questions/Answers

RMI  February 8, 2012 at 6:11 PM
What is RMI in Java ... View Questions/Answers

parallel cryptography  February 8, 2012 at 5:33 PM
how to build java code for encrypting data? ... View Questions/Answers

Local repository in Maven  February 8, 2012 at 5:02 PM
How to read the jars/plugins from local instead of online while building an application with Maven. Any detailed steps will be appreciated. ... View Questions/Answers

php functions  February 8, 2012 at 4:04 PM
hi sir, we give some egs those not produce the results those programs simply display the program on browser ... View Questions/Answers

Java at cmd  February 8, 2012 at 3:34 PM
How to display all built in methods of any java class at the cmd? using which command? For example how to Display built-in methods of String class at cmd.. help me ... View Questions/Answers

user defined styles for datetimepicker in struts2  February 8, 2012 at 1:44 PM
Hi, I am using dojo plugin for displaying datetimepicker. i want to change the colour of the date picker which is in "blue" by default . Please any one can help me in this issue. Thanks, B.Sucharitha. ... View Questions/Answers

user defined styles for datetimepicker in struts2  February 8, 2012 at 1:29 PM
Hi, sample code: <%@taglib prefix="sx" uri="/struts-dojo-tags"%> Issue: I need to have my own styles for the displyed date picker. is i... View Questions/Answers

annotation error  February 8, 2012 at 1:10 PM
class names "JdbcProjam.java "are only accepted if annotation processing is explicitly requested ... View Questions/Answers

semantic issue xcode 4.2  February 8, 2012 at 12:31 PM
I have updated xcode 4.0 to 4.2 .. but once i open any application in this new version of xcode ..it throws lots of semantic issue. Can anyone please explain why it occurs and how to resolve it. ... View Questions/Answers

java program to take the backup of folders and copy the folder in different location without deleting the existing one  February 8, 2012 at 12:20 PM
java program to take the backup of folders and copy the folder in different location without deleting the existing one ... View Questions/Answers

images upload  February 8, 2012 at 12:01 PM
I use netbeans IDE 6.8 How i upload any image from any folder to web page? ... View Questions/Answers

java program to take backup for the folders  February 8, 2012 at 11:41 AM
java program to take backup for the folders ... View Questions/Answers

java program to copy the contents of one folder to another folder  February 8, 2012 at 11:19 AM
java program to copy the contents of one folder to another folder ... View Questions/Answers

how to create a combo box in html  February 8, 2012 at 10:55 AM
<tr> <td>Number<span class=mandatory>*</span></td> <td> <select name="number" id="course" style="width:158px;"> <option value="none">----Select ----</option> <option >1</option> <option >2</opt... View Questions/Answers

how to perform a validation for the field  February 8, 2012 at 10:51 AM
hi, function checkForm() { var getBank=document.form.bname.value; var alphaExp = /^[\,\ \-0-9a-zA-Z]+$/; var message=""; if(document.form.no.value==""){ document.getElementById("error_no").innerText = "*Enter ID"; messa... View Questions/Answers

how to perform a validation for the field  February 8, 2012 at 10:51 AM
hi, function checkForm() { var getBank=document.form.bname.value; var alphaExp = /^[\,\ \-0-9a-zA-Z]+$/; var message=""; if(document.form.no.value==""){ document.getElementById("error_no").innerText = "*Enter ID"; messa... View Questions/Answers

how to create a table  February 8, 2012 at 10:38 AM
create table tablename (name varchar(10),name varchar(10)); ... View Questions/Answers

iphone retina display dimensions  February 8, 2012 at 10:34 AM
What is the dimensions for the iPhone and iPad retina display images..? ... View Questions/Answers

create dao  February 8, 2012 at 9:40 AM
code 1 package com.dao; import java.sql.*; import com.beans.*; public class DbAccess { public void createStudent(SampleBean sampleBean) throws SQLException { Connection con=null; try { con=DbConnect.createConnection(); ... View Questions/Answers

controller  February 8, 2012 at 9:38 AM
package com.controller; import java.io.IOException; import javax.servlet.RequestDispatcher; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import co... View Questions/Answers

ViewDetails  February 8, 2012 at 9:34 AM
<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> <%@page import="com.beans.SampleBean" %> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html... View Questions/Answers

View jsp  February 8, 2012 at 9:33 AM
<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type... View Questions/Answers

Updaetails  February 8, 2012 at 9:31 AM
<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> <%@page import="com.beans.SampleBean" %> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html... View Questions/Answers

update jsp  February 8, 2012 at 9:30 AM
<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type... View Questions/Answers

create main page  February 8, 2012 at 9:29 AM
<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> <%@page import="java.sql.*"%> <%@page import="java.util.*"%> <%@ page session="true"%> <%@page import="java.io.*"%> <%@page import="java.... View Questions/Answers

delete jsp  February 8, 2012 at 9:27 AM
<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type... View Questions/Answers

create jsp  February 8, 2012 at 9:24 AM
<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type... View Questions/Answers

create using jsp  February 8, 2012 at 9:16 AM
code 1:``<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta ... View Questions/Answers

how to create using jsp  February 8, 2012 at 9:00 AM
code 1: <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <... View Questions/Answers

how to create dao  February 8, 2012 at 8:52 AM
code1: package com.dao; import java.sql.*; import com.beans.*; public class DbAccess { public void createStudent(SampleBean sampleBean) throws SQLException { Connection con=null; try { con=DbConnect.createConnection(); PreparedSta... View Questions/Answers

how to create servlet  February 8, 2012 at 8:49 AM
package com.controller; import java.io.IOException; import javax.servlet.RequestDispatcher; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletRe... View Questions/Answers

how to create bean using jsp and servlet  February 8, 2012 at 8:46 AM
public class SampleBean { private String fname=null; private String lname=null; private int age=0; private String gender=null; private String phone=null; } ... View Questions/Answers

pattern program  February 8, 2012 at 4:41 AM
can any 1 print the following pattern in java .plz give the code.and yes thank u so much for answering my 2 other questions.had i known that this would be so helpful i would have registered here long before.anyways the pattern goes like this abcdcba abc cba ab ba a a ab ba abc abc a... View Questions/Answers

java find the error7  February 8, 2012 at 3:52 AM
var name=document.forms["insert"]["in_username"]; var age=document.forms["insert"]["in_userage"]; var address=document.forms["insert"]["in_address"]; var phone=document.forms["insert"]["in_userphone"]; if(name.value.length == 0) { ... View Questions/Answers

Java find the error 6  February 8, 2012 at 3:50 AM
<script type="text/javascript"> function validation() { var name=document.forms["insert"]["in_username"]; var age=document.forms["insert"]["in_userage"]; var address=document.forms["insert"]["in_address"]; var phone=document.forms["insert... View Questions/Answers

java find the error5  February 8, 2012 at 3:33 AM
<%@page import="java.sql.*"%> <%@page import="java.util.*"%> <%@ page session="true"%> <%@page import="java.io.*"%> <%@page import="java.net.*"%> <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageE... View Questions/Answers

java find the error4  February 8, 2012 at 3:29 AM
public String executeStudentInsert(HttpServletRequest request ) throws ClassNotFoundException, SQLException { StudentBean beanObj = new StudentBean(); beanObj.setStudentName(request.getParameter("Name")); beanObj.setStudentAge(request.getParameter("Age")); bea... View Questions/Answers

java find the error3  February 8, 2012 at 3:28 AM
public String studentDel(StudentBean studObj) throws ClassNotFoundException, SQLException { Connection conObj=DBConnections.setConnection(); PreparedStatement ps= conObj.prepareStatement("DELETE FROM balastudent WHERE studentid=?"); ... View Questions/Answers

java find the error2  February 8, 2012 at 3:26 AM
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { // TODO Auto-generated method stub String temp=request.getRequestURI().toString(); String actionName=temp.substring(temp.lastIn... View Questions/Answers

java find the error1  February 8, 2012 at 3:21 AM
package com.test.dao; import java.sql.Connection; import java.sql.DriverManager; import java.sql.SQLException; public class DBConnections { public static String userName=""; public static String password=""; public static String URL="jdbc:oracle:thin:@17... View Questions/Answers

password check  February 8, 2012 at 12:55 AM
how to check sighup passowrd and login password.. ... View Questions/Answers

downloading  February 8, 2012 at 12:45 AM
i doing project in php with mysql. i am using xampp.i need code for downloading file.. ... View Questions/Answers

programing  February 7, 2012 at 11:43 PM
in a program we can have write with out main() how can we write??? plese show me ... View Questions/Answers

programing  February 7, 2012 at 11:43 PM
in a program we can have write with out main() how can we write??? plese show me ... View Questions/Answers

programing  February 7, 2012 at 11:43 PM
in a program we can have write with out main() how can we write??? plese show me ... View Questions/Answers

programing  February 7, 2012 at 11:43 PM
in a program we can have write with out main() how can we write??? plese show me ... View Questions/Answers

programing  February 7, 2012 at 11:43 PM
in a program we can have write with out main() how can we write??? plese show me ... View Questions/Answers

CoreJava Project  February 7, 2012 at 11:19 PM
Hi Sir, I need a simple project(using core Java, Swings, JDBC) on core Java... If you have please send to my account. ... View Questions/Answers

SECURE EXAMINATION SYSTEM  February 7, 2012 at 8:32 PM
Hello sir,if any online exam is held then we register with username and password and starts the exam with the question one by one within countdown session that is within timer out.If the system failure occurs in the middle of the exam then the exam will be stopped even though timer is not out.so ... View Questions/Answers

swing program for decimal to binary  February 7, 2012 at 8:26 PM
swing program for decimal to binary ... View Questions/Answers

Moire Pattern 2 Java  February 7, 2012 at 7:30 PM
textWhat you are seeing in the screenshot are two sets of concentric circles. The centers of the circles are 100 pixels apart. The circles have a width of 5, and the diameter of a circle is 20 pixels larger than its next smallest one. Diameters range from 20 to 480... View Questions/Answers

patterns  February 7, 2012 at 7:00 PM
who ever answered my previous ques thank u sooooo much!!!!!!!!!! though i was able to solve most complicated progms in java patterns are a night mare for me. thank u once again.can u help me on how to print the following plzzz!!!! RRRRRRRRR ROOOOOOOR ROHHHHHOR ROHIIIH... View Questions/Answers

code  February 7, 2012 at 6:05 PM
An API provides you a readymade method to display a DialogBox with a message and a text input field, and returns you whatever the user types in that input box. The method signature is: String takeUserInput(String message) You want to use this DialogBox to ask the user for the number of children h... View Questions/Answers

what will the output  February 7, 2012 at 6:01 PM
class Parent has a public method play() that prints "Parent is playing". A class Child that extends the Parent class also has the method play() that prints "Child is playing". An instance of Child class called Sonu is typecast to Parent class as below. Child sonu = new Child(); Parent p = (Parent... View Questions/Answers

php dynamic array checking  February 7, 2012 at 5:34 PM
php dynamic array checking ... View Questions/Answers

php dynamic array checking  February 7, 2012 at 5:34 PM
php dynamic array checking ... View Questions/Answers

How to provide navigation in quiz application using jsp?  February 7, 2012 at 5:07 PM
hi everyone. i am using jsp with mysql connectivity. i have to retrieve questions from db one at a time. on clicking the next it should go the next question and on clicking the previous button it should go to the previous question :) ... View Questions/Answers

regular expression for special characters  February 7, 2012 at 4:53 PM
How to find out regular expression for special characters..? ... View Questions/Answers

how to update table using inner joins  February 7, 2012 at 4:49 PM
how to update table using inner joins ... View Questions/Answers

how i can get jqfade.js library  February 7, 2012 at 4:47 PM
how i can get jqfade.j script library ... View Questions/Answers

Struts2...problem in JSP..unable to get the values for menuTitle!!!  February 7, 2012 at 4:45 PM
**Hello everyone... i'm trying to make a dynamic menu from database in struts2...n m fairly new in this framework.. there is some problem in this project...my Jsp is displaying the menuId from database but not the menuTitle...where as its working fine for menuId..** here's the content of ... View Questions/Answers

how to take iphone backup using itunes  February 7, 2012 at 4:29 PM
Hi, Can anyone please tell me how to take iphone backup using itunes..? ... View Questions/Answers

automatic discovery personal name aliases from the web  February 7, 2012 at 3:44 PM
i want for web search area display code ... View Questions/Answers

automatic discovery personal name aliases from the web  February 7, 2012 at 3:41 PM
gogle web page display search the result ... View Questions/Answers

automatic discovery personal name aliases from the web  February 7, 2012 at 3:31 PM
create a text field in enter the name and search button to below result in internet connection ... View Questions/Answers

Upload and display image and text records using JSP and Oracle  February 7, 2012 at 3:29 PM
Hi all, I'm using JSP and Oracle 10g. I could retrieve and display records from database. But i couldnot retrieve and display image. I want to store the image ( uploaded by the user) and retrieve it along with the other records. Please help me!! This is the table i have : ... View Questions/Answers

asp.net  February 7, 2012 at 3:25 PM
My project requrement is when somebuddy fill a web form then all form value will save on database table..& also save that data in excel file......is it any solution of this problem. the code language is asp.net & c#........... ... View Questions/Answers

personal name aliase from the web  February 7, 2012 at 3:19 PM
enter the name to search result in internet connection ... View Questions/Answers

automatic discovery personal name aliases from the web  February 7, 2012 at 3:16 PM
enter the name and enter the button to search result for internet connection below ... View Questions/Answers

simple eg  February 7, 2012 at 3:10 PM
$string = ?Hello Users?; print (?Welcome to Roseindia, I want to greet $string?); print (??); $string = ?Bye Bye!?; print (?OK meet you soon, $string?); ?> in this program we get a error at line 4 ... View Questions/Answers

flow charts  February 7, 2012 at 3:10 PM
draw a flow chart program with a user prompt of 5 numbers computing the maximum, minimum and average. ... View Questions/Answers

automatic discovery personal name aliases from the web  February 7, 2012 at 3:02 PM
enter the word clickbutton and goto internet connection,and below result information display . ... View Questions/Answers

any body have any solutions?  February 7, 2012 at 2:54 PM
Hi Friends, I just get down my computer, I am working on it, but suddenly get down and can√Ę‚?¨‚?Ęt get start again. If any body have any solutions? ... View Questions/Answers

date  February 7, 2012 at 2:45 PM
how to insert date using html through the combobox ... View Questions/Answers

date  February 7, 2012 at 2:45 PM
how to insert date using html through the combobox ... View Questions/Answers

date  February 7, 2012 at 2:45 PM
how to insert date using html through the combobox ... View Questions/Answers

date  February 7, 2012 at 2:45 PM
how to insert date using html through the combobox ... View Questions/Answers

date  February 7, 2012 at 2:16 PM
how to insert date in database? i need coding for that ... View Questions/Answers

simple examples  February 7, 2012 at 2:14 PM
hi,we want to print a comma between two words we put comma in double quotes .Is it correct or not ... View Questions/Answers

How to delete .xlsx file in java?  February 7, 2012 at 1:05 PM
Hello Sir, I am unable to delete .xlsx file using below code, What is wrong here? if(myFile != null && myFile.exists()    && myFile.canRead() && myFile.canWrite()    && myFile.canExecute()) {  myFile.d... View Questions/Answers

datetimepicker not displayed in struts2  February 7, 2012 at 1:04 PM
Hi, I am facing problem in struts2(2.1 version) to diaplay datetimepicker. sample code: <%@taglib prefix="s" uri="/struts-tags"%> <%@taglib prefix="d" uri="/struts-dojo-tags"%> ... View Questions/Answers

datetimepicker not working in struts2  February 7, 2012 at 12:37 PM
Hi, I am using "struts2-dojo-plugin-2.1.6.jar" and the taglib is "<%@taglib prefix="d" uri="/struts-dojo-tags"%>" **sample code:** <%@taglib prefix="s" uri="/struts-tags"%> <%@taglib prefix="d" uri="/struts-dojo-tags"%> <html> ... View Questions/Answers

simple web applications using log4j  February 7, 2012 at 12:13 PM
i am getting java.lang.NoClassDefFoundError: org/apache/log4j/Logger and javax.servlet.ServletException: Error instantiating servlet class Sample exceptions when trying to execute. this is my code.............. public class Sample extends HttpServlet { private stati... View Questions/Answers

send mail in PHP  February 7, 2012 at 11:58 AM
what are configurations needed to send mail in php.ini file by localhost ,please give me complete details about this,and code in datail ... View Questions/Answers

Java Program to insert a row in the same sheet of excel file  February 7, 2012 at 11:00 AM
Java program to insert a row in the same sheet of excel file using poi package in java ... View Questions/Answers

servlet responds wiyh status 4004  February 7, 2012 at 7:09 AM
function getXMLObject() //XML OBJECT { var xmlHttp = false; try { xmlHttp = new ActiveXObject("Msxml2.XMLHTTP") // For Old Microsoft Browsers } catch (e) { try { xmlHttp = new ActiveXObject("Microsoft.XMLHTTP") // For Microsof... View Questions/Answers

patterns  February 7, 2012 at 6:15 AM
how to print the following in java 654321 54321 4321 321 21 1 ... View Questions/Answers

patterns  February 7, 2012 at 6:15 AM
how to print the following in java 654321 54321 4321 321 21 1 ... View Questions/Answers

patterns  February 7, 2012 at 6:12 AM
how to print the following pattern ... View Questions/Answers

pattern program  February 7, 2012 at 6:06 AM
can some one plz help me to wright the logic for the following pattern abcdcba abc cba ab ba a a ab ba abc cba abcdcba ... View Questions/Answers

code for an invoice  February 7, 2012 at 5:25 AM
Hi can you help me with the code for this java program,I can't seem to get it to work.The output of the program looks like this: INVOICE FOR ORDER john jones 24 long road clairmont ontario POST CODE: 89763 D24 Wood glue, clear, 1 litre 2 @ $ 5.50 $ 11.00 K16 Wood screws, brass, 2... View Questions/Answers

Moire Pattern Java Program  February 7, 2012 at 12:48 AM
**strong text**What you are seeing in the screenshot are two sets of concentric circles. The centers of the circles are 100 pixels apart. The circles have a width of 5, and the diameter of a circle is 20 pixels larger than its next smallest one. Diameters range fro... View Questions/Answers

how to print data(From databse Oracle10g) in preformatted A4 and A3 paper using jsp  February 6, 2012 at 11:43 PM
how to print data(From databse Oracle10g) in preformatted A4 and A3 paper using jsp. I am inserting analysis report into a database using jsp,oracle10g. Now i want to print this data in a preformatted a4 and a3 paper.How? ... View Questions/Answers

java code to convet to CSV  February 6, 2012 at 10:00 PM
public static StringBuffer convert(JTable table) { StringBuffer sbf = new StringBuffer(); // Check to ensure we have selected only a contiguous block of cells int numcols = table.getColumnCount(); int numrows = table.getSelectedRowCount(); int[] rowsselec... View Questions/Answers

DMCA.com