Home Answers Questions Question and Answers


 
 

Latest Programming Questions askedAsk your question?

Adapter Class  March 9, 2011 at 5:03 PM
Hello Everybody, Can anybody help me to describe what is Adapter class and when to use this class and give a suitable example. thanks Sagar ... View Questions/Answers

Select Clause in hibernate.  March 9, 2011 at 4:34 PM
Example of select clause of hibernate ? ... View Questions/Answers

Select Clause in hibernate.  March 9, 2011 at 4:34 PM
Example of select clause of hibernate ? ... View Questions/Answers

Advertisement

Select Clause in hibernate.  March 9, 2011 at 4:34 PM
Example of select clause of hibernate ? ... View Questions/Answers

DIFFERENCE BETWEEN APPLICATION SERVER AND WEB SERVER  March 9, 2011 at 3:46 PM
What is the difference between application server and web server ... View Questions/Answers

private constructor  March 9, 2011 at 3:33 PM
can we extend from a class which is having private constuctor ... View Questions/Answers

Java Script  March 9, 2011 at 2:06 PM
I want to display an error message for the validation of email at the top of the page in red font i want to use java scripts but i dont want to use alert box what i need to do ... View Questions/Answers

Calculate an average Age of my Class?  March 9, 2011 at 2:06 PM
average age of my class? ... View Questions/Answers

Average Age of my Class?  March 9, 2011 at 2:04 PM
average age of my class? ... View Questions/Answers

S.P  March 9, 2011 at 2:00 PM
TY very much this coding. this is very used for me. ... View Questions/Answers

inserting picture in ms access  March 9, 2011 at 1:56 PM
hi i am sanatan, how to insert picture in ms access by jsp. ... View Questions/Answers

Code for Pattern  March 9, 2011 at 1:24 PM
* * * * * * * * * * * Please write the code of above program and please do not use in this string tokennizer, string buffer etc i mean to say that please use very simple method ... View Questions/Answers

Code for Pattern  March 9, 2011 at 1:23 PM
* * * * * * * * Please write the code of above program and please do not use in this string tokennizer, string buffer etc i mean to say that please use very simple method ... View Questions/Answers

Code for Pattern  March 9, 2011 at 1:22 PM
* *** * * Please write the code of above program and please do not use in this string tokennizer, string buffer etc i mean to say that please use very simple method ... View Questions/Answers

Code for Pattern  March 9, 2011 at 1:21 PM
1 1 12 12 123 123 1234512345 Please write the code of above program and please do not use in this string tokennizer, string buffer etc i mean to say that please use very simple method ... View Questions/Answers

Code for Pattern  March 9, 2011 at 1:20 PM
1 121 2342 45674 6789106 Please write the code of above program and please do not use in this string tokennizer, string buffer etc i mean to say that please use very simple method ... View Questions/Answers

Code for Pattern  March 9, 2011 at 1:19 PM
1 23 345 5678 891011 Please write the code of above program and please do not use in this string tokennizer, string buffer etc i mean to say that please use very simple method ... View Questions/Answers

Coder for Pattern  March 9, 2011 at 1:17 PM
1 12 123 1234 12345 please write the program of above pattern and do not use string tokennizer string buffer i mean to say that please use very simple method Thanks ... View Questions/Answers

Delete and edit data in xml file using JSP  March 9, 2011 at 12:49 PM
I want to know how to delete and edit data from an XML file by use of JSP. I have XML file having tasks(root node),task id,project,date(as child nodes). I have many tasks stored in the xml file,I want to delete and edit some tasks using task id then how can i do it in JSP.Please help with exampl... View Questions/Answers

Steps to create simple EJb 2.1 (Session Bean) and deploy on websphere application server 6.0,  March 9, 2011 at 12:27 PM
Hi friends, I am trying to create simple hello world session bean having Java client. but i am unable to run it on Websphere application server. can any one please send me steps how i create EJB 2.1 and deploy it on WAS 6.0. I searched on this forum also i got some example but i ... View Questions/Answers

count in hibernate .  March 9, 2011 at 12:15 PM
How to implements count in hibernate ? ... View Questions/Answers

