Home Answers Questions Question and Answers


Latest Programming Questions askedAsk your question?

jdbc  May 5, 2010 at 12:22 PM
please help me i am getting jV.sql.exception: data source name and no default driver specified while inserting the image to the database with oracle 11g ... View Questions/Answers

getting radio button at start of each row of table  May 5, 2010 at 11:16 AM
i have done the following things, and this is fine for me. But i want radio button at the place where i mentioned in commenting form in the following code.<table border="2"> <tr> <th>USERNAME</th><th>SKILL</th> </tr>... View Questions/Answers

Java Printing  May 5, 2010 at 6:31 AM
Can anybody plz help in giving the code for printing the contents of JPanel.. It contains JLabels and JTextFields only.. Plz.. Its urgetn.. Printing means sending the document to the Printer.. ... View Questions/Answers


text to speect  May 4, 2010 at 10:53 PM
please i need a j2me library that convert text to speech on me pleaseany one can help me my email is ahmed_akl2010@yahoo.coim ... View Questions/Answers

algorithms and data structures  May 4, 2010 at 3:04 PM
write a java methods to implement queues by the simple but slow method of keeping the front of the queue always in the first position odf a linear array. ... View Questions/Answers

difference between java5 and java6  May 4, 2010 at 3:01 PM
Hi,What is difference between java5 and java6Please let me know quickly ... View Questions/Answers

java compilation  May 4, 2010 at 2:46 PM
write an algorithm which uses a stack to print a given string in reverse order. For example, if the string is `Fat cat`, the output should be `tac taf`. Use the usual stack methods and a method nextChar(S). nextChar(S) returns the next character of S everytime it is used, or else a `$` sentinel. ... View Questions/Answers

