Home Answers Questions Question and Answers


 
 

Latest Programming Questions askedAsk your question?

confirm delete  April 20, 2011 at 9:40 AM
Sir, I want to ask confirmation before deletion, i m using submit button then the form is passed to servlet for deletion,Please help Thanks in advance ... View Questions/Answers

java  April 20, 2011 at 8:31 AM
how to delete all record from table in netbeans. ... View Questions/Answers

Cramers rule for solving equations using java  April 20, 2011 at 1:50 AM
My code: import java.util.Scanner.*; import java.util.*; public class cramersrule { double A[][]; double m[][]; int N; double B[]; public void input() { Scanner s=new Scanner(System.in); System.out.println("enter no of equations of ma... View Questions/Answers

Advertisement

gauss elimination of system of linear equations using java code  April 20, 2011 at 1:46 AM
Here is my code: import java.util.Scanner; import java.util.*; public class gausselimination { private static final double EPSILON = 1e-10; int n;int N; double A[][]; double B[]; public double[] lsolve(dou... View Questions/Answers

determinant of n*n matrix using java code  April 20, 2011 at 1:43 AM
Here is my code: import java.util.Scanner.*; import java.util.*; public class determinantcode { double A[][]; double m[][]; int N; public input() { Scanner s=new Scanner(System.in); System.out.println("enter dimension of matrix"); N... View Questions/Answers

pattern  April 19, 2011 at 9:05 PM
write a java program that can create four different patterns of different sizes. The size of each pattern is determined by the number of columns or rows. For example, a pattern of size 5 has 5 columns and 5 rows. Each pattern is made of character $ and a digit, which shows the size. The size must... View Questions/Answers

Read the value from XML in java  April 19, 2011 at 6:24 PM
Hi, i have an XML with the following code. ... View Questions/Answers

Export data to Excel Sheet in STRUTS 1.3  April 19, 2011 at 6:15 PM
hi. how can i export content present on the jsp to excel sheet on button click..... and challenging part is i have to merge few rows and columns for a particular field(Value)...... Can any one please provide me with an example...... i have gone through POI API but... View Questions/Answers

Create a web application using any technology to display 10 most relevant tweets from Twitter in real-time for the keyword  April 19, 2011 at 5:18 PM
Create a web application using any technology to display 10 most relevant tweets from Twitter in real-time for the keyword "@cldmgc". ... View Questions/Answers

java Thread  April 19, 2011 at 5:17 PM
what is purpose of Thread..? ... View Questions/Answers

data insertion from xml file to database table  April 19, 2011 at 5:16 PM
Hi all, I have data in the XML file. I need to insert it into table in the database using servlet. so please reply me . ThankYou ... View Questions/Answers

Issue in Converting .zip file to .jar file?  April 19, 2011 at 3:53 PM
I have a folder called "printpdf.jar". I have changed the .jar to .zip and did some customizations. After which i had "zipped" it again and made as ".jar". Now the final file is displayed in executable icon rather then text editor icon. How do i make it display in text editor icon. ... View Questions/Answers

pagination.jsp:  April 19, 2011 at 3:36 PM
After runing this jsp it again gives exception . pls can u tell what is reason behind this ?? An Exception is that:- org.apache.jasper.JasperException: An exception occurred processing JSP page /jsp/pagination.jsp at line 49 46: } 47: String query1="SELECT SQLCALCFOUND... View Questions/Answers

answer  April 19, 2011 at 1:02 PM
true statements with relation to "sed" command: ... View Questions/Answers

collections  April 19, 2011 at 12:34 PM
please explain me the flow of this prog import java.util.*; public class listinterface { /** * @param args */ public static void main(String as[]) { ArrayList al= new ArrayList(); al.add(new Integer(99)); al.add("sri"); al.add... View Questions/Answers

collections  April 19, 2011 at 12:33 PM
please explain me d flow of this prog in detail import java.util.*; public class HashTreeLinkedhashset { public static void main(String args[]) { HashSet hs=new HashSet(); hs.add(new Integer(99)); System.out.println("sri"); hs.a... View Questions/Answers

Table Creation  April 19, 2011 at 12:31 PM
create the table for the following fields.its very urgent for me.plz help me S.No,Category( From the home page),Name of the Candidate( After registering and after selecting the category),Age,Title of the project,Description,Photo of the project,Video of the project,File of the project,Judges poi... View Questions/Answers

Multi window  April 19, 2011 at 12:30 PM
I am making a bank app using struts 1.2. using only the struts tags and nno jsp tags and scriplets. db connected thru dao. 1st page contains all the details. when i submit this page, a new window opens and asks to enter password. if password entered is correct, the flow goes to previous w... View Questions/Answers

Java  April 19, 2011 at 12:11 PM
How to define rich text box in java? ... View Questions/Answers

Java  April 19, 2011 at 12:11 PM
How to define rich text box in java? ... View Questions/Answers

Javascript & jsp  April 19, 2011 at 11:54 AM
Dear Sir, Thanks a ton for all your answers throughout.I asked this question long ago.This time i nedd it very urgent.I think it might be a short solution.How can i get the navigation link whilr traversing through the pages. e.g.-On the top of the page if i navigate to the page pa... View Questions/Answers

Javascript & jsp  April 19, 2011 at 11:52 AM
Dear Sir, Thanks a ton for all your answers throughout.I asked this question long ago.This time i nedd it very urgent.I think it might be a short solution.How can i get the navigation link whilr traversing through the pages. e.g.-On the top of the page if i navigate to the page pa... View Questions/Answers

MySql,java  April 19, 2011 at 11:22 AM
In MySQL table i am adding the fields of name,photo,video,age,category.in the category i have some subjects.if one person login into my-site the he upload the one video under one subject.then i want the following thing i want to see the uploaded videos under the one category of same type(for ex m... View Questions/Answers

mysql  April 19, 2011 at 9:34 AM
how to open\import table in .dbf format in mysql ... View Questions/Answers

Show mu;tiple DIV contents in a page  April 19, 2011 at 8:20 AM
Hi All; I want to show the content of forms like this. A drop down list having options say A,B,C. on selecting an option, it should display 1 div out of 3 div contents. 1st div tag contains 1 text box, 2nd div tag contains 2 text boxes, 3rd div tag contains 3 text boxes, i... View Questions/Answers

Java GUI to build a Student Registration Program  April 19, 2011 at 4:57 AM
Write a program to register students for a college. Students have names, addresses and courses. Implement the interface class RegisterStudent. RegisterStudent has one method, public boolean register, which returns the boolean value of true or false if the student is successfully registered... View Questions/Answers

Interface implimentation  April 19, 2011 at 3:01 AM
How to impliment an interface For Achieveing MVC & loosCupling in Any Project ? ... View Questions/Answers

For Loop  April 18, 2011 at 9:25 PM
Write a program using a for loop that computes the following sum: 1/2 + 2/2 + 3/2 + 4/2 + 5/2 + ... N/2 N will be an integer limit the user enters. This is an example of my upcoming quiz. I need help on knowing the answer to this to be sure to pass my quiz. ... View Questions/Answers

Generate xml  April 18, 2011 at 6:46 PM
hi can i generate xml file with xsd using JAXP in java. if possible please send java code. Thanks. ... View Questions/Answers

springstrutshibernate  April 18, 2011 at 5:41 PM
Hello sir; I want Struts 1.2.9 + Spring 2.0.8 + Hibernate 3 CRUD application, i had already seen in our roseindia site of these integration application. but it has only login application. I want crud (create,update,retrieve,delete) application ... View Questions/Answers

Java programming  April 18, 2011 at 5:22 PM
Hello! Is anybody able to do this task: I need to find the percentage of words distribution between parts of speech. I have to mark nouns, verbs, adjectives and perpositions like that: to the end of noun - to add letter D, adjective - B, verb - V and preposition - P. For example, I have the sente... View Questions/Answers

Truncating issue while parsing XML with SAX Parser.  April 18, 2011 at 5:17 PM
I am Parsing one xml file and after parsing I have to enter the data into the database using hibernate. The problem is while parsing some elements, its not getting the complete data, rather some of the characters gets truncated. Has anyone faced this issue nad what is the cause of this issue. Whi... View Questions/Answers

secure web service using mutual certificate security  April 18, 2011 at 5:02 PM
hello, i need help making secure web sevice using MCS (mutual certificate security). I use Glassfish 3.0.1 server. I dont wont to use glassfish keystore and truststore, i wont to use mine. So i made server and client keystore and truststore using this commands: keytool -genkeypair -alias ... View Questions/Answers

Request URl using Retrive data from dtabase  April 18, 2011 at 4:58 PM
Using With GWT the user can create an event. In the create page, we have three buttons. Save as draft, preview and save and post buttons. Once the user entered all the datas and if he clicks the Preview button, you have to create a dynamic j... View Questions/Answers

jsp  April 18, 2011 at 3:49 PM
why jsp is translated into servlet?pls describe precisly... ... View Questions/Answers

Servlet,Jsp  April 18, 2011 at 3:45 PM
This is my requirement?I have a login page and register page?If I give the url as http://localhost:8080/Project/Login.jsp ,it should go to login page?.then from login page on click of register button I can register and then I can do some other task?dats asusual?I did that?but if I give the url a... View Questions/Answers

Select from select list + display  April 18, 2011 at 3:42 PM
i have a select list containing elements, say EmpCode. there are 2 fields below it EmpName and DeptName. As i select EmpCode from the select list, the corresponding EmpName and DeptName should be displayed automatically in empty text fields. I am using struts 1.2 framework for th... View Questions/Answers

Applet for add two numbers  April 18, 2011 at 2:33 PM
what is the java applet code for add two numbers? ... View Questions/Answers

Java interview questions and answers  April 18, 2011 at 2:30 PM
what is garbage collection? What is the process that is responsible for doing that in java? Ans.Reclaiming the unused memory by the invalid objects. Garbage collector is responsible for this process 2.What kind of thread is the Garbage collector thread? Ans. I... View Questions/Answers

struts2  April 18, 2011 at 1:02 PM
hi all i am going to run struts2.x program i got this error when server started java.lang.RuntimeException: java.lang.reflect.InvocationTargetException java.lang.reflect.InvocationTargetException java.lang.ClassNotFoundException: javassist.ClassPool ... View Questions/Answers

project query  April 18, 2011 at 12:59 PM
I am doing project in java using eclipse..My project is a web related one.In this how to set sms alert using Jsp code. pls help me ... View Questions/Answers

constructor  April 18, 2011 at 12:02 PM
what happen in the background while creating the Object in Java? ... View Questions/Answers

restarting  April 18, 2011 at 11:38 AM
Lucy wants to run the CORBA application on different machines. She tries restarting the server but is unable to do so. What can be the possible reason for the server not getting started? ... View Questions/Answers

restarting  April 18, 2011 at 11:38 AM
Lucy wants to run the CORBA application on different machines. She tries restarting the server but is unable to do so. What can be the possible reason for the server not getting started? ... View Questions/Answers

idl  April 18, 2011 at 11:36 AM
The developer writes the following code in an IDL file and then compiles with idlj compiler: interface Calculate { string compute(); void shutdown(); }; interface Time { string comp(outin long var); }; Predict the output of the preceding code snippet. ... View Questions/Answers

corba  April 18, 2011 at 11:35 AM
Lucy decides to convert the RMI application to CORBA to make it portable across different platforms. The developer creates a CORBA application for maintaining employee information across different branches of the company. The server and client applications are developed on a Java p... View Questions/Answers

code  April 18, 2011 at 11:33 AM
After creating the server, the developer writes the following code to create the RMI client on the local machine: import java.rmi.*; public class HelloClient { public static void main(String args[]) { try { Hello h = (Hello)Naming.lookup("server"); System.out.println("Client: Hello!"); Sy... View Questions/Answers

distributed  April 18, 2011 at 11:32 AM
Lucy decides to distribute the load of the server by creating a distributed application. Lucy has to maintain two servers, one for storing the database and the other for storing the books in the .pdf format. The application should enable an employee to access the database and do... View Questions/Answers

adress  April 18, 2011 at 11:29 AM
Lucy gives the following code to her team to get the address of the server in a network-based application: import java.net.*; public class { public static void main(String args[]) { try{ InetAddress add = InetAddress.getInetAddress("192.168.0.70"); System.out.println(add.toString()); }cat... View Questions/Answers

server  April 18, 2011 at 11:28 AM
The developer observes that some information is not delivered at the client end. He tries using the following code to create a reliable connection between server and client: public Server() { try { serverSocket = new ServerSocket(1001); System.out.println(se... View Questions/Answers

connection  April 18, 2011 at 11:25 AM
The developer writes the following code to establish the connection with the available port on the host machine: import java.net.*; public class AddTest{ public static void main(String args[]) { try{ DatagramSocket socket = new DatagramSocket(); if(socket.i... View Questions/Answers

javabean  April 18, 2011 at 11:23 AM
The developer has to perform a task, which will keep a track of the number of users connected to a database. He/she wants to perform the task to avoid any invalid access to the database. He/she has to decide the type of JavaBean which would enable him/her to perform the task in a hidden manner. H... View Questions/Answers

Authentication  April 18, 2011 at 11:21 AM
The developer has to create a JavaBean for authenticating an employee. The developer creates an event class with name LoginEvent and an interface with name LoginListener. The LoginListner interface contains a method ValidateLogin(). The developer writes the follo... View Questions/Answers

update  April 18, 2011 at 11:18 AM
Predict and justify the output of the following code snippet written by the developer to update the Status table: String str = "UPDATE m_id SET m_id= ? WHERE bk_id= ? "; PreparedStatement ps = con.prepareStatement(str); ps.setString(1, "m2"); ps.setString(2, ... View Questions/Answers

exception  April 18, 2011 at 11:16 AM
Identify the reason for SQLException exception, which is encountered when the developer tries to run the following code snippet to insert a row in the Status table: String str = "INSERT INTO Status VALUES (?,?)"; PreparedStatement ps = con.prepareStatement(str); ResultSet rs=ps.createResu... View Questions/Answers

problem with the installation of apache-geramio2.1 server  April 18, 2011 at 10:56 AM
i have installed Apache Geronimo 2.1 server on my pc,but desired page is not coming on the BROWSER after typing localhost:8080 on the contrary oracle page is displayed.please help me in this regard ... View Questions/Answers

iphone tab bar  April 18, 2011 at 10:50 AM
how to add tab bar items dynamically in iphone?? ... View Questions/Answers

Error in log file  April 18, 2011 at 12:38 AM
Hi, I AM using Apache tomcat 6.0.16 server and created the JDBC connection pool to connect data base oracle 10g at time of executing project i get following errors in "Apache Tomcat 6.0.16 log". Apr 17, 2011 11:57:57 AM o... View Questions/Answers

Error in log file  April 18, 2011 at 12:38 AM
Hi, I AM using Apache tomcat 6.0.16 server and created the JDBC connection pool to connect data base oracle 10g at time of executing project i get following errors in "Apache Tomcat 6.0.16 log". Apr 17, 2011 11:57:57 AM o... View Questions/Answers

Error in log file  April 18, 2011 at 12:38 AM
Hi, I AM using Apache tomcat 6.0.16 server and created the JDBC connection pool to connect data base oracle 10g at time of executing project i get following errors in "Apache Tomcat 6.0.16 log". Apr 17, 2011 11:57:57 AM o... View Questions/Answers

how can manages recordset in jsp  April 17, 2011 at 11:21 PM
I am ask a question how can show 5-5 records in jsp page and I get answer provided by you but it give exception:- org.apache.jasper.JasperException: /jsp/paging.jsp(75,0) According to TLD or attribute directive in tag file, attribute items does not accept any expressions ... View Questions/Answers

source code  April 17, 2011 at 10:03 PM
hellow!i am developing a web portal in which i need to set dialy,weekly,monthly reminers so please give me source code in jsp ... View Questions/Answers

Java  April 17, 2011 at 8:58 PM
Write a java swing program to get name and email id. Display the error message if email id is not in xxxxx@xxxx.xxx format. ... View Questions/Answers

compiler vs interpreter  April 17, 2011 at 7:53 PM
"compiled program executes faster especially if the program contains loop" Why? ... View Questions/Answers

Subtraction of a date from Sql and other from java.  April 17, 2011 at 4:59 PM
I want to subtract a date that i retrieve from mysql database with the system date that i retrieve from java. I want the difference between the two date in the integer form. how do i do it ? Please help me. Thank you ! ... View Questions/Answers

programing  April 17, 2011 at 3:12 PM
Using Java, Design a simple interface that can capture information of your choice with the following controls; Labels, Text Fields, Checkbox, Radio buttons and command buttons. You may have to use the following files and others you may find important. Import java.awt.FlowLayout Import javax.swing... View Questions/Answers

xml  April 17, 2011 at 12:19 AM
Design an XML to maintain book details to do the following: (i) Separate Data (ii) Exchange Data (iii) Store Data (iv) Create new language. ... View Questions/Answers

Java web Application  April 16, 2011 at 11:09 PM
Hi! I have developed a java web application project using netbean IDE with glassfish server. My question is how to create a runnable file from this. How can we make it to a single file? I think it is war file. Please help me. Thanks in advance. ... View Questions/Answers

read xml  April 16, 2011 at 10:17 PM
hi all, i want to ask about how to read an xml in java ME.. here is the xml file <data> <value> <struct> <member> <name> User_Name </name> <value> ... View Questions/Answers

how to call static method  April 16, 2011 at 10:05 PM
class A { //some code } class B extends A { static method() } class C { } //how to access static method() from B to C ... View Questions/Answers

how to call static method  April 16, 2011 at 10:05 PM
class A { //some code } class B extends A { static method() } class C { } //how to access static method() from B to C ... View Questions/Answers

how to call static method  April 16, 2011 at 10:05 PM
class A { //some code } class B extends A { static method() } class C { } //how to access static method() from B to C ... View Questions/Answers

how to call static method  April 16, 2011 at 9:59 PM
class A { //some code } class B extends class A { static method() } class C { } //how to access static method() from B to C ... View Questions/Answers

how to call static method  April 16, 2011 at 9:58 PM
class A { //some code } class B extends class A { static method() } class C { } //how to access static method() from B to C ... View Questions/Answers

how to call static method  April 16, 2011 at 9:58 PM
class A { //some code } class B extends class A { static method() } class C { } //how to access static method() from B to C ... View Questions/Answers

Java memory options from command line  April 16, 2011 at 6:56 PM
Hi, How to use java memory options from command line? Thanks ... View Questions/Answers

java  April 16, 2011 at 5:28 PM
Design a simple applet that can draw shapes such as rectangles, circles, Lines and ovals. Set them to different colors. ... View Questions/Answers

java  April 16, 2011 at 5:26 PM
Using Java, Design a simple interface that can capture information of your choice with the following controls; Labels, Text Fields, Checkbox, Radio buttons and command buttons. You may have to use the following files and others you may find important. Import java.awt.FlowLayout Import javax.swing... View Questions/Answers

Access URL Failed!?  April 16, 2011 at 2:43 PM
Hi, May i know how to convert my domain name into IP address? becuase i working on J2ME but don't know why the my application unable to access the URL. "connector.open("http://886089.com/datetime.asp")". I Had test on www.google.com, www.yahoo.com and everything just work fine. Please Help Me!! T... View Questions/Answers

secret behind Serializable interface  April 16, 2011 at 1:53 PM
How serialization work? What is the secret behind it. Can we create our one serializable interface. If so how? ... View Questions/Answers

what are the codes for uploading and downloading files in and from database?  April 16, 2011 at 12:19 PM
We are designing a student's website where they can get and post study materials. We actually need the code to upload and download files in and from the database. we will be very gratefull if you provide us those with a bit of explanations. Thank you. ... View Questions/Answers

secure online payment code for jsp  April 16, 2011 at 11:58 AM
how to implements online payment in jsp . ... View Questions/Answers

Query about bioinformatics  April 16, 2011 at 11:39 AM
Wat is ment by spring? How it useful in bioinformatics? ... View Questions/Answers

Help with SELECT/JOIN statement  April 16, 2011 at 2:58 AM
I have two tables (t1 and t2) that each have the same columns. t1 has data and t2 has changes to the data. I want a select statement that will return me all rows of t1 but, when t1.id = t2.id, I want the columns of t2 instead of t1. I am using Postgres. t1 id | ... View Questions/Answers

Expand / Collapse form div when click on button  April 15, 2011 at 9:03 PM
Hi, I have a form integrated from Wufoo with iFrame code. If the user misses a field an error message appears but it takes more space than the DIV Formbox. How can I make the DIV formbox expand once the form gets higher? Thanks <div class="formbox"><... View Questions/Answers

jsp  April 15, 2011 at 7:44 PM
write a code for jsp file generator to generate a jsp page automatically taking html page as input ... View Questions/Answers

java  April 15, 2011 at 7:24 PM
Write a Java application that can capture five or more numbers and returns the total of the numbers, the average and the difference between total and average using input dialogs ... View Questions/Answers

Writing a Program to calculate Circumference of planets reading from a file and writing to new file.  April 15, 2011 at 6:38 PM
Hello, I would like to know how to write a program to read data from a file. Then use the numerical data within to then calculate the circumference of the planets. I then have to output the data into a new file. The text file is Sun,860000 Mercury,4000 Venus,8000 Earth,8400 Mars,2500 Ju... View Questions/Answers

how can manages records in jsp  April 15, 2011 at 5:59 PM
how can sho only five record at a time and next 5 on click next button and so on in jsp.... ... View Questions/Answers

Writing a Program to calculate Circumference of planets reading from a file and writing to new file.  April 15, 2011 at 4:43 PM
Hello, I would like to know how to write a program to read data from a file. Then use the numerical data within to then calculate the circumference of the planets. I then have to output the data into a new file. The text file is Sun,860000 Mercury,4000 Venus,8000 Earth,8400 Mars,... View Questions/Answers

Augmented Reality in Android  April 15, 2011 at 4:27 PM
How to get location of the object shown in camera view using Augmented Reality in Android? ... View Questions/Answers

Media player design  April 15, 2011 at 3:37 PM
i want to know that how will create media palyer application in java ... View Questions/Answers

Exception in Thread  April 15, 2011 at 3:12 PM
i am developing a rmi application in eclipse use genady rmi plugin and server side code run effeciently but when i run client and generate connection with server i have following exception : Blockquote Exception in thread "RMI TCP Connection(idle)" ... View Questions/Answers

html  April 15, 2011 at 1:12 PM
DHTML page to create drop down menu with three menus and on Mouse over. ... View Questions/Answers

Database  April 15, 2011 at 1:09 PM
In MySQL table i am adding the fields of name,photo,video,age,category.in the category i have some subjects.if one person login into my-site the he upload the one video under one subject.then i want the following thing i want to see the uploaded videos under the one category of same type(for e... View Questions/Answers

Regarding Documentation of API  April 15, 2011 at 1:08 PM
Hello How to get java documentation of classes ,Interfaces and methods from windows command prompt.In the sense Java.lang,java.awt,java.math,java.io etc. Kindly tell the solution. How to type in Windows command prompt(console) to get the documentation API. ... View Questions/Answers

Regarding Documentation of API  April 15, 2011 at 1:08 PM
Hello How to get java documentation of classes ,Interfaces and methods from windows command prompt.In the sense Java.lang,java.awt,java.math,java.io etc. Kindly tell the solution. View Answers. How to type in Windows command prompt(console) to get the documentation API. ... View Questions/Answers

XML  April 15, 2011 at 1:05 PM
Design an XML to maintain book details to do the following: (i) Separate Data (ii) Exchange Data (iii) Store Data (iv) Create new language. ... View Questions/Answers

forgot password code in jsp  April 15, 2011 at 12:49 PM
forgot password code in jsp ... View Questions/Answers

Database  April 15, 2011 at 12:23 PM
In my project i am adding some subjects under the field of category.i want the following things 1)possible for the admin to add some more subjects in the category in the web page. 2)when admin add some subjects then automatically save that subjects in my database for this i want procedure some q... View Questions/Answers

DMCA.com