Jsp error when i run this a jsp file  March 9, 2011 at 12:05 PM
hi I got this error when i run the jsp file in IDE and outside also please help me java.lang.NullPointerException org.apache.jsp.insertjsp.jspInit(insert_jsp.java:22) org.apache.jasper.runtime.HttpJspBase.init(HttpJspBase.java:52) org.apache.jasper.servlet.Jsp... View Questions/Answers

Servlets  March 9, 2011 at 12:00 PM
What is the filter code to authenticate the user? ... View Questions/Answers

HQL  March 9, 2011 at 11:50 AM
What is the HQL in hibernate ? Explain the use of HQL. ... View Questions/Answers

collections  March 9, 2011 at 11:31 AM
1.Create class Dog with instance variable breed and height. Create 5 instances of Dog and add it to the Treeset dogSet. The Treeset should be in sorted order of height using a Comparator interface. Iterate through the Treeset using a for-each loop and print the height and breed of each Dog. ... View Questions/Answers

collections  March 9, 2011 at 11:30 AM
1.Create an ArrayList of Object Planet with instance variable name and colour. Add 5 planets to the ArrayList planetList. Sort the ArrayList in ascending order of name and descending order of colour using comparator interface. (Note: Do not use comparable Interface) ... View Questions/Answers

understanding buttons :JSP random no program  March 9, 2011 at 11:18 AM
I hav java random no generator program but i need to implement it in JSP such that page generates random no between 100 and 200 on loading and on clicking submit button it ives message box or just shows on page "no is less"if it less then 150 else shows "no is greater" please help me to understan... View Questions/Answers

strings  March 9, 2011 at 11:18 AM
1.Create a class StringDemo. Use the methods available in String object to display the mentioned output without using concat() method String s1 = ??Hello?? Output : hellO --- WOrldHellO For the above String s1, Display the same output using Chained methods ... View Questions/Answers

strings  March 9, 2011 at 11:17 AM
1.Create a class named BuilderDemo. Use the string builder method to get the following output from string s4 Consider: String s4 = ??Java is an OO ?? Output : language OO na not si avaJ ??? Consider: String s5 = ?? Todays Date is = ?? Output : Todays Date = 7/3/2011 ... View Questions/Answers

strings  March 9, 2011 at 11:16 AM
1.Create a class named BuilderDemo. Use the string builder method to get the following output from string s4 Consider: String s4 = ??Java is an OO ?? Output : language OO na not si avaJ ??? Consider: String s5 = ?? Todays Date is = ?? Output : Todays Date = 7/3/2011 ... View Questions/Answers

files  March 9, 2011 at 11:15 AM
1.Create a class called ObjectTest. Use the ObjectInputStream and ObjectOutputStream classes to read and write from the file ??obj.txt??. Create variables and initialize them with the values to be written to the file. Once it is written, use ObjectInputStream to read those values from the file.... View Questions/Answers

files  March 9, 2011 at 11:15 AM
1.Create a class called CopyFromFile. Use the character stream classes to first read from the file ??employee.txt?? and write it to the ??copy.txt?? file? Now Convert the unbuffered stream into a buffered stream using the wrapping idiom. ... View Questions/Answers

