Home Answers Questions Question and Answers


 
 

Latest Programming Questions askedAsk your question?

Update value of database using hibernate.  June 11, 2012 at 5:37 PM
How to update value of database using hibernate? ... View Questions/Answers

Use of delete() method in hibernate.  June 11, 2012 at 5:31 PM
Define the use of delete() method of hibernate? ... View Questions/Answers

Why to use Session interface in Hibernate?  June 11, 2012 at 5:28 PM
Why to use Session interface in Hibernate? ... View Questions/Answers

Advertisement

add imageview to uiview  June 11, 2012 at 5:28 PM
i want to add an image to UIView background. ... View Questions/Answers

If and else if ladder  June 11, 2012 at 5:23 PM
How we can use if and else if statement? ... View Questions/Answers

Switch Statement  June 11, 2012 at 5:02 PM
How we can use switch case in java program ? ... View Questions/Answers

coolection class  June 11, 2012 at 4:01 PM
how to find maximum and minimum from a list using max & min method of collection class ... View Questions/Answers

Write an event driven program to perform the arithmetic operations as shown in the interface  June 11, 2012 at 1:09 PM
hi sir i have an assignment question, but i don't know the java programming code for that question. my question is here: Q. Write an event driven program to perform the arithmetic operations as shown in the interface arithematic operators: this is the form heading enter n1 :te... View Questions/Answers

image file upload to a web server  June 11, 2012 at 1:08 PM
Refer roseindia post http://www.roseindia.net/jsp/fileupload/Sinleupload.xhtml.shtml. It works fine on my local computer. But when I use it on a server it don't work. My server uses Apache Tomcat 5 server. How can I upload a file to the web server? ... View Questions/Answers

sending a zip file to servlet  June 11, 2012 at 12:48 PM
I have created a .zip file in a servlet on the local system(no static ip). The .zip file contains xml files. I have to send it to another servlet which is in a server(has a static ip). I have done the other way round(server to local). But, not able to send and receive from the local system to ser... View Questions/Answers

Problem about coding in ajvascript  June 11, 2012 at 11:58 AM
I created a three radio buttons in the following way How many iphone styles are present in the image? <input type="radio" name="option" id="option" value="01" /> 01<br /> <input type="radio" name="option" id="option" value="03... View Questions/Answers

