Home Answers Questions Question and Answers


Latest Programming Questions askedAsk your question?

Jsp code  May 5, 2010 at 11:50 PM
PlaceAd.jsp<[email protected] import="java.sql.*"%><[email protected] import="java.io.*"%><[email protected] import="java.lang.*"%><[email protected] import="java.util.Date"%><[email protected] import="java.text.*"%><[email protected] ... View Questions/Answers

Jsp code  May 5, 2010 at 11:48 PM
<[email protected] import="java.sql.*"%><[email protected] import="java.io.*"%><[email protected] import="java.lang.*"%><[email protected] import="java.util.Date"%><[email protected] import="java.text.*"%><[email protected] import="java.text.Simple... View Questions/Answers

File transfer to teh server  May 5, 2010 at 7:51 PM
hi,, I've been trying to make an application where the user select several fiels using JFileChooser and then the program read all the files and then save the content of all in 1 file and then send it to the server using client/server sockets, I've tried many ways and non seems to worki... View Questions/Answers


File transfer from client to server  May 5, 2010 at 7:44 PM
hi,, I've been trying to make an application where the user select a file using JFileChooser and then the program directly send it to the server using client/server sockets, I've tried many ways an non seems to work .So whats the proper way to do it ? using DataOutputStream or FileOutput... View Questions/Answers

browser  May 5, 2010 at 4:31 PM
I use morzila as my default browser. i u to educate on how I can increase my browser's speed. ... View Questions/Answers

java  May 5, 2010 at 4:21 PM
What is behind this code system.out.println("hi");i means to say that i want to understand the main functionality of this code & what is the depth of this code??how this code is working??plz tell me breifly the core of this code ??? ... View Questions/Answers

java related  May 5, 2010 at 4:17 PM
Why the "public static void main(Strings args[]){}??why we use static key words here!!!? ... View Questions/Answers

Reg:Encapsulation  May 5, 2010 at 3:44 PM
where we use encapsulation in programs?how we know that is encapsulated? ... View Questions/Answers

CV  May 5, 2010 at 3:15 PM
how do you write cv ... View Questions/Answers

to get radio button value  May 5, 2010 at 2:56 PM
hello friend, i have a problem regarding the struts2.i have code like thiss:form > <table border="1"> <tr> <th></th><th>USERNAME</th><th>SKILL</th> </tr> <s:iterator value="... View Questions/Answers

java cloning  May 5, 2010 at 1:20 PM
how to clone an array??? ... View Questions/Answers

WEBSERVICES=1  May 5, 2010 at 1:03 PM
I have develop webservices through wsad classes i dont want like this.I want like Create simple class to acess webservice is it possibule to create simple class to acess the webservice? ... View Questions/Answers

WEBSERVICE  May 5, 2010 at 12:59 PM
Is is possibule to create simple class to acess the webservice?plz help me ... View Questions/Answers

Applet  May 5, 2010 at 12:57 PM
import javax.swing.*;import java.awt.event.*;import java.awt.*; public class Triangle extends JApplet implements MouseListener { // The rest of the applet will be in the next // example. Point[] pt = new Point[3]; int ptCo... View Questions/Answers

Programming with Java  May 5, 2010 at 12:38 PM
Using valid Java code from Chapter 1 to 6, create an object oriented(Java application ) program with a minimum of two classes. (Problem 5 page 167)2. The classes should includes the following requirements:a. Include the dialogue class for getting user input and show... View Questions/Answers

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 [email protected] ... 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 [email protected] ... 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