files  March 9, 2011 at 11:14 AM
1.Create a class called ReadFromFile. Create a file object and use the file object to create an input stream object to read the file ??employee.txt?? (use byte stream classes).If the file does not exists an exception should be thrown. An error message along with the path of the file(use the get... View Questions/Answers

How to create one xml file from existing xml file's body?  March 9, 2011 at 11:11 AM
Hi, i'm working with content optimization system.I want to know how we can take all data from an xml doc's body to develope another xml with that content.I'm using JDOm in my project.Could anybody help me to know about this as i'm a beginner in programming. ... View Questions/Answers

HTTP Status 500 -  March 9, 2011 at 11:08 AM
Hi, I am new to jsp... Installed Tomcat 5.5... Built in examples works good... I m trying to run simple jsp program which i wrote. i can see these errors... HTTP Status 500 - type Exception report message description The server encountered an internal... View Questions/Answers

strings  March 9, 2011 at 10:55 AM
1.Write a class Calculator, that will take two command line double arguments and â??+â??,â??-â??,â??/â?? or â??*â??. Signal an error if the user does not give the arguments. In the class declare two Double type instance variables. Based on arg3, perform the co... View Questions/Answers

Javascript  March 9, 2011 at 10:49 AM
in the web form the phonenumber field should be like this format xxx-xxx-xxxx, i want the code in javascript. as a function. ... View Questions/Answers

edit the flash video file using html5  March 9, 2011 at 10:46 AM
hi iam vivek i have a flash file i want to edit it with html5 please reply ... View Questions/Answers

how to develope an xml document with existing documents's body content?  March 9, 2011 at 10:43 AM
Hi, i'm working with content optimization system.I want to know how we can take all data from an xml doc's body to develope another xml with that content.I'm using JDOm in my project.Could anybody help me to know about this as i'm a beginner in programming. ... View Questions/Answers

installation error  March 9, 2011 at 9:58 AM
hi, m getting an error like " semicolon found in the selected path".how to resolve this error? during installation of jdk 1.6 ... View Questions/Answers

files  March 9, 2011 at 9:01 AM
1.Create a class StringDemo. Use the methods available in String object to display the mentioned output without using concat() method String s1 = â??Helloâ?? Output : hellO --- WOrldHellO For the above String s1, Display the same output using Chained methods ... View Questions/Answers

servelet connectivity with oracle using procedure  March 9, 2011 at 3:43 AM
kindly elaborate how servlet code connect to oracle br using procedure ... View Questions/Answers

getters and setters  March 9, 2011 at 3:36 AM
Create a Pet class that contains the following properties: A species (cat, dog, hamster, etc) an age, and an age_factor that represents the average lifespan of the animal compared to humans. (for example, the average lifespan of a hamster is about 2 years. the average human lives a little longer ... View Questions/Answers

in order to create jsp and servlet code to add,delete,edit,list of persons in eclipsejavaee  March 9, 2011 at 3:11 AM
in order to create jsp and servlet code what all files we need to create in eclipse --dynamic web project ... View Questions/Answers

bird feeder system code  March 9, 2011 at 2:27 AM
i want to know about "bird feeder a business solution system in java" please help me for details. how can develop this system please tell me. ... View Questions/Answers

bird feeder  March 9, 2011 at 2:25 AM
i want to know about "bird feeder a business solution system in java" please help me for details. how can develop this system please tell me. ... View Questions/Answers

java question  March 8, 2011 at 9:51 PM
i have a string like "My name is arvind.i live in bangalore.i study in college.".the problem is that i hav to break this string into three seperate lines... ... View Questions/Answers

To make java exe or runnable file  March 8, 2011 at 8:55 PM
Helo sir i make a java application.I need to help how run application direct in pc i.e how it packaged, .exe file or setup file. ... View Questions/Answers

Erron while  March 8, 2011 at 8:34 PM
Hi, i'm doing a project regarding xml. I want to extract all nodes from body of existing xml doc to make another xml with that data.Here is my coding and error showing on that coding.Could anybody help to know my error? coding: public class Test { public st... View Questions/Answers

MySql date problem  March 8, 2011 at 8:09 PM
with a mysql query, how can you get records of previous week dynamically, starting from sunday and ending on saturday? I don't want records from current date, just the previous week. ... View Questions/Answers

PHP  March 8, 2011 at 7:24 PM
1)Is 5&&6 equal to true? 2)Is there a difference between true and TRUE ? ... View Questions/Answers

Map java Object to database.  March 8, 2011 at 7:10 PM
How do you map Java Objects with Database tables? ... View Questions/Answers

delete() method of hibernate  March 8, 2011 at 6:58 PM
Define the use of delete() method of hibernate? Example. ... View Questions/Answers

Generator in Hibernate  March 8, 2011 at 6:12 PM
What is the generator in hibernate? ... View Questions/Answers

strings  March 8, 2011 at 6:00 PM
1.Create a class StringDemo. Use the methods available in String object to display the mentioned output without using concat() method String s1 = ??Hello?? Output : hellO --- WOrldHellO For the above String s1, Display the same output using Chained methods ... View Questions/Answers

files  March 8, 2011 at 5:58 PM
1.Create a class called ObjectTest. Use the ObjectInputStream and ObjectOutputStream classes to read and write from the file â??obj.txtâ??. Create variables and initialize them with the values to be written to the file. Once it is written, use ObjectInputStream to read those values from t... View Questions/Answers

Update value  March 8, 2011 at 5:52 PM
How to update value of database using hibernate ? ... View Questions/Answers

