Home Answers Questions Question and Answers


 
 

Latest Programming Questions askedAsk your question?

enum  May 30, 2012 at 10:02 PM
enum concept is developed based on class concept,but we can extend any class from our class,but why it is not passiable to extend by enum? every class in java directly and indirectly child class of Object class,every enum indirectly child class of java.lang.Enum? ... View Questions/Answers

what is oops in java  May 30, 2012 at 8:52 PM
what is oops in java. ... View Questions/Answers

what is oops in java  May 30, 2012 at 8:52 PM
what is oops in java. ... View Questions/Answers

Advertisement

Case-insensitive search using Hibernate Query Language(HQL).  May 30, 2012 at 7:33 PM
What is Case-insensitive search using Hibernate Query Language? ... View Questions/Answers

OR operator in hibernate.  May 30, 2012 at 7:32 PM
How to use OR operator in hibernate? ... View Questions/Answers

AND operator in hibernate.  May 30, 2012 at 7:30 PM
How to use AND operator in hibernate? ... View Questions/Answers

Hibernate criteria disjunction.  May 30, 2012 at 7:27 PM
What is criteria disjunction in hibernate? ... View Questions/Answers

Hibernate criteria conjunction..  May 30, 2012 at 7:22 PM
What is criteria conjunction in Hibernate? ... View Questions/Answers

DataSource in hibernate.  May 30, 2012 at 7:20 PM
What is DataSource in hibernate? ... View Questions/Answers

DriverClass hibernate mysql connection.  May 30, 2012 at 7:17 PM
What is DriverClass in Hibernate using mysql connection? ... View Questions/Answers

How could I use Socket in my application?  May 30, 2012 at 6:49 PM
I created an application dealing with the management of a supermarket using Hibernate and Swing. I found out today that I have to use also Socket and I don't know exactly what I could do with it in my project. Sorry for being too general. But maybe someone has an idea. Any idea would be really he... View Questions/Answers

java Problem  May 30, 2012 at 5:57 PM
I want to create a binary tree for displaying members in Downline. i am creating a site for MLM(Multi-Level MArketing). tree must be dynamically populated from database. is there any help for me. Thanks in advance ... View Questions/Answers

I want to store the value of local variable into Global variable  May 30, 2012 at 5:51 PM
<%=cnt%>=x; is it a valid Statement ... ???? ... View Questions/Answers

open document  May 30, 2012 at 5:01 PM
open a word document using jsp ... View Questions/Answers

open word document  May 30, 2012 at 4:54 PM
how to open a word document ?? ... View Questions/Answers

open word document  May 30, 2012 at 4:54 PM
how to open a word document ?? ... View Questions/Answers

open word document  May 30, 2012 at 4:54 PM
how to open a word document ?? ... View Questions/Answers

extracting phone number n storing in excel  May 30, 2012 at 4:44 PM
i need a program to open a doc file n extract phone numbers from it and store it in a excel sheet?? plz do reply and help me out with the problem ... View Questions/Answers

extracting phone number n storing in excel  May 30, 2012 at 4:44 PM
i need a program to open a doc file n extract phone numbers from it and store it in a excel sheet?? plz do reply and help me out with the problem ... View Questions/Answers

retrieve in xml file in struts2  May 30, 2012 at 4:14 PM
i am using struts2 and trying to populate the text box for the corresponding number entered by retrieving it from properties file using ajax. i now put the values from properties file to map inside the bean class and based on the number entered i retrieve the name. now how can i get back the valu... View Questions/Answers

java  May 30, 2012 at 2:56 PM
I have good knowledge of java core can you please give me some coding problem to solve that in order to give me money i am very poor having pc and internet connection only,or can you provide me a chance to work in you company. ... View Questions/Answers

can i know the error in this code... am unable to run this code  May 30, 2012 at 2:26 PM
class DemoArray { public static void main(String args[]) { int arr[]={12,13,14,15}; int n=arr.lenght; System.out.println("length of array:"+n); for(int i=0;i System.out.println(arr[i]); } } ... View Questions/Answers

java script  May 30, 2012 at 12:35 PM
I want to display set of radio buttons after i select one option of the combobox ... View Questions/Answers

login page code in asp.net  May 30, 2012 at 12:13 PM
i need front end and backend code for login page in vb asp.net using sql server....having code for submit button in it. ... View Questions/Answers

please any one can help me to write a code for this question?  May 30, 2012 at 11:22 AM
Q 1) In a class first day 25 students are joined. After two days that total students will increased to 60. We can develop a program by using ArrayList concept? ... View Questions/Answers

