Home Answers Questions Question and Answers


Latest Programming Questions askedAsk your question?

trafic site statistics  May 10, 2010 at 1:53 PM
Hello,Does the framework JSF work for creating web pages containing 3D entities (like 3DCharts)and displaying web trafic statistics using data coming from a full database ? if it does, how can we correspond the balises d:chartItem to a java class (Bean)? Thanks for any suggestions.... View Questions/Answers

prime number  May 10, 2010 at 12:50 PM
i want to write a code in java that picks prime numbers from an existing list regardless how long the list is, it should then select non prime numbers when prime numbers are finished ... View Questions/Answers

display messages in short  May 10, 2010 at 11:22 AM
hi sir, i am getting a full text message and that is shown in the table after sending a email.But now i have to get a starting few words then dots like hi dear..... so tel me how to do in javascripts or in jsp...Thanks and RegardsHarini V. ... View Questions/Answers


How to insert multiple checkboxes into Msaccess database J2EE using prepared statement  May 10, 2010 at 10:46 AM
Dear Experts,Tried as I might looking for solutions to resolve my Servlet problem, I still can't resolve it. Hope that you can share with me the solutions.In my html form which has a post, I have the following code:-<td><h3><b>Subjects to be tut... View Questions/Answers

WEB-SERVICES-JAXRPC  May 10, 2010 at 10:20 AM
when i excute simple webservice i got this exception:javax.xml.rpc.JAXRPCException plz hel me how to resolve? ... View Questions/Answers

writing programs  May 10, 2010 at 4:05 AM
1.write a program to display odd numbers from 1-50.2.And Write a program to find the facorial of a number ... View Questions/Answers

DIV ERROR  May 9, 2010 at 11:56 PM
I HAV FACING THE PROBLEM.....when...i m fetching data from my data base using php...if the data hav any space ....at that time the view is very good....but if there hav'nt any space at that time my div tag is strached....when i maintain max width....at that ... View Questions/Answers

Java compile error  May 9, 2010 at 11:00 PM
I am having trouble compiling the Java project available on this site athttp://www.roseindia.net/chatserver/index.shtmlKindly let me know what is the problem?Secondly, do you know any easy method to compile Java on Mac besides using the Terminal? ... View Questions/Answers

JSP:HTML Form in-place Editing  May 9, 2010 at 6:03 PM
Hi, I want to thank the people who took the time and made the effort to respond to my 2 questions posted, truly ROSEINDIA and its employees are very helpful and responsive and understand developer's needs. This is a follow up to the HTML Form in-place editing. The code works ... View Questions/Answers

swings  May 9, 2010 at 1:12 PM
can a wavelet picturization to the image can be to retrieve a image from the database. please help me ... View Questions/Answers

java  May 9, 2010 at 1:07 PM
give the code to design the hotel management software ... View Questions/Answers

java  May 9, 2010 at 12:58 PM
What do you mean by an array ? explain with an example ... View Questions/Answers

program  May 9, 2010 at 9:02 AM
how to write the following code?s=(a+1/2)+(a+3/4)+(a+5/6)......a+n/m ... View Questions/Answers

prime number  May 9, 2010 at 6:47 AM
this project is to determine if a phone number is a prime number. if the number is a prime number then print a message to the effect. if the number is not a prime number then print the prime factors of the number. allow the user to continue entering numbers for as long as he or she wishes. ... View Questions/Answers

compute nth root  May 9, 2010 at 6:23 AM
write a program that computes the nth root of a number. given a real number X greater than 1 and less than -1 and given an integer Y, compute the nth root Z such that Z*Z*Z*Z*Z*Z*Z...(Y times)..Z*Z=X, or Z^y=X(Remember if X is negative Y must be odd.) The user enters values for X and Y and the prog... View Questions/Answers

java beans  May 8, 2010 at 7:18 PM
how and where are java beans implemented ... View Questions/Answers

java preface  May 8, 2010 at 7:16 PM
what is difference between java programming language and java script? how do JSP, JDBC, Java servlets link? what is core java ... View Questions/Answers

Jsp count and java bean  May 8, 2010 at 6:31 PM
Please am on a project and i want to create a countdown timer that will have this format HH:MM:SS. Am working with jsp and java beans please somebody help. ... View Questions/Answers

java  May 8, 2010 at 1:27 PM
hi sir ,my questions :1) explain with example polymorphism , abstraction, and inheritance.2)explain with example the difference between hash map and array . ... View Questions/Answers

java files  May 8, 2010 at 1:10 PM
Hi!How to create files (not temporary) when i got exception in my java program.I want to write the complete exception in file...Thanks in advance... ... View Questions/Answers

