Home Answers Questions Question and Answers


 
 

Latest Programming Questions askedAsk your question?

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

Advertisement

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

J2ME handing multiple pages  February 6, 2012 at 9:55 PM
I have 1 midlet and 1 form. How do i make my display of the midlet when users pressed the back command from the form class? Thanks for helping!! Midlet codes import javax.microedition.midlet.*; import javax.microedition.lcdui.*; public class LoginMidlet extends MIDlet impl... View Questions/Answers

Magic number Java Program  February 6, 2012 at 8:18 PM
write a program that guesses what number the user is thinking of. Below is a sample transcript: Think of a number between 1 and 255. I will guess the number you are thinking of. 1 3 5 7 9 11 13 15 17 19 21 23 25 27 29 31 33 35 37 39 41 43 45 47 49 51 53 55 57 59 61 63 65 67 69 71 73 75 77 79 81... View Questions/Answers

dm  February 6, 2012 at 8:13 PM
Write a Java program to compute all data cuboids for the facts count and avg_income, where avg_income represents the average income for a cell. The program should take a command line parameter n representing the dimension of the cuboid and print out the corresponding cuboids.... View Questions/Answers

data mining  February 6, 2012 at 7:58 PM
Q. Write a Java program to compute all data cuboids for the facts count and avg_income, where avg_income represents the average income for a cell. The program should take a command line parameter n representing the dimension of the cuboid and print out the corresponding cuboids. For example- Data... View Questions/Answers

Marker interface  February 6, 2012 at 6:24 PM
what is a marker interface? what is its significance? ... View Questions/Answers

struts 2 mysql  February 6, 2012 at 4:38 PM
In the example : http://www.roseindia.net/struts/struts2/struts-2-mysql.shtml how is the username and password(in insertdata.jsp) which is entered by the user is transferred to the { ("INSERT employee VALUES ('"+uname+"','"+pws+"')"); } This code is in the insert.java. ... View Questions/Answers

want a program for date picker by using java swings  February 6, 2012 at 3:30 PM
to write a program for the date picker by using java swings.any one please help me by providing the code to this java date picker by using the java swings.previously a program is there using by using the java script for the date picker but know i wan tthe program by using swings..please help me... View Questions/Answers

Create HTML page using java  February 6, 2012 at 3:04 PM
Hi, I need to create an html page to export some information. Currently, by using java, i've exported information to excel. But now, I would like to view it in HTML instead of excel. Is there any APIs I can use? Thanks. ... View Questions/Answers

ajax synchronisation  February 6, 2012 at 2:57 PM
how to stop ajax execution for some specific time ... View Questions/Answers

Hibernate criteria query  February 6, 2012 at 2:33 PM
Hi... I need criteria query like query = session.createQuery("from Affiliate a, Group b, CountryMaster c where a.countryId=c.Chrono and a.groupId=b.Chrono and a.type =1 "); like this in hibernate criteria example. Thanks in advance. ... View Questions/Answers

Automatic Discovery of Personal Name Aliases from the Web  February 6, 2012 at 12:47 PM
i want code for snippet extraction in web ... View Questions/Answers

Automatic Discovery of Personal Name Aliases from the Web  February 6, 2012 at 12:47 PM
i want code for snippet extraction in web ... View Questions/Answers

servlets  February 6, 2012 at 12:30 PM
how can I run java servlet thread safety program using tomcat server? please give me a step by step procedure to run the following program my program is A DEMO PROGRAM FOR THREAD SAFETY. package serv; import java.io.*; import javax.se... View Questions/Answers

in my project, i have to add scrollbars to a panel,. i need some example on it,how to doit.  February 6, 2012 at 12:01 PM
in my project, i have to add scrollbars to a panel,. i need some example on it,how to doit. Thanks In Advance ... View Questions/Answers

JSP AND SERVLET  February 6, 2012 at 11:49 AM
I want to create a login form with user name and password field,if the user is new then s/he can click on the new user hyperlink and new page will be display,and data will be updated to the database successfully,if the user is already registered then the new page will be opened with his or her na... View Questions/Answers

app crashed in ipad 2 running iOS 5.0.1  February 6, 2012 at 11:13 AM
i developed a universal application for both iPhone and iPad the application works fine when i test on my iPad. But apple has rejected it twice saying that.. "We found your app crashed in ipad 2 running iOS 5.0.1, witch is not in compliance with the App Store Review Guidelines." Can anyo... View Questions/Answers

J2ME question  February 6, 2012 at 7:34 AM
Lets say i have 2 screens. One for new user, another for existing user. Currently, the midlet contains radio boxes that allows users to choose which category are they. How do i call the screen for new user when the user chooses "new user". IM stuck at if command part ... View Questions/Answers

output  February 6, 2012 at 1:52 AM
Sir,I am experiencing some problems with the output of this program.I got some useful help this website,but the output of the program isn't producing what it should.let me explain the output below is what happen when the program is run. Hardware Items Code Description Unit ... View Questions/Answers

schedule zip  February 5, 2012 at 11:30 PM
Java Code to automatically get and zip only .txt files from folders for every 5 days and also to send the zip files to database tables ? ... View Questions/Answers

which path we have to give in order to upload a file from any where in the system  February 5, 2012 at 8:32 PM
When i am uploading an image to MySQL database in this i am to specifying a path in the code from that path only it is taking image . what i have to do in order to upload a image from any where from the system Please tell me quickly i need it ... View Questions/Answers

DMCA.com