different output trying to execute same java code  June 11, 2012 at 11:54 AM
i am using net beans 7 ide and java 6 to develop my java projects. i used the following coding to read value from serial port : import java.io.*; import java.util.*; import javax.comm.*; public class SimpleRead implements Runnable, SerialPortEventListener { stati... View Questions/Answers

different output trying to execute same java code  June 11, 2012 at 11:54 AM
i am using net beans 7 ide and java 6 to develop my java projects. i used the following coding to read value from serial port : import java.io.*; import java.util.*; import javax.comm.*; public class SimpleRead implements Runnable, SerialPortEventListener { stati... View Questions/Answers

different output trying to execute same java code  June 11, 2012 at 11:48 AM
i am using net beans 7 ide and java 6 to develop my java projects. i used the following coding to read value from serial port : import java.io.*; import java.util.*; import javax.comm.*; public class SimpleRead implements Runnable, SerialPortEventListener { static ... View Questions/Answers

data base  June 11, 2012 at 11:03 AM
how to connect coding in data base ? ... View Questions/Answers

simple source code for tower of hanoi in android  June 11, 2012 at 12:21 AM
may I get a source code for tower of hanoi game in android pls.If possible help me as much as possible. ... View Questions/Answers

dropdown list and text fields in php  June 10, 2012 at 10:38 PM
How could I use php to populate text fields by selecting a name of a business from dropdown list? Those text fields that will be populated by information in regards its company name, suite number, description, and opening times from a mysql database. If you can, post code in php. Also, the user w... View Questions/Answers

Using Servlets, JSP for Online Shopping  June 10, 2012 at 9:38 PM
What is wrong with my code ? JSP <form action="LoginServlet "method="post" > <table> <tr ><td>Username:</td><td><input type="text" name="Id" ></td></tr> <tr><td>Pa... View Questions/Answers

How to populate text fields using php code?  June 10, 2012 at 9:18 PM
How could I use php to populate text fields by selecting a name of a business from dropdown list? Those text fields that will be populated by information in regards its company name, suite number, description, and opening times from a mysql database. If you can, post code in php. Also, the user w... View Questions/Answers

PHP Sticky form problem  June 10, 2012 at 7:46 PM
I have done the full coding of a sticky form. It is a simple calculator. Whenever I input the value and press "add" or"minus" or "multiply"..etc..etc..and also the reset button the result does not display. Please see my coding below...and advice me what is the problem, and what it need me to done... View Questions/Answers

PHP Sticky form problem  June 10, 2012 at 7:45 PM
I have done the full coding of a sticky form. It is a simple calculator. Whenever I input the value and press "add" or"minus" or "multiply"..etc..etc..and also the reset button the result does not display. Please see my coding below...and advice me what is the problem, and what it need me to done... View Questions/Answers

Login With Drop Down, Having Departments in different table  June 10, 2012 at 4:16 PM
Hi all, I am doing a project using JSP. My Issue is..... I have two departments name Customs and Accounts in the database with different tables. I have designed the HTML page in such a way the I have a drop down list consisting of Customs and Accounts. I have user accounts of both the d... View Questions/Answers

jsp-priviledge  June 10, 2012 at 12:18 PM
how to do priviledge in jsp? ... View Questions/Answers

dynamic polymorphism  June 10, 2012 at 9:27 AM
give an example for dynamic polymorphism? ... View Questions/Answers

jsp-datagrid  June 9, 2012 at 11:26 PM
hello sir...i have one view page in which edit and delete option are there in a datagrid view and i want to show data in page wise(pagination)...with previous and next links....i am also attaching my code for your convience....plz look to it its very urgent....plz...?????? ... View Questions/Answers

jsp-datagrid  June 9, 2012 at 11:26 PM
hello sir...i have one view page in which edit and delete option are there in a datagrid view and i want to show data in page wise(pagination)...with previous and next links....i am also attaching my code for your convience....plz look to it its very urgent....plz...?????? ... View Questions/Answers

jsp-datagrid  June 9, 2012 at 11:26 PM
hello sir...i have one view page in which edit and delete option are there in a datagrid view and i want to show data in page wise(pagination)...with previous and next links....i am also attaching my code for your convience....plz look to it its very urgent....plz...?????? ... View Questions/Answers

select clause in hibernate  June 9, 2012 at 7:33 PM
Example of select clause of hibernate? ... View Questions/Answers

Method overloading in java program  June 9, 2012 at 7:17 PM
How can we use method overloading in java program? ... View Questions/Answers

Enum data type  June 9, 2012 at 5:40 PM
How can we use enum data type in java program? ... View Questions/Answers

How to set Marathi font to Label??  June 9, 2012 at 1:20 PM
Hello, I am doing one project in java-Swing Farm Management i want to set Marathi label in that so how i can? plzzzz help me its urgent........ ... View Questions/Answers

java inheritance  June 9, 2012 at 1:07 PM
problem with following code.... class Employee { int empno; String name; String edesig; Employee() { empno=0; } Employee(int eno,String ename,String ed) { empno=eno; name=ename; edesig=ed; } public void disp() { System.out.prin... View Questions/Answers

java program  June 9, 2012 at 12:38 PM
Write a program to demonstrate the concept of various possible exceptions arising in a Java Program and the ways to handle them. ... View Questions/Answers

Emulator for j2me in eclipse  June 9, 2012 at 11:41 AM
I want to run my J2ME Application in Eclipse. Its made in Netbeans IDE but want to run in Eclipse. For that I installed J2ME plug-ins but I want emulator to run the application. Please send some link for installing emulator so I can run it in Eclipse as well. Thanks in Advance. ... View Questions/Answers

inserting same data to different tables in oracle  June 9, 2012 at 8:53 AM
Hi there ...! i have to insert un,pwd, to three oracle tables, like admin, user, stud, but i want pickup these table names from a drop down list in html...is there any chance can anyone explain this solution ... View Questions/Answers

inserting same data to different tables in oracle  June 9, 2012 at 8:53 AM
Hi there ...! i have to insert un,pwd, to three oracle tables, like admin, user, stud, but i want pickup these table names from a drop down list in html...is there any chance can anyone explain this solution ... View Questions/Answers

inserting same data to different tables in oracle  June 9, 2012 at 8:53 AM
Hi there ...! i have to insert un,pwd, to three oracle tables, like admin, user, stud, but i want pickup these table names from a drop down list in html...is there any chance can anyone explain this solution ... View Questions/Answers

inserting same data to different tables in oracle  June 9, 2012 at 8:53 AM
Hi there ...! i have to insert un,pwd, to three oracle tables, like admin, user, stud, but i want pickup these table names from a drop down list in html...is there any chance can anyone explain this solution ... View Questions/Answers

inserting same data to different tables in oracle  June 9, 2012 at 8:53 AM
Hi there ...! i have to insert un,pwd, to three oracle tables, like admin, user, stud, but i want pickup these table names from a drop down list in html...is there any chance can anyone explain this solution ... View Questions/Answers

inserting same data to different tables in oracle  June 9, 2012 at 8:53 AM
Hi there ...! i have to insert un,pwd, to three oracle tables, like admin, user, stud, but i want pickup these table names from a drop down list in html...is there any chance can anyone explain this solution ... View Questions/Answers

Basic problem for Java experts  June 9, 2012 at 4:18 AM
This assignment will test your knowledge of Arrays Array searching Array sorting Array processing Specification An athletics club require a simple statistical analysis program for analysing lap speed for runners. The program should provide the following functionality Allo... View Questions/Answers

How do I change the while loop in this code to the range with range list style display page for a resultSet() in jsp?  June 9, 2012 at 2:36 AM
this is count record code <%@ page language="java" import="java.sql.*" %> <html> <head> <title>Count data from database in jsp</title> </head> <body> <table border="0" width="75%" cellspacing="0" cellpadd... View Questions/Answers

How to make phone call from web application  June 9, 2012 at 12:54 AM
I'm creating an XHTML application, which can be viewed via IPhone or Blackberry. Application needs to make call to a specific number when user clicks a particular button. Please suggest on how to do this. I'm new to this. Thanks in advance. ... View Questions/Answers

use data from database as hyperlink and pass the data in the hyperlink  June 8, 2012 at 11:38 PM
Hi Friends, I am using the data from database as hyperlink and pass the data as a parameter in the hyperlink to a servlet page. By using display table and display tag property I have displayed a column data as hyperlink. I want to pass the 1 or two colum data into the hyperlink.I have tri... View Questions/Answers

jsp-datagrid  June 8, 2012 at 11:26 PM
hello sir.....i have 20 records in my database and i am showing those data in datagrid view but now i want to show 10 data in one page and another 10 data in next page....by what way can i make previous and next option in my datagrid view with 1,2 pages....plz help me...awaiting for your response... View Questions/Answers

jsp-datagrid  June 8, 2012 at 11:26 PM
hello sir.....i have 20 records in my database and i am showing those data in datagrid view but now i want to show 10 data in one page and another 10 data in next page....by what way can i make previous and next option in my datagrid view with 1,2 pages....plz help me...awaiting for your response... View Questions/Answers

problem question please need urgent answers  June 8, 2012 at 10:06 PM
Problem Statement Given a cyclic list with elements as numbers in sorted order, write a function to insert a new element (5) into the cyclic list that maintains the sorted order of the cyclic list. Do not assume that the cyclic list is referenced by its minimal element. A perfectly cycli... View Questions/Answers

problem question please need urgent answers  June 8, 2012 at 10:06 PM
Problem Statement Given a cyclic list with elements as numbers in sorted order, write a function to insert a new element (5) into the cyclic list that maintains the sorted order of the cyclic list. Do not assume that the cyclic list is referenced by its minimal element. A perfectly cycli... View Questions/Answers

Javap Tool application  June 8, 2012 at 8:13 PM
import java.awt.*; import java.lang.reflect.*; import java.awt.event.*; import java.awt.event.WindowListener.*; class Javap extends WindowAdapter implements ActionListener{ Button b; TextArea area; TextField tf; Javap(){ Frame f=new Frame(); Label l=new Label("Welcome to javap tool"); l.setBounds... View Questions/Answers

insert record in between the two records  June 8, 2012 at 7:43 PM
it is possible to insert record in between the two records? ... View Questions/Answers

Explain the persistence class in hibernate?  June 8, 2012 at 6:48 PM
What is persistence class in hibernate? ... View Questions/Answers

Calculate sum and Average in java  June 8, 2012 at 6:47 PM
How to calculate sum and average in java program? ... View Questions/Answers

What is the main feature of Hibernate3?  June 8, 2012 at 6:46 PM
What is the main feature of Hibernate3? ... View Questions/Answers

What is hibernate technology in java?  June 8, 2012 at 6:43 PM
What is hibernate technology in java? ... View Questions/Answers

what is an entity in hibernate?  June 8, 2012 at 6:39 PM
what is an entity in hibernate? ... View Questions/Answers

Method with Varags  June 8, 2012 at 6:37 PM
How to use Vargas method in java? ... View Questions/Answers

While loop Statement  June 8, 2012 at 6:29 PM
How to print a table using while loop? ... View Questions/Answers

While loop Statement.  June 8, 2012 at 5:44 PM
How to Print Table In java using While Loop? ... View Questions/Answers

pojo class having problem  June 8, 2012 at 5:38 PM
Cannot find any information on property 'Username' in a bean of type 'LoginBean.LoginBeanClass' org.apache.jasper.runtime.JspRuntimeLibrary.handleSetProperty(JspRuntimeLibrary.java:664) org.apache.jsp.loginBeanjsp.jspService(loginBean_jsp.java:62) org.apache.jasper.runtime.Ht... View Questions/Answers

Swing Application help  June 8, 2012 at 5:19 PM
Hi am developing an application. I have set up an ADD button, which if clicked should open the add information form in the same window. I mean should not close and open another window. also after the last text box should show the save button to save the records in database ... View Questions/Answers

Add UIImageView to UIScrollVIew  June 8, 2012 at 5:04 PM
How can i add UIImageView to UIScrollview? I have already created both UIIMageView and ScrollView programmatically and added it the view. as given below.. [self.view addSubview:myScrollView]; But still my image view is not visible..why? ... View Questions/Answers

Pojo and java beans  June 8, 2012 at 4:35 PM
Can anyone tell me where we should use pojo class and where we should use beans. We use pojo class to make the object of mapping file in hibernate framework. Can I use pojo class in those applications where I don't use any database and how ? Please give any example. Can I use pojo class in any ... View Questions/Answers

jtable-adding a row dynamically  June 8, 2012 at 4:23 PM
hi..i am doing a project for pharmacy .. *pblm:* when i want to enter the details in jtable while running the application there are 3 rows and 4 columns which is default bt when we we have to add one more row dynamically as a new row 4th if the details are large.but ev... View Questions/Answers

Emulator for j2me in eclipse  June 8, 2012 at 4:20 PM
I want to run J2me application in eclipse. For that i need an emulator..but i can not get it any how. Please help me. ... View Questions/Answers

how i can access Microsoft Access database by java program  June 8, 2012 at 4:15 PM
how i can access Microsoft Access database by java program ? if any package or jar file required then please specify it. please give java source code for such database connectivity in short ... View Questions/Answers

Embed flex video  June 8, 2012 at 3:48 PM
Hi, I want to embed "application/x-shockwave-flash" content in my mxml.Basically I want to hit one url , get "application/x-shockwave-flash" content from it and display it in my mxml/swf.How to do that? ... View Questions/Answers

Try and catch in Exception Handling.  June 8, 2012 at 3:23 PM
How can we use try and catch block in exception handling? ... View Questions/Answers

jsp priviledge  June 8, 2012 at 3:11 PM
hello sir...i am doing one user mamagement project. i have to priviledge for user categories....plz help me by providing code for priveledge in jsp..its very urgent...????? ... View Questions/Answers

jdbc type-4 driver  June 8, 2012 at 1:27 PM
I was tried the code that you give to run type-4 driver . import java.sql.*; import oracle.jdbc.driver.*; import oracle.sql.*; while compiling the error was like: package oracle.jdbc.odbc.driver does not exist. import java.oracle.jdbc.driver.*; * package oracle.sq... View Questions/Answers

JSON  June 8, 2012 at 12:44 PM
How do i fetch string values from client side and then parse it using JSON ... View Questions/Answers

Stateless Bean Error  June 8, 2012 at 12:10 PM
Ejb stateless bean giving following error,please help me. 11:49:54,894 INFO [STDOUT] Error:$Proxy72 cannot be cast to com.javajazzu p.examples.ejb3.stateless.CalculatorRemote ... View Questions/Answers

upload image data  June 8, 2012 at 11:08 AM
Hii Upload image dat in csv files.. ... View Questions/Answers

upload image data  June 8, 2012 at 11:08 AM
Hii Upload image dat in csv files.. ... View Questions/Answers

"opening video data error" in j2me  June 8, 2012 at 10:45 AM
Any one know about the error c When i am trying to play video on spice device its throw an exception, but the same code work on other devices very well please tell me the issue behind that and give the solution to handle this exception. ... View Questions/Answers

how to run a java program using run.exec()?  June 8, 2012 at 10:34 AM
Hi..i want to compile and run a java file using run.exec().i.e., without compiling and running from command prompt i want to do them in the program itself.I am able to compile the program but it is not executing.showing an error stating that file doesnot exist. can i expect a sample java program ... View Questions/Answers

SQL bit  June 8, 2012 at 7:05 AM
Build a SQL table structure with data that will work with theses three queries. select * from t1 left join t2 using(x); x | y ---+-------- 1 | (null) 2 | 0 3 | (null) 4 | 0 5 | (null) 6 | 0 7 | (null) 8 | 0 9 | (null) 10 | ... View Questions/Answers

Java Bit  June 8, 2012 at 7:04 AM
Complete the Solver constructor so that a call to solveAll return a list with 2 values including the square root and the inverse of the integer passed as parameter. public interface MathFunction { double calculate(double x); } public class Solver { private List<MathFunc... View Questions/Answers

Important Java Interview Question  June 8, 2012 at 7:00 AM
Complete the Solver constructor so that a call to solveAll return a list with 2 values including the square root and the inverse of the integer passed as parameter. public interface MathFunction { double calculate(double x); } public class Solver { ... View Questions/Answers

select option value  June 7, 2012 at 9:52 PM
if i select a value of any drop down then that value should be used in a select query of the next dropdown in jsp on same page???? ... View Questions/Answers

select option value  June 7, 2012 at 9:51 PM
if i select a value of any drop down then that value should be used in a select query of the next dropdown in jsp???? ... View Questions/Answers

Java Applet - Adding a Button to Decrease a Total  June 7, 2012 at 7:45 PM
Hello everyone! Here is my current code: import java.awt.*; import java.awt.event.*; import java.applet.*; public class Final extends Applet implements ActionListener { public int testone = 0; public void init() { Button one = new Button("Increase... View Questions/Answers

core java  June 7, 2012 at 7:07 PM
1.Given: voidwaitForSignal() { Object obj = new Object(); synchronized (Thread.currentThread()) { obj.wait(); obj.notify(); } } Which statement is true? A. This code can throw an InterruptedException. B. This code can throw an IllegalMonitorStateException. C. This code can throw a TimeoutExcep... View Questions/Answers

java  June 7, 2012 at 4:57 PM
what is doman thread and non doman thread? ... View Questions/Answers

java.lang.NullPointerException  June 7, 2012 at 4:01 PM
I am getting the bellow error message whenever dispaly the data from database to jsp .some times data is dispalying and sometimes throwing the above error message working on jboss server .plz see the bellow error message java.lang.NullPointerException ... View Questions/Answers

java.lang.reflect.InvocationTargetException  June 7, 2012 at 3:42 PM
i am getting the java.lang.reflect.InvocationTargetException error on jboss console.sometimes data is retriving from database and displaying in jsp but sometimes i am getting the above error plz help me.i am working on jdk1.4.2 ... View Questions/Answers

How to show the maximum and the minimum in array...  June 7, 2012 at 3:01 PM
I have a bookstore application, but I cannot show the maximum and the minimum price of the book. Please see my codes below. import java.util.*; public class Book{ public static void main(String args[]){ int numOfBook; double totalCost = 0; String expBookTitle = ""; d... View Questions/Answers

How to show the maximum and the minimum in array...  June 7, 2012 at 3:01 PM
I have a bookstore application, but I cannot show the maximum and the minimum price of the book. Please see my codes below. import java.util.*; public class Book{ public static void main(String args[]){ int numOfBook; double totalCost = 0; String expBookTitle = ""; d... View Questions/Answers

technology  June 7, 2012 at 1:08 PM
can spread virus by phone number?...is it possible adding one mobile phone number to attack that mobile phone? ... View Questions/Answers

how to move pointer in Textfield to newline  June 7, 2012 at 12:48 PM
consider my case and provide me solutions: import java.awt.; import java.awt.event.; class Table1 extends Frame implements ActionListener{ TextField tf1,tf2,tf3; Table1(){ Label l1=new Label("WELCOME TO TABLE WIZARD"); l1.set... View Questions/Answers

regarding css file in my eclipse  June 7, 2012 at 10:20 AM
hai frns i want a small help frm u.when ever i use css file in html or normal web browsers the output is coming means css file is effecting the output but wen i use the same code in myeclipse the output is not changing can anyone please tell me a solution regarding this....... t... View Questions/Answers

how can i export a .jar file include .mbd file?  June 7, 2012 at 9:52 AM
i have a project of java.it includes a .mdb file, when i export to .jar file i eclipse, it show a error that can't export .jar file width the .mdb file ? how can i import this .mdb file width the .jar file? and how can i run this file on the other computer without setting database again. thanks.<... View Questions/Answers

my hibernate showing the following exception so how i can resolve it  June 7, 2012 at 7:56 AM
Caused by: java.lang.ClassNotFoundException: org.hibernate.Session at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass... View Questions/Answers

classpath and path for structs1.3.8  June 6, 2012 at 10:01 PM
How to set classpath and path for structs1.3.8 ? ... View Questions/Answers

JSP  June 6, 2012 at 8:05 PM
Hello, I want to perform search based on the parameters entered in the JSP page and display the results back to the same JSP page. Thanks in advance:) ... View Questions/Answers

Hibernate one-to-many relationships.  June 6, 2012 at 7:02 PM
How does one-to-many relationships works in hibernate? ... View Questions/Answers

Hibernate one-to-one relationships  June 6, 2012 at 6:50 PM
How does one to one relationship work in Hibernate? ... View Questions/Answers

java  June 6, 2012 at 6:02 PM
write a java program of calculator having all arithmatic trignometric and power functions that take input and ask for operation after completing operation ask for furthur calculation ... View Questions/Answers

java  June 6, 2012 at 6:01 PM
write a java program of calculator having all arithmatic trignometric and power functions that take input and ask for operation after completing operation ask for furthur calculation ... View Questions/Answers

java  June 6, 2012 at 5:52 PM
write a java program of calculator having all arithmatic trignometric and power functions that take input and ask for operation after completing operation ask for furthur calculation? ... View Questions/Answers

start tomcat automatically by double clicking on exe  June 6, 2012 at 5:38 PM
Hi I wanted to start tomcat automatically by double clicking on exe. i made project in jsp and use tomcat 6 as a server. but now i wanted to do some challenging in that. i want to make an exe,if we double click on that exe tomcat should automatically start and simultaneously my first.jsp should s... View Questions/Answers

DMCA.com