java question  May 8, 2010 at 1:05 AM
how would you convert the following values into a string(a)124(b)5.89 ... View Questions/Answers

java  May 8, 2010 at 1:01 AM
how would you convert the following values into a string ... View Questions/Answers

java program  May 8, 2010 at 12:17 AM
hi sir, i want a simple java program to pick out the biggest in an array of integers ... View Questions/Answers

JAVA connection pooling  May 7, 2010 at 9:20 PM
how to do JDBC connection pooling in Apache Tomcat ???? ... View Questions/Answers

java script  May 7, 2010 at 7:02 PM
hi sir,the program code that i need for is :1)there are two button in javascripting if you click the Ok button the cancel should disappear . ... View Questions/Answers

writing java programs  May 7, 2010 at 6:50 PM
How do i write a code to display even numbers from 1 to 50 ... View Questions/Answers

java code  May 7, 2010 at 4:13 PM
hi sir, i want coding for the program :1) write a program : add and display the strings by assingning different attribut to each of them and add in a variable ( say advar):"java" "interview""conducted"and also display "interview complete"using addvar.... View Questions/Answers

java  May 7, 2010 at 3:30 PM
can abstract class be final? ... View Questions/Answers

Collections arraylist  May 7, 2010 at 2:24 PM
how we can make array list as syncronised....and what will be the code for that? ... View Questions/Answers

code  May 7, 2010 at 12:54 PM
hi sir my question is i have created a html ang jsp code for login process.my problem is every time it is accepting a new id and password.how to write the code to accept an existing id and password. ... View Questions/Answers

Servlets  May 7, 2010 at 12:28 PM
initially i have one registraion html page.i entered values into that html. now i am reading values into servlet from this html page. These values are going to be inserted into database.now here i want display one thing i.e, If suppose the values insertion in d... View Questions/Answers

swings  May 7, 2010 at 11:41 AM
i want to retrieve image using histogram of that image and display the histogram in the screen that is my problem ... View Questions/Answers

Collections  May 7, 2010 at 11:37 AM
By default, Hashtable is unordered. Then, how can you retrieve Hashtable elements in the same order as they are put inside? ... View Questions/Answers

swing  May 6, 2010 at 7:07 PM
hi..please help me to retrieve image using histogram of that image ... View Questions/Answers

how to get a column values from a excel file after attaching it  May 6, 2010 at 4:38 PM
hi sir,How to get a column values from a excel file after attaching it while sending a email,while sending a email if i attached a file that should be read and get a values from that store that value in To input box.Please help me sir....Thanks and Regards Harini Veerapur ... View Questions/Answers

plese tell -Struts or Spring  May 6, 2010 at 3:46 PM
Hello,i want to study a framework.i have some basic overview of Struts1.1 and Strurts 2.0.i don't know much about spring.which frameork i should do Struts or Spring and which version.i also want to do hibernate.please guide.thanks. ... View Questions/Answers

submitting corect user and passowrd, it again comes on login.jsp  May 6, 2010 at 3:36 PM
i am submit username and password in login.jsp, after submit correct username and password, it again come in login.jsp.Here some files:Struts.xml: <?xml version="1.0" encoding="UTF-8" ?><!DOCTYPE struts PUBLIC "-//Apache ... View Questions/Answers

java compilation  May 6, 2010 at 3:22 PM
write java methods to implement queues by the simple but slow method of keeping the front of the queue always in the first position of a linear array. ... View Questions/Answers

java compilation  May 6, 2010 at 3:12 PM
write java methods to implement queues in a linear array with two indices front and rear, such that, when rear reaches the end of the array, all the entries are moved to the front of the array. ... View Questions/Answers

what is static synchronizes  May 6, 2010 at 12:54 PM
what is static method synchronized ... View Questions/Answers

display messages in short  May 6, 2010 at 12:08 PM
dear sir, I am able to send a email and also i am able to getting a message from that email ,storing that in a data base and retrieving showing that in a table .But now i want to get a starting few words from that message rest will be few dots or something.when mouse moves on that spe... View Questions/Answers

Java Query  May 6, 2010 at 11:27 AM
Q. Write a java program to read the an array's elements(not size fixed of an array) entered by user? ... View Questions/Answers

Arrays  May 6, 2010 at 12:49 AM
I want to write a program that prompts the user to enter a number of integers from the keyboard. First ask the user how many integers s/he would like to enter. Then create a corresponding array and prompt the user to enter each of the integers using a for-loop. Once entered, the program should outpu... View Questions/Answers

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

Jsp code  May 5, 2010 at 11:48 PM
<%@page import="java.sql.*"%><%@page import="java.io.*"%><%@page import="java.lang.*"%><%@page import="java.util.Date"%><%@page import="java.text.*"%><%@page 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 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