Simple JSP program  March 8, 2011 at 5:51 PM
create a simple jsp page in which number is to be entered by user in jsp page and submit button clicked.If number entered is greater then 100,then message box "no is greater" elseif less "no is lesser" ... View Questions/Answers

Pls help me...........  March 8, 2011 at 5:33 PM
how to use the text file as input to insert the values injdbc? ... View Questions/Answers

error in sample example  March 8, 2011 at 5:22 PM
hi can u please help me XmlBeanFactory class is deprecation in java 6.0 so, pls send advance version class ... View Questions/Answers

sir, how to convert excel file to csv file using java? please send me sample code.  March 8, 2011 at 5:08 PM
please send me sample code for converting excel file into csv file uisng java. ... View Questions/Answers

plz check my codings are correct or not...There is an error..i cant find it..  March 8, 2011 at 5:04 PM
import java.util.Scanner; public class Student { private String indexNo; private String gender; private char initial; private int mark1; private int mark2; private int mark3; private int max; public Student(String newIndexNo, String newGender, char newInitia... View Questions/Answers

Filenet P8 Migration  March 8, 2011 at 4:10 PM
how to migrate filnet IS to Filnet P8 ... View Questions/Answers

Feature of Hibernate3  March 8, 2011 at 3:33 PM
What is the main feature of Hibernate3? ... View Questions/Answers

Package  March 8, 2011 at 3:22 PM
Create a Package named com.example.code. Write few classes, interface and abstract classes. Now create a class names PackageDemo that uses the classes of this package from other package ... View Questions/Answers

Package  March 8, 2011 at 3:22 PM
Create a Package named com.example.code. Write few classes, interface and abstract classes. Now create a class names PackageDemo that uses the classes of this package from other package ... View Questions/Answers

Exception  March 8, 2011 at 3:18 PM
1.Create a class Assertion. Create an assertion that passes or fails based on whether a command line argument has been provided. ... View Questions/Answers

Exception  March 8, 2011 at 3:15 PM
1.Create a class Errorhandle3. Write code that demonstrates how handle and declare rules are different for runtime exceptions and checked exceptions. ... View Questions/Answers

Core Java  March 8, 2011 at 3:14 PM
Write a program to accept the given date in DD/MM/YYYY format and convert the same based on user selection mentioned below? 1.MM/DD/YYYY format 2.YYYYMMDD format... ... View Questions/Answers

Presistace classes in hibernate  March 8, 2011 at 3:12 PM
Explain the persistence class in hibernate? ... View Questions/Answers

Core Java  March 8, 2011 at 3:12 PM
Write a program to read the below data from a file and check whether the period is partial or full month? 03/01/2011 ?? 03/28/2011 03/01/2011 ?? 03/31/2011 02/01/2011 ?? 02/28/2011 02/01/2011 ?? 03/01/2011 ... View Questions/Answers

Core Java  March 8, 2011 at 3:09 PM
Write a Program to add given number of days to the current system date and display the same? ... View Questions/Answers

php  March 8, 2011 at 2:53 PM
what is the script? ... View Questions/Answers

jsp  March 8, 2011 at 2:30 PM
Dear deepak, wat is the purpose of converting jsp into servlet and how the process takes place.. with regards, praveen ... View Questions/Answers

Ajax Dropdown  March 8, 2011 at 1:51 PM
hi I have One Dropdown that contains 2 options assume A and B,if i select A option then samepage one more Dropdown is their it should display values in german language using DWRUtil Parameter values in ajax. Only display should be in german but, values internally work same ... View Questions/Answers

calender  March 8, 2011 at 1:40 PM
to calculate date of expiry if date of manufacture is given,considering it may be leap year or may not. ... View Questions/Answers

Action and ActionSupport  March 8, 2011 at 1:05 PM
Difference between Action and ActionSupport ? ... View Questions/Answers

Hibernate Query Language  March 8, 2011 at 12:54 PM
Explain Hibernate Query Language(HQL) of Hibernate? ... View Questions/Answers

Code  March 8, 2011 at 12:47 PM
code for connecting c lang to database.. ... View Questions/Answers

intercepter  March 8, 2011 at 12:45 PM
Explain interceptors? Which interceptor is responsible for setting action's JavaBean properties? ... View Questions/Answers

While creating a jar how to add MySQL database to project  March 8, 2011 at 12:44 PM
Hi, Please tell me how to attach MySQL database to the Java project while building a jar or their is any other process? ... View Questions/Answers

how to set values in object using java and what are the ways?  March 8, 2011 at 12:41 PM
How to set values in object using java ?what are the ways ... View Questions/Answers

Not able to display jtable at runtime  March 8, 2011 at 12:01 PM
Hello, can anyone please help me. I am trying to create a dynamic table with checkboxes. Data are accessed from database. But it is not creating the table at runtime. It retrieves data from database properly. But I am not getting why it is not creating the table in a specified Panel (panT... View Questions/Answers

query regarding auto increment primary key  March 8, 2011 at 12:00 PM
i want to use s1,s2.... as my auto increment primary key.cant i do this in mysql? ... View Questions/Answers

Dirty checking feature of hibernate.  March 8, 2011 at 11:58 AM
What is the dirty checking feature of Hibernate? ... View Questions/Answers

Interface  March 8, 2011 at 11:55 AM
1.Create an interface names ShapeInterface that has two methods and one constant and an abstract class named ShapeAbstract that has two instance variable, one abstract and one non-abstract method. Create a concrete class a.Rectangle that uses the interface b.Circle that uses the interface and abs... View Questions/Answers

Interface  March 8, 2011 at 11:55 AM
1.Create an interface names ShapeInterface that has two methods and one constant and an abstract class named ShapeAbstract that has two instance variable, one abstract and one non-abstract method. Create a concrete class a.Rectangle that uses the interface b.Circle that uses the interface and abs... View Questions/Answers

jsp version?  March 8, 2011 at 11:50 AM
what is the latest version of jsp? ... View Questions/Answers

php,javascript,html  March 8, 2011 at 11:49 AM
Hi, thank u for answered the previous question. one more question: when i register the student details, unique register number should be created and incresed automatically for every student based on the submit button. ... View Questions/Answers

Produces XML file but format not correct for storing data using JSP and XML  March 8, 2011 at 11:46 AM
hii I have created a project using JSP and XML as database to store data entered by user in XML file ,It stores data entered in XML file but not in proper format .The root element (which is unique) creates again and again when data is entered in XML file. XML file created : ... View Questions/Answers

struts.xml in struts2  March 8, 2011 at 11:44 AM
What is the struts.xml file ? Who it is loads? ... View Questions/Answers

Session Interface in hibernate.  March 8, 2011 at 11:22 AM
Define the session interface? ... View Questions/Answers

Session Factory  March 8, 2011 at 11:02 AM
Define the session factory interface in hibernate? ... View Questions/Answers

project in JSP and XML(to store data)  March 8, 2011 at 10:59 AM
I need to complete an assignment in JSP and using XML as Database ,Please help me to complete this assignment.Ill be very very thankful to you,i am new to JSP.Please provide full code if possible,ineed to understand this.making this project from last2 weeks but still not worked.If not full code p... View Questions/Answers

java.lang.ClassNotFoundException: com.mysql.jdbc.Driver  March 8, 2011 at 10:56 AM
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) { try { Class<?> forName = Class.forName("com.mysql.jdbc.Driver"); Connection conn = DriverManager.getConnection("jdbc:mysql://localho... View Questions/Answers

how to insert data from netbeans into databse  March 8, 2011 at 10:47 AM
how to insert data from netbeans into databse ... View Questions/Answers

hibernate image Upload  March 8, 2011 at 10:36 AM
Sir, I had posted question regarding upload image, th answer you had given is using SQL, but I am using Hibernate to insert data in the same table where I want to insert image. Plz hlp me. Thanks ... View Questions/Answers

how to give link from jsp to jsp page  March 8, 2011 at 10:16 AM
hi this is my following code plz tally this first. function getButtonValues(str,id) { alert("getButtonValues"); if(str=='delete') { alert("in delete" +id); document.forms[0].action="Delete?str="+str+"&id="+id; } if(str=='modify') ... View Questions/Answers

how to give link from jsp to jsp page  March 8, 2011 at 10:15 AM
hi this is my following code plz tally this first. function getButtonValues(str,id) { alert("getButtonValues"); if(str=='delete') { alert("in delete" +id); document.forms[0].action="Delete?str="+str+"&id="+id; } if(str=='modify') ... View Questions/Answers

java  March 8, 2011 at 9:39 AM
what is java ... View Questions/Answers

DMCA.com