how to pass the mutiple values from <Ui:datagrid hyperlink  May 4, 2010 at 2:40 PM
I am getting the error when passing the values from this way emp2=${employee.lastName1} & name=${employee.firstName.How to pass the values from hyperlink in column <ui:dataGrid items="${employees}" var="employee" name="datagrid1" cel... View Questions/Answers

Directory structure in hibernate for stand alone application  May 4, 2010 at 2:31 PM
Hi,Please tell me directory structure of hibernate using only stand alone application. ... View Questions/Answers

to read data stored in ArrayList  May 4, 2010 at 1:55 PM
this is regarding struts2, i have create one ArrayList object and in that i have stored 4 User class objects taking them from database. Now i want to read the data of all 4 User objects from jsp file using struts2 tag. i have done the following thing, but i am getting data only of one User. &l... View Questions/Answers

Getting Current Directory from java  May 4, 2010 at 1:46 PM
I'm designing an application in linux where i need to get the current directory of my java file...I'm using System.getProperty("user.dir")but its not working properlyIt's returning /opt/Softwares/apache-tomcat-5.5.27/logsHow to get the directory of my current ... View Questions/Answers

How to get jSon object in servlet from jsp  May 4, 2010 at 12:41 PM
How to get jSon object in servlet from jsp?In jsp page i have written:var sel = document.getElementById("Wimax");var ip = sel.options[sel.selectedIndex].value;var param;var url = 'ConfigurationServlet?ActionID=Configuration_Physical_Get';htt... View Questions/Answers

HTTP Status 404  May 4, 2010 at 11:49 AM
Hello,i am making a program of tiles using Struts2. i face error HTTP Status 404May 4, 2010 11:31:59 AM org.apache.catalina.core.AprLifecycleListener initINFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the ja... View Questions/Answers

Java  May 4, 2010 at 10:26 AM
Create an applet that illustrates how to support undo and redo in the components based on JTextComponent class. In this applet you have to create three JButtons and one JTextArea that implements the undo and redo operations. The labels for JButtons are Undo,Redo and Exit. ... View Questions/Answers

Java  May 4, 2010 at 10:26 AM
Using Socket Programming develop the echo server and the echo client program that display whatever is typed in the server on to the client. ... View Questions/Answers

Java  May 4, 2010 at 10:24 AM
Explain the advantage of using ?this? keyword in Java. Implement the program that calculates the area of rectangle which make use of the constructor and the ?this? keyword. ... View Questions/Answers

retrieving of value from excel file  May 4, 2010 at 10:08 AM
Dear sir,Thanks for sending a code now i am getting a particular column values i.e EmailId column for sending a massmails,now i have to send a mail that contains a (Name(A),EL(B),CL(C),Bonus(D),EmailId(E) soon...(A,B,C,D,E.. are column names)) matter i.eDear A,U r CL is C ,EL... View Questions/Answers

display messages in short  May 4, 2010 at 10:05 AM
dear sir,i am sending a mail and then displaying all subject, matter and attached file in the table .But in table i have to get a short message i.e starting few words then dots like that ,when a mouse pointer moves on that matter it will show the full matter how to do it sir please help me ..<... View Questions/Answers

JSP:HTML Form in-place Editing  May 3, 2010 at 11:26 PM
I have an HTML form (form #1) which uses a java servlet to save customer data by entering values into textfield/checkboxes/drop down fields to a mysql database(this is working fine). On the same page i also have a search facility that will search and show the results of a customer search in a small ... View Questions/Answers

Changing random results to ASC or DSC  May 3, 2010 at 8:28 PM
I have a script that randomizes results. I have tried to convert code to display a constant result, ascending or descending while in session. I can't seem to convert script due to session value and $rand_num = rand(1,$total_rows - 1);//index.[php]$query = "SELECT *... View Questions/Answers

C Language  May 3, 2010 at 5:19 PM
What is meant by %u in printf statement in c?for example,%d means integer value,like that what is %u? ... View Questions/Answers

Framework MVC java  May 3, 2010 at 2:20 AM
Hi everybody I'm here coze I need your help . The problem that I have project to do it in my study concerning "Makeing a new framework MVC" like SpringMVC, Struts ou JSF and I don't know how to beging and which methode i must implements ....And thanks for tour help.... View Questions/Answers

jdbc  May 2, 2010 at 10:19 AM
hi... please give the code for retrieving the rose image from the database... ... View Questions/Answers

Html Template  May 2, 2010 at 9:59 AM
I use a template to design my website,but some problems arised using template.I pass flag update and insert as a hidden field on to the servlet,the response of the servlet is a jsp page.on this page template is not applied..what can i do? ... View Questions/Answers

java  May 2, 2010 at 8:54 AM
how to write a programme in java to copy one line file to another file.name of file are entered through a keyboard ... View Questions/Answers

java programming  May 2, 2010 at 8:50 AM
write and run a programme that accept a string from keyboard and convert it into a number. ... View Questions/Answers

regarding socket  May 2, 2010 at 12:42 AM
sir I have a project of socket.which takes input from user(client) and checks in database(server) and sends the responses to client but I am facing problem this connection maintains for only single thread if I want to continue this for infinite times what should I do?please give solutio... View Questions/Answers

java Programming  May 1, 2010 at 11:58 PM
hi all i want to devlop a gui for compiling java program.so please help me how could i do this.means to say that how can i compile java program on clicking of a button.please reply me on ravi.dhawan01@gmail.com ... View Questions/Answers

error in netbeanse and glassfish  May 1, 2010 at 7:46 PM
i have this in a jsp page :<jsp:useBean id="rdf" class="test_rdfa.NewClass"> </jsp:useBean>String id=(String)session.getAttribute("id");String url= request.getParameter("wburl");rdf.readGrddl(url,id);... View Questions/Answers

java  May 1, 2010 at 7:34 PM
hi, send me the source code of ball breaking game using swings ... View Questions/Answers

java  May 1, 2010 at 5:44 PM
how to implement using linked list and queues in collectintions ... View Questions/Answers

java  May 1, 2010 at 5:42 PM
how to implement using linkedlist and queue? ... View Questions/Answers

Java.. pls.  May 1, 2010 at 5:21 PM
Hi, sir. it compiler but when search or purchase it didt go true.Sir, can u help me sir. Please Sir..Import java.io.*;public class nathan{String title[]={"Biography","Computers","Science","Sports","Religion"};... View Questions/Answers

JAVA Project  May 1, 2010 at 3:56 PM
Hi Friends, Can somebody please tell me a website from where I can download java live projects along with the source code. ... View Questions/Answers

Templates Download  May 1, 2010 at 3:50 PM
Hi Friends, I was downloading free web templates. But after downloading they save in the form of a zip folder and when you open them they get all distorted. They don't look like as what they should be like. Can someone please tell me the correct way of downloading web templates. ... View Questions/Answers

java  May 1, 2010 at 12:32 PM
hi... help me to retrieve the image from the database please help me ... View Questions/Answers

hi.. i hv few error. pls.  May 1, 2010 at 9:20 AM
hi sir, i have few error. can u pls help me. pls.im very new in java. ths my Uni assgmnt.please help me...import java.io.*;public class nathan{ String title[]={"Biography","Computers","Science","S... View Questions/Answers

java  April 30, 2010 at 5:25 PM
logout<?session_start();?><html><head> <script type="text/javascript"> function show_alert() { var msg = "Values Entered"; alert(msg); } </script></head><... View Questions/Answers

java  April 30, 2010 at 5:23 PM
developer2..........<?session_start();?><?phpinclude "include.php";$sql="INSERT INTO developer (date,logouttime,Achievements,signature)VALUES('$_POST[bar]','$_POST[face2]','$_POST[Achievements]','$_POST[S... View Questions/Answers

java  April 30, 2010 at 5:22 PM
<?session_start();?><html><head><script type="text/javascript">function showUser(str){if (str=="") { document.getElementById("txtHint").innerHTML="";<... View Questions/Answers

java  April 30, 2010 at 5:21 PM
-- phpMyAdmin SQL Dump-- version http://www.phpmyadmin.net---- Host: localhost-- Generation Time: Apr 30, 2010 at 11:12 AM-- Server version: 5.1.36-- PHP Version: 5.3.0SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";/*!... View Questions/Answers

java  April 30, 2010 at 5:20 PM
<html><head><title>Attendance System </title><script language='JavaScript' type='text/JavaScript'><!--function validate() { if(document.form1.username.value=='') { alert('Please Enter the Username'); return fal... View Questions/Answers

polymorphism  April 30, 2010 at 4:07 PM
what is polymorphism? what is the advantage of function overloading? explain the concept of operator overloading? ... View Questions/Answers

java code  April 30, 2010 at 2:55 PM
i have to store this file into database i know normal xml storing ...but how to proceed through nested elements and attributes i dont know please help me out.......<?xml version="1.0" encoding="ISO-8859-1"?><?xm... View Questions/Answers

storing xml into database  April 30, 2010 at 2:53 PM
hi i have an xml file it contains elements with attributes as well as nested elements so how to go forward .......with it i know how to persist a simple xml file into data base but i m finding some difficulty to start with i m sending u the xml file.......<?xml version=&q... View Questions/Answers

java compilation  April 30, 2010 at 2:44 PM
Every circle has a center and a radiuus. Given the radius , we can determine the circles area and circumference. Given the center, we can determine its position in the x-y plane. The center of a circle is a point in the x-y plane. Design the class circle that can store the radius and the center of t... View Questions/Answers

display messages in short  April 30, 2010 at 2:30 PM
dear sir, i am sending a mail and then dialaing all subject, matter and attached file in the table .But in table i have to ge a short message i.e starting few words then dots ,when a mouse pointer moves on that matter it will show the full matter how to do it sir please help me ..... View Questions/Answers

java  April 29, 2010 at 6:35 PM
Every cylinder has a base and height, where the base is a circle. Design the class cylinder that can captures the properties of a cylinder and perform the usual operations on a cylinder. Derive this class from the class circle designed in programming exercise 4.some of the operations that can be pe... View Questions/Answers

java compilation  April 29, 2010 at 6:25 PM
A point in the x-y plane is represented by its x-coordinate and y-coordinate.Design the class point that can store and process a point in the x-y plane. you should then perform operations on a point, printig the coordinates of the point, returning x-coordinates, and returning the y-coordinate. Also,... View Questions/Answers

dumps  April 29, 2010 at 6:06 PM
I'm preparing for OCA.Can anyone kindly send me the latest dumps of Oracle 9i SQL dumps. Please its really urgent.Thanks in advance ... View Questions/Answers

estjs  April 29, 2010 at 5:56 PM
ExtJS Tutorials,sample applications with output and how to run in eclipse with jboss server ... View Questions/Answers

Output of this one  April 29, 2010 at 2:27 PM
public class Test { int i=-277; {try{ if(Byte i<<1) { System.out.println("Executed"); } else { System.out.println("Error"); } }catch(Exception e){ System.out.print... View Questions/Answers

servlet program problem  April 29, 2010 at 1:34 PM
i used ur servlet example prg with xml file of helloworld program and i run dat program in tomcat, it shows only the files in my specified directory but when i clicked dat file name it just displaying the code alone, reply me how to run or whether i hav to create a separate html file to run i... View Questions/Answers

HTMLParserText  April 29, 2010 at 12:54 PM
Thanks for the file that you send me. But my problem, i want to convert it from HTML to TXT file. This means I have to remove all tags. In this way, I need your helpful.With my best regards ... View Questions/Answers

sir  April 29, 2010 at 12:47 PM
hi sir,in this program there is a jtable,i am insert the records to the jtable .when i am inserting the record to the 5th row of the jtable,the inserting query is not executed,plz see this program and provide solution sir,i am mentioning the error as <<>>>......ma... View Questions/Answers

retrieving of value from excel file  April 29, 2010 at 12:25 PM
Dear sir,Thanks for sending a code now i am getting a particular column values i.e EmailId column for sending a massmails,now i have to send a mail that contains a (Name(A),EL(B),CL(C),Bonus(D),EmailId(E) soon...(A,B,C,D,E.. are column names)) matter i.eDear A,U r CL is C ,EL... View Questions/Answers

java Collections  April 29, 2010 at 11:37 AM
HI Friends, I want to pick a random element from a set.How can i achieve this.I have a set of objects , I want to pick a random object every time from the set.. ... View Questions/Answers

how to pass the mutiple values from <Ui:datagrid hyperlink  April 29, 2010 at 10:56 AM
<column width="100"> <header value="Employee ID" hAlign="center" styleClass="header"/> <item value=" ${employee.lastName1}" hAlign="center" hyperLink="employee_payroll_updatePage.jsp?e... View Questions/Answers

HTMLParserTxt  April 29, 2010 at 10:18 AM
Dear Sir,PLEASE if you can help me. I want to convert HTML file to txt file. I will send you the code. Please can you fix the errors.How I get the follwing plugins. I mean from where?Thanks a lot for your helpful.Code:package DBFin;... View Questions/Answers

Disable offline browser access  April 29, 2010 at 7:49 AM
Hi Please help me to solve the issue, I have been trying my level best to find the solution for disabling the offline browser issue for the security purpose. But so far I don't find any solution.What I needed is;When the user clicks the website from the browser history,... View Questions/Answers

java  April 29, 2010 at 7:30 AM
how to write a program that will create objects and display the number of objects created.(Java)..plzzz help me.. ... View Questions/Answers

java-script,jsp  April 29, 2010 at 6:31 AM
how can i shift to other page when my timer shows t<=0 .i.e timeout? ... View Questions/Answers

java,servlet,jsp  April 29, 2010 at 6:27 AM
i am doing a project on online examination system and in that there are problems that-- 1.i want to disable the back,forward and refresh button.Please give me the code for google crome browser. 2.suppose when i close the browser directly without ending the test then again the... View Questions/Answers

quesion  April 28, 2010 at 9:05 PM
dear sir, i am student presently doing one academic project,but i came across with a problem which is as..1)my project contains coding in java swing,servlets and wml scripts where i wana to access it through mobile...did i need to have separte wml file also..2)fo... View Questions/Answers

jsp listbox  April 28, 2010 at 5:26 PM
thanks for your earlier post.I have one list box filled from the datebase. i want my second listbox to be filled from the database based on the selection of first list box. without refreshing my jsp page. is this possible.thanks in advance. ... View Questions/Answers

thanks  April 28, 2010 at 3:41 PM
thanks sir i am getting an output...Once again thanks for help... ... View Questions/Answers

jsp list box  April 28, 2010 at 3:03 PM
I have two list boxs. the values for the first list box is retrieved from the mysql database. I want to fill the second list box selected item from the database.Please help me in this regard.Your help is highly appreciated. ... View Questions/Answers

hi  April 28, 2010 at 1:32 PM
hi sir,i am almost complete my project,i want to create a batch file for my project,how to create a batch file for my project,plz help me or plz provide me with some examples ThanQ ... View Questions/Answers

Reading Files and Print  April 28, 2010 at 1:17 PM
Hey Guys,I'm a beginner to java and I wanna write this program. I wanna create files including information of the students in my class. Each file contains a student's name, e-mail, school, hobby. There are almost 30 files. When I want to find students whose school is "S... View Questions/Answers

Display Errors using Message Resources  April 28, 2010 at 12:49 PM
Hello..I've a login page where i used applicationresources.properties to display errors for null values and i wrote the condition in formbean.Now i want to show the errors for invalid user by checking in database.How can i do this.. ... View Questions/Answers

JSP code  April 28, 2010 at 7:26 AM
Hi!Can somebody provide a line by line explanation of the following code. The code is used to upload and download an image.<%@ page import="java.io.*" %><%@ page import="java.sql.*" %><% String saveFile="";S... View Questions/Answers

java script and velidatores  April 28, 2010 at 6:50 AM
i made a job portal and in it many fields which required validate how i do throw java script.. can you help me please send me common validate function which used in any site..... ... View Questions/Answers

Criteria with Multiple Tables  April 27, 2010 at 6:28 PM
I am using Hibernates Criteria. How to get Joins using Criteria?e.g. instead of below query i want to use criteria then How i can? select user from TeamsUserEntity user, UserGroupUserEntity ugu where user... View Questions/Answers

readline Error 2  April 27, 2010 at 4:25 PM
Hi sir,can you look again please.The error is hard to notice, but if you execute the code, 1. enter a string the first input request (eg hello world), 2. ENTER3a. ENTER n for the next input requestThe code will not terminated after the 'n'. This is because t... View Questions/Answers

readline Error  April 27, 2010 at 1:50 PM
Hi sir, please helpme with my code.Mycode does not work. The readLine () method seems to loose the first character of the string input from command line after the the first call to it. When Ienter the text abcd, the firt time it prints it correctly, every other time the first character i... View Questions/Answers

servlet  April 27, 2010 at 1:32 PM
hi sir,plz provide what is a servlet ,how to run the servlet and what r the good books for understanding servlets,plz provide me ... View Questions/Answers

Java Programming  April 27, 2010 at 1:17 PM
Write and run a program that accepts a string as input and converts it to a number ... View Questions/Answers

Java Programming  April 27, 2010 at 1:14 PM
To find out minimum and maximum numbers in an array ... View Questions/Answers

retrieving of value from excel file  April 27, 2010 at 1:02 PM
Dear sir, Thanks for sending a code now i am getting a particular column value i.e EmailId column for snding a massmails,now i have to get a particular column values i.e Name(A),EL(B),CL(C),Bonus(D),EmailId(E) soon...(A,B,C,D,E.. are column names) i have to get and send a mail that con... View Questions/Answers

java  April 27, 2010 at 12:40 PM
how to use jasper report ... View Questions/Answers

Need J2ee project technical flow  April 27, 2010 at 11:59 AM
Hi friend,am newbie to web development.I need j2ee project technical project flow. For example Browser ---> Controller --> Servlet(validator) <-- | Action ... View Questions/Answers

baaank acoounts related  April 27, 2010 at 10:22 AM
hi alli have one code but that is not workingkindly help me send me a working code as i a am totally new to javaAssume that the bank maintains two kinds of accounts for its customers, one called savingsaccount and the other current account. The savings accou... View Questions/Answers

computer configuration  April 27, 2010 at 10:18 AM
someone posted a code but tha is not working and i am totaly new to java and i hae to submit my projectkindly help and send a working codeCreate a class Computer that stores information about different types of Computersavailable with the dealer. The information to be s... View Questions/Answers

java compilation error  April 27, 2010 at 12:51 AM
sir ,i have jdk1.6.0_01 and textpad installed .I have also set classpath and path.But stil on compiling my servlet programs in textpad i get compile time errors like javax.servlet.* ,javax.servlet.http.* ,javx.servlet.io.* packages not found .Sir ,plz tell me what should i do? ... View Questions/Answers

merging  April 26, 2010 at 5:53 PM
how to merge two arrays and displaying the third array ... View Questions/Answers

authentification avec JSP  April 26, 2010 at 4:18 PM
salut tout le monde,je cherche à trouver la page JSP qui va me permettre de s'authentifier selon le profil de l'utilisateur. selon le role de l'utilisateur, une page bien déterminée s'affiche.je veux programmer une application web avec J2EE,j'utilise comme serveur tomcat5.0,et comme logi... View Questions/Answers

how to get a values from processRecord  April 26, 2010 at 4:12 PM
dear sir,i have a problem in getting a values from java to jsp.Here jsp is used to read a excel sheet that intern call a java program so i want a column values i.e a column contains a email id these values to be inserted into a CC text area so please help me sir...thanks in advance..... View Questions/Answers

programming  April 26, 2010 at 3:06 PM
A student?s marks and status is determined according to the following schedule:Marks StatusGreater than or equal to 75 ExcellentLess than 75 but greater than or equal to 60 GoodLess than 60 but greater than or equal to 50 AverageLess than 50 but greater than or equal to... View Questions/Answers

programming  April 26, 2010 at 2:57 PM
Writes a program that reads 10 student?s CGPA and determine the status of theirUndergraduate Awards. Table of Undergraduate Awards is shown below:CGPA Status of UndergraduateAwardsMore than or equal to 3.70 First Class HonorsMore than 3.70 and less than orequal to... View Questions/Answers

socket class in java  April 26, 2010 at 2:57 PM
i created server and client class using socket....i have used localhost and port as 2010....if again i connected in that port it is saying already the port is used....now my question is how to close the port after it is used...??plz...help me in ... View Questions/Answers

struts  April 26, 2010 at 11:29 AM
hi..i have a problem regarding the webpagein the webpage i have 3 submit buttons are there.. in those two are similar and another one is taking different action..as per my problem if we click on first two submit buttons it is going to action in the form tag.. but if we click ... View Questions/Answers

Getting an exception  April 26, 2010 at 10:54 AM
sir i used u r code for sending a mass email by reading an excel sheet,but i am getting a following error so please help me if any changes in code .thanks in advance..java.io.IOException: Invalid header signature; read 0x6576206C6D783F3C, expected0xE11AB1A1E011CFD0at or... View Questions/Answers

insert arabic chacters in mysql via java  April 25, 2010 at 3:21 PM
Dear,I have I java rpogram that I want to insert arabic letters in mysql.Do you have any idea about the configuration of mysql that accepts arabic charcters.I will send you the code:package DBFin;import java.sql.*;import java.io.*; import ... View Questions/Answers

java  April 25, 2010 at 2:34 PM
What are interthread communication mechanism avialable in java. with example. ... View Questions/Answers

java  April 25, 2010 at 2:32 PM
Explain the process of adding class to existing packeges. ... View Questions/Answers

Java  April 25, 2010 at 2:31 PM
What happens if a final keyword is applied to Class, Function and Identifier. ... View Questions/Answers

hi  April 24, 2010 at 1:15 PM
hi sir,Thanks for ur coporation,i am save the 1 image with customer data,when i am search that customer data,i want to see that image (already saved image based on the customer data previously),plz provide program sir,plzzzzzzzzzz i have a panel that allows user to enter new custo... View Questions/Answers

java-help  April 24, 2010 at 12:33 PM
hello sir, please help me.....the below given is the output.java programhere in this program am using the stmtsta. append("clustering")where ta is a textarea created in input.java file.i have designed only one form with button and textarea. on button press this output.jav... View Questions/Answers

Getting an exception  April 24, 2010 at 11:18 AM
sir i used u r code for sending a mass email by reading an excel sheet,but i am getting a following error so please help me if any changes in code .thanks in advance..java.io.IOException: Invalid header signature; read 0x6576206C6D783F3C, expected 0xE11AB1A1E011CFD0 ... View Questions/Answers

JS  April 24, 2010 at 11:17 AM
<% try { Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); Connection con=DriverManager.getConnection("jdbc:odbc:newdsn","sa","master"); Statement stat=con.createStatement();... View Questions/Answers