how to create month wise serial number in java?  May 30, 2012 at 10:35 AM
Ex: For 1)January-serial number is 1/001,1/002,1/003 etc. ... View Questions/Answers

how to create customise shortcut keys in jsp?  May 30, 2012 at 10:30 AM
I want to use shortcut keys in my application. keys like' EX: 1)S-Slag 2)ex-Exposure etc. ... View Questions/Answers

how to browse folder and directory in jsp  May 30, 2012 at 10:11 AM
how to browse folder and directory in my jsp page.i have done my coding part for browsing directory but dont know how to get files after that.and also i want to show limited directories based on last modified date for eg:if the directory contains 10 folders i need to show 5 folders based on last... View Questions/Answers

jsp webapplication  May 30, 2012 at 7:11 AM
hai Good mring to all ... View Questions/Answers

jsp  May 30, 2012 at 7:08 AM
hai good morning all jsp beginner myself is sathishkumar i am developing a web application jsp. in this application i generate id card.how can u autogenerate the id in jsp.if u have sample source code available send me.post me sample source code ... View Questions/Answers

Iphone call  May 30, 2012 at 6:32 AM
Do you have other method to make a call on Iphone,without openUrl ... View Questions/Answers

enum  May 29, 2012 at 10:23 PM
why we are not created child for enum type? why we are not extending any from enum? ... View Questions/Answers

why alert box is not appearing in servlets...?  May 29, 2012 at 7:58 PM
//example.java import java.io.*; import javax.servlet.*; import javax.servlet.http.*; public class adduser extends HttpServlet { public void init(ServletConfig config) throws ServletException { super.init(c... View Questions/Answers

Hibernate: ORDER BY using Criteria API.  May 29, 2012 at 6:50 PM
How to display record in order using Criteria API? ... View Questions/Answers

Case-insensitive ordering using Hibernate Criteria.  May 29, 2012 at 6:41 PM
What is Case-insensitive ordering in Hibernate Criteria? ... View Questions/Answers

Case-insensitive equals using Hibernate Criteria.  May 29, 2012 at 6:37 PM
How to use Case-insensitive equals with Hibernate Criteria? ... View Questions/Answers

Hibernate Criteria Case Insensitive Search.  May 29, 2012 at 6:28 PM
How to use Case Insensitive Search in Hibernate? ... View Questions/Answers

How to create a JTable cell containing Image hyperlink?  May 29, 2012 at 6:01 PM
I'm trying to find out how to create a JTable cell which contains Image, which should be clickable like an hyperlink. I'm able to load Image using default image renderer. Can somebody explain me how to add hyperlink (mouse listener) for the each image (cell) in the last column of my ta... View Questions/Answers

i am unable to identify the error in my code  May 29, 2012 at 5:59 PM
class Program { public static void main(String[] args) { BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); System.out.println("enter a character"); char ch=(char)br.read(); System.out.println("the entered character is:"+ch); }... View Questions/Answers

i am unable to identify the error in my code  May 29, 2012 at 5:59 PM
class Program { public static void main(String[] args) { BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); System.out.println("enter a character"); char ch=(char)br.read(); System.out.println("the entered character is:"+ch); }... View Questions/Answers

difference between enum and final class?  May 29, 2012 at 4:11 PM
what is the difference between enum and final class in java? ... View Questions/Answers

How to Assign struts2 property to jsp variable  May 29, 2012 at 3:52 PM
In Struts2 <s:property value='count'/> I wants to assign <% int count = %><s:property value='count'/><% ; %> But its not working. ... View Questions/Answers

How to Assign struts2 property to jsp variable  May 29, 2012 at 3:52 PM
In Struts2 <s:property value='count'/> I wants to assign <% int count = %><s:property value='count'/><% ; %> But its not working. ... View Questions/Answers

Uploading a Software and storing in the database  May 29, 2012 at 12:33 PM
I want to upload a software(may be of maximum 20mb) through JSP, and store it in the database. The coding present in the site for uploading and storing in the database, is not working for softwares of bigger size. It just does it for small files. Please help me with the code for uploading... View Questions/Answers

Read the file Contents  May 29, 2012 at 11:50 AM
Ravi Raj,Vijay45Shankar,234 Guna,345,Meet me,654,Cow Read file contents and Print the no.of words and Numbers./p> Thanks, Dinesh Ram ... View Questions/Answers

arrays  May 29, 2012 at 11:09 AM
write a program that reads in a text typed in by the user and produces a list of disinct words in alphabetical order and how many times each word appears in the passage. ... View Questions/Answers

arrays  May 29, 2012 at 11:09 AM
write a program that reads in a text typed in by the user and produces a list of disinct words in alphabetical order and how many times each word appears in the passage. ... View Questions/Answers

arrays  May 29, 2012 at 11:09 AM
write a program that reads in a text typed in by the user and produces a list of disinct words in alphabetical order and how many times each word appears in the passage. ... View Questions/Answers

jdk  May 29, 2012 at 9:01 AM
which is the latest version of jdk and how can i get it to develope applications? ... View Questions/Answers

Oracle Certified Java Programmer Assistance  May 28, 2012 at 10:10 PM
Hi all I wanted to know that I have recently completed my graduation and heading towards Post Graduation. I wanted to know that if I pass the OCJP certification will it be useful after 3 years. Or do i need to pass the latest OCJP again as my post graduation course will be of 3 years? Please help... View Questions/Answers

Hibernate criteria count.  May 28, 2012 at 6:28 PM
How do we count rows using criteria in hibernate? ... View Questions/Answers

Hibernate criteria count.  May 28, 2012 at 6:27 PM
How do we count rows using criteria in hibernate? ... View Questions/Answers

JTable populate with resultset.  May 28, 2012 at 6:15 PM
How to diplay data of resultset using JTable? ... View Questions/Answers

how to save html form data into .csv file using only jsp.  May 28, 2012 at 5:13 PM
Dear all, I am developing a website only using jsp and html. i need to save the form data into a .csv file using jsp. can anyone give me any sample solution or tutorial in this regard. thanks in advance mehedi ... View Questions/Answers

sorting folders automatically  May 28, 2012 at 4:10 PM
i want to sort folders automatically,let say the folders to be displayed in a webpage(hyperlinked to its resource).the page should display only the folder that belongs to last 15 days.it should be done automatically.whenever a folder is created it should automatically get updated. ... View Questions/Answers

Ajax not working in jsp  May 28, 2012 at 3:22 PM
I'm using Netbean, Ajax validation in the following code is not working the code succesfully run for first UID validation adn also for ee-mail but does not enter if else for firstname field please help me out.. The files used are a zxml.js A IncrementalFormValidation.js function v... View Questions/Answers

How to integrate core java with Hibernate  May 28, 2012 at 3:10 PM
How to integrate core java with Hibernate How to integrate core java with Hibernate ... View Questions/Answers

Login Form  May 28, 2012 at 1:57 PM
I have 8 jsp pages.Each of them has three columns:Left,Middle and Right.The left column consists of menu while the right column consists of News and Events. These two are same for every page.There's also an image of +,on clicking which a login form appears. Only the middle column is diff... View Questions/Answers

Login Form  May 28, 2012 at 1:57 PM
I have 8 jsp pages.Each of them has three columns:Left,Middle and Right.The left column consists of menu while the right column consists of News and Events. These two are same for every page.There's also an image of +,on clicking which a login form appears. Only the middle column is diff... View Questions/Answers

Arrays, loops and string handling  May 28, 2012 at 1:04 PM
How would i go about in creating a program to mark and grade a set of multiple choice test results. this is a console program that uses JOptionPane dialog boxes as well. Read a set of 10 correct answers using JOptionPane dialog box and store the entire answer as on string in one variable.... View Questions/Answers

how I make the numbers in descending order ?  May 28, 2012 at 12:28 PM
public class Quiz1 { public static void main (String [] abdo){ Scanner sc = new Scanner(System.in); int number [] = new int [20]; int num =2; for(int i =0; i< number.length; i++){ System.out.print("Insert value number"+(i+1)+":"); number[i]= sc.nextInt(); ... View Questions/Answers

i need a school appication using struts frame work with oracle 10g using myeclipse6.0  May 28, 2012 at 12:22 PM
hi i need a school apllication using struts frame work backend 10g xe using myeclipse 6.0 ... View Questions/Answers

login dao file for referece (source code for reference)  May 28, 2012 at 3:35 AM
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <tit... View Questions/Answers

login controller.servlet file.. (good coding stuff for reference)  May 28, 2012 at 3:34 AM
package com.tcs.ilp.controller; import java.io.*; import java.util.*; import com.tcs.ilp.model.*; import java.sql.*; import java.io.IOException; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet... View Questions/Answers

delete retailer jsp file (sir..is this a good logic.. jsp file is useful for what purpose)  May 28, 2012 at 3:29 AM
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <tit... View Questions/Answers

view jsp file (reference file). is the way of coding good ?  May 28, 2012 at 3:25 AM
<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> ... View Questions/Answers

java validations  May 28, 2012 at 3:11 AM
<!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" content="text/html; charset=ISO-8859-1"> <title>Insert title here</title> &l... View Questions/Answers

RetDAO.java (part2) .. will give good points to everyone. Is this logic good?  May 28, 2012 at 2:48 AM
public static int delete(Connection conn,String ret_id) throws Exception { st=conn.createStatement(); rs=st.executeQuery("select * from retailer where retailer_id='"+ret_id+"'"); rs.next(); String s1=rs.getString(1); ... View Questions/Answers

RetDAO.java (part1) ..reference. Is this logic good?  May 28, 2012 at 2:43 AM
public static int searchDelete(Connection conn,String ret_id) throws Exception { //System.out.println(ret_id); st=conn.createStatement(); //System.out.println("Where"); ResultSet rs=st.executeQuery("select * from RETAILER where RETAILERID='"+ret... View Questions/Answers

RetDAO.java (part1) ..reference. Is this logic good?  May 28, 2012 at 2:43 AM
public static int searchDelete(Connection conn,String ret_id) throws Exception { //System.out.println(ret_id); st=conn.createStatement(); //System.out.println("Where"); ResultSet rs=st.executeQuery("select * from RETAILER where RETAILERID='"+ret... View Questions/Answers

RetController.java (do get) (my file for reference for a test.. IS LOGIC good Enough ?  May 28, 2012 at 2:32 AM
try { Connection conn=Create_Connection.conOpen(); System.out.println(conn); String submit=request.getParameter("submit"); System.out.println(submit); if(submit.equals("View")) { try { Arr... View Questions/Answers

The Unix error  May 28, 2012 at 12:27 AM
var a=document.check.username.value; if(a=="" ) { alert("Enter a valid UserName"); return false; } if(!isNaN(a) ) { alert("Enter a valid UserName"); return false; } var b=document.check.password.value; if(b=="") { { ... View Questions/Answers

how to create a xml page  May 28, 2012 at 12:10 AM
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta name="Description" content="Information archi... View Questions/Answers

how to use ajax in html file  May 27, 2012 at 11:56 PM
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta name="Description" content="Information archi... View Questions/Answers

maria sharapova  May 27, 2012 at 11:48 PM
import java.sql.*; import java.util.ArrayList; import javax.servlet.RequestDispatcher; public class MyHelper { static Connection conn=null; static Statement st=null; static ResultSet rs=null; static String password=null; public static ArrayList<Ret... View Questions/Answers

Printing 2 arrays  May 27, 2012 at 11:27 PM
Hi, I have 2 arrays: String [] head = {"Name", "Date of birth", "PPS number"}; String [] personal= {value1, value2, value3}; I want this 2 arrays to be printed out in the following manner: head[0] tab personal[0] head[1... View Questions/Answers

Apache Server Running But project not deploying on server?  May 27, 2012 at 10:03 PM
May 27, 2012 7:19:23 AM org.apache.catalina.core.AprLifecycleListener init INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was no t found on the java.library.path: C:\Program Files (x86)\Apache Softwar... View Questions/Answers

add text box and select list dynamically and get its value to store it into database using jsp request parameter  May 27, 2012 at 9:25 PM
its very helpful when you have only dynamically added text field but want code to retrive value of dynamically added select box also into next jsp page plz reply me as early as posssible ... View Questions/Answers

MySQL LEFT OUTER JOIN  May 27, 2012 at 7:27 PM
Hi There, I need to perform LEFT OUTER JOIN on 2 tables. Trans_type tt Trans t I used the below MySQL query. SELECT tt.transtypename, IFNULL(SUM(t.transamt),0) FROM transtype tt LEFT OUTER JOIN trans t ON tt.tran... View Questions/Answers

how to connect jdbc  May 27, 2012 at 5:55 PM
package com.tcs.ilp.Try.Controller; import java.io.IOException; import java.io.PrintWriter; import java.util.ArrayList; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServlet... View Questions/Answers

If-else not working  May 27, 2012 at 9:50 AM
<%@ page contentType="text/html; charset=utf-8" language="java" import="java.sql.*" errorPage="" %> <html> <head> <title>Untitled Document</title> </head> <% Class.forName("com.mysql.jdbc.Driver"); Connec... View Questions/Answers

If-else not working  May 27, 2012 at 9:50 AM
<%@ page contentType="text/html; charset=utf-8" language="java" import="java.sql.*" errorPage="" %> <html> <head> <title>Untitled Document</title> </head> <% Class.forName("com.mysql.jdbc.Driver"); Connec... View Questions/Answers

Dynamic-update not working in Hibernate.  May 26, 2012 at 7:11 PM
Why is dynamic update not working in hibernate? ... View Questions/Answers

Update not working in hibernate.  May 26, 2012 at 7:06 PM
Update not working in hibernate. ... View Questions/Answers

Database connectivity Hibernate mysql connection.  May 26, 2012 at 6:57 PM
How to do database connectivity in Hibernate using mysql? ... View Questions/Answers

rename before uploading  May 26, 2012 at 3:16 PM
I need to change (rename)the file name/image name before uploading it so that the file gets uploaded on server with this new name. ... View Questions/Answers

save the uploading image with user specified name  May 26, 2012 at 11:56 AM
My form consists of a textbox and an upload image with submit button.When i submit the form I want to save the uploaded image in a folder with user specfied name that is with the name that is given in the textbox.please help me ... View Questions/Answers

save the uploading image with user specified name  May 26, 2012 at 11:56 AM
My form consists of a textbox and an upload image with submit button.When i submit the form I want to save the uploaded image in a folder with user specfied name that is with the name that is given in the textbox.please help me ... View Questions/Answers

Store values of dynamically generated textboxes into database  May 26, 2012 at 10:50 AM
I'm trying to create a form where the user gives number to generate textboxes. when for example the user enters 3 into textbox, three text boxes get generated in the new frame. now when the user write data into these text boxes I want it to be saved in MYSQL database. Anybody please help me int... View Questions/Answers

how to send contact detail in email  May 26, 2012 at 10:38 AM
hi...all of u.....i am work in jsp..i m new developer...i have create a my company website... than i have one problem...frnd how to send a contact form detail mail on a click submit button in jsp...pls help me.... this is my html page.... <html> ... View Questions/Answers

change the name of the image after uploading the image  May 26, 2012 at 10:17 AM
my form consists of a textbox and uploading the image.after uploading the image i want to change the name of the image with the content of the textbox before saving to the folder in the disk ... View Questions/Answers

using constructor  May 26, 2012 at 12:57 AM
all constructor for matrix class? ... View Questions/Answers

how do i write a java program for this??  May 25, 2012 at 8:23 PM
‚??Ask the user if they have a dog. If ‚??yes‚??, ask the user how old is and compute the dog‚??s age in human years. Display the output. If ‚??no‚?? ask the user their age and compute the users age in dog years. Display the output. (Use the table from as the source for your calculations. You o... View Questions/Answers

Dog years  May 25, 2012 at 8:09 PM
Ask the user if they have a dog. If "yes", ask the user how old is and compute the dog's age in human years. Display the output. if "no" ask the user their age and compute the users age in dog years. Display the output. (Use the table from the sources for your calculations. you only have to accou... View Questions/Answers

database contains a message of time  May 25, 2012 at 5:35 PM
hi i have one doubt.if the database contains a message of time 05:00 to 06:00 the same msg should be displayed as marquee in the bottom of the page.below is the example if the data base contains a message"hai" with timings 04:00 to 05:00 it shoul display from 04:00 to 05:00 as a marqu... View Questions/Answers

populating textbox value from the database using onchange function,  May 25, 2012 at 3:59 PM
hi, Everyone I have a problem regarding poulatinng the value in textbox after selecting from dropdownlist. i have a form in jsp n I created the dropdown list dynamically from the database(mysql). after selecting the value from the dropd downlist it call onchange function with the... View Questions/Answers

JMF: How trigger event when player reaches certain time playing a video?  May 25, 2012 at 2:45 PM
How to code in Java (with Java Media Framework): When the player reaches a certain time playing a video clip (for example, reaching 3.124 minutes in reproduction time), it triggers an event? ... View Questions/Answers

how to show value and percentage in piechart sections from database using jfreechart  May 25, 2012 at 2:39 PM
Hii Sir, I made a pie chart from database using jfreechart.Now I need to display the values and their percentage in the sections of the piechart.kindly help me out as i am in need of this in my live project. thnx in advance...... import java.io.IOException; import ... View Questions/Answers

book system  May 25, 2012 at 2:00 PM
i have a problem here..how can i make a system for borrowing books, which include members or non members category, books category, rent category, return category and buy category? ... View Questions/Answers

How to disable browser back and forward button after logout [in struts2 or jsp]  May 25, 2012 at 12:17 PM
How to disable browser back and forward button after logout [in struts2 or jsp] I am using window.history.forward(); function noback() { window.history.forward(); } but not working. When I click the back but... View Questions/Answers

DMCA.com