Home Answers Questions Question and Answers


 
 

Latest Programming Questions askedAsk your question?

make trial application  March 1, 2011 at 1:21 PM
Hello java master, i want to ask something about make java application trial in one month or two month. how to combine my application and give a trial application. what i must to do? Can you give me a tutorial? Thank you ... View Questions/Answers

Passing a java property to a javascript variable  March 1, 2011 at 12:52 PM
i want to assign a java property to a js variable: action class: collegename have a property in action class which having its getter/setter method. JSP code: <%@ taglib prefix="s" uri="/struts-tags"%> <% response.setContentType("application/javascript"); %> var collegename ... View Questions/Answers

servlet  March 1, 2011 at 12:42 PM
Dear Deepak, is it compulsary to write the sevice() becoz i ve seen some example which does not ve sevice()..is it tue? plz replay me with thanks praveen ... View Questions/Answers

Advertisement

JSF Related  March 1, 2011 at 12:40 PM
In what way JSF makes the difference between Applets?? After reading this article I understood instead of using Request and response, we are directly dealing with the Listeners... If soo... we can develop the frames and embed that into applets also rite.. Do u mean JSF also does the same internal... View Questions/Answers

ERRor in executing DB program  March 1, 2011 at 12:25 PM
While executing following code an Error was generated.can any one help me for this. LiveDB liveDBObj = DataSourceFactory.getLiveDBInstance(); PreparedStatement pstmt=null; String qry=""; qry="insert into inst(id,name) values (?,?)"; pstmt =... View Questions/Answers

j2me mysql connectivity  March 1, 2011 at 12:04 PM
I do a project on reservation using j2me. I need a connectivity to a MYSQL database. How do I do this Thanks and regards Karthiga ... View Questions/Answers

JSP and XML .data store nd retrieve  March 1, 2011 at 11:53 AM
I have made a form in jsp having emp id, projectname and emp name.I want to store data related to employee in xml file.How can i store data entered by user in XML file and later retrieve data in another jsp page using retrieve submit button.Please tell step by step instructions .I am using Jdevel... View Questions/Answers

struts2  March 1, 2011 at 11:15 AM
dear deepak sir plz give the struts 2 examples using applicationresources.properties file. ... View Questions/Answers

email validation  March 1, 2011 at 11:12 AM
during email validation.... after domain name which it means if example example@gmail.co .... this address allowed by any validation program .... but i want to show invalid email address because domain name com, co.in, like that nly ... View Questions/Answers

email validation  March 1, 2011 at 11:12 AM
during email validation.... after domain name which it means if example example@gmail.co .... this address allowed by any validation program .... but i want to show invalid email address because domain name com, co.in, like that nly ... View Questions/Answers

regarding struts 2  March 1, 2011 at 10:56 AM
is it not possible to get values from applicationresources.properties into our application in struts 2 ... View Questions/Answers

hibernate Foreign key  March 1, 2011 at 10:34 AM
sir, I am using hibernate in netbeans. I have 2 following tables CREATE TABLE persons ( P_Id int(11) NOT NULL, LastName varchar(255) NOT NULL, FirstName varchar(255) DEFAULT NULL, Address varchar(255) DEFAULT NULL, ... View Questions/Answers

java  March 1, 2011 at 10:16 AM
what is demon thread? ... View Questions/Answers

Retriving data stored in database  March 1, 2011 at 9:45 AM
Hi, How to retrive data from my sql database using Hibernate,Spring and tapestry please give me an example.I am new to this Hibernate and Spring. ... View Questions/Answers

breaking  March 1, 2011 at 9:34 AM
code for breaking cipher image ... View Questions/Answers

hacking code  March 1, 2011 at 9:33 AM
how to hack the cipher image using brute force method for edge crypt algorithm ... View Questions/Answers

what is multi-threading .?  March 1, 2011 at 9:15 AM
what is multi-threading.what is the use in real time, with example programs. ... View Questions/Answers

string object  March 1, 2011 at 8:02 AM
Hi, how do i write a program that works with a user's password, when the program should prompt the user for a possible password, that is between 6 and 10 characters long, that contains at least one letter, and contains at least one digit? ... View Questions/Answers

dbms  March 1, 2011 at 7:56 AM
how to sum 2 columns in a table and put the result in new coluumn. the o/p should be col1 col2 col3 12 24 36 10 30 40 5 10 15 ... View Questions/Answers

How to select only .txt file to be zipped using java?  March 1, 2011 at 2:17 AM
Hello, i'm trying to zipp .txt files from a folder but i want to know how to select only .txt file. I try my code but it's not working, could any one help me please. [CODE] here is the code: import java.util.*; import java.util.zip.*; import java.io.*; public class ZipFile... View Questions/Answers

Read data from excel file and update database using jsp  March 1, 2011 at 2:06 AM
read data from excel file and update database using jsp Hi, I am using a MySQL database for scientific research analysis. My team members sends research data in excel file format and I need to update MySQL tables with new experimental data. How can I upload excel file and update database ... View Questions/Answers

how to color the Eclipse editor background programmatically?  February 28, 2011 at 10:47 PM
I have to color specific portion(background) of the of the Eclipse editor by running the java programm and provided that do the coloring from a given line number to another line number. Example Start line number is : 15 end line number is : 24 something like that . p... View Questions/Answers

display co-occurrence words in a file  February 28, 2011 at 10:08 PM
how to write java program for counting co occurred words in the file ... View Questions/Answers

display co-occurrence words in a file  February 28, 2011 at 10:08 PM
how to write java program for counting co occurred words in the file ... View Questions/Answers

problem in linking the html page using servlets  February 28, 2011 at 9:05 PM
i want to create a login page using html & servlets and as soon as i click the login button it should open my home page. and i have saved username and password in a database using MS-Access. how should i do this? please help me..m a fresher.. ... View Questions/Answers

searching books  February 28, 2011 at 8:24 PM
how to write a code for searching books in a library through jsp? ... View Questions/Answers

Please give me coding for this..  February 28, 2011 at 8:17 PM
Write an application that inputs one number consisting of five digits from the user.separates the number ibto its individual digits and prints the digits separated from one another by three spaces each.For Example.if the user types the number 42339,the program should print 4 2 3 3 9... View Questions/Answers

arrayq3  February 28, 2011 at 8:11 PM
Write a program that accepts two arrays, an array of fruit names and an array of price of fruits, and a fruit name and returns the price of the fruit. (Assume that a price in the second array corresponds to the price of the fruit at the same position in the first list) i. e. if inputs are {??Gra... View Questions/Answers

arrayq2  February 28, 2011 at 8:11 PM
Write a program that accepts an array of marks obtained by various students, and a rank, and returns the mark corresponding to the given rank. Assume that no mark is repeated in the array. ... View Questions/Answers

arrayq1  February 28, 2011 at 8:09 PM
Write a program to combine 3 sorted arrays into 1 sorted array and remove the duplicate elements in the resultant array ... View Questions/Answers

Is this correct???what are the unnessasary codings here??  February 28, 2011 at 8:05 PM
import java.util.Scanner; public class Length { public int meters; public int centiMeters; public double yards; public double feet; public double inches; public double newMeter; public void read() { Scanner kbd=new Scanner(System.in); System.out.... View Questions/Answers

Virus  February 28, 2011 at 7:51 PM
Pl sir make a program which hang the pc. In other words make a virus program in C language. ... View Questions/Answers

showing the information of database in textbox  February 28, 2011 at 7:41 PM
how to make a information of a database make appear to the user in the textbox? ... View Questions/Answers

one error but i dont know how to fix it o_O!!!  February 28, 2011 at 6:32 PM
where is the mistake here ?? import java.utill.Scanner; public class Time { public static void main (String [] args) { Scanner keyboard = new Scanner (System.in); System.out.println ("Enter Secends"); int Secends = keyboard.next(); int... View Questions/Answers

clarify bt/w service() and doget/dopost()  February 28, 2011 at 5:32 PM
Dear friends, i ve question regarding service()and doget/dopost.. the container calls service() where it does the service for the request so then wat is the role of doget/dopost plz give me presice answer.. ... View Questions/Answers

java array  February 28, 2011 at 4:57 PM
q4.array Write a program that accepts two arrays, an array of fruit names and an array of price of fruits, and a fruit name and returns the price of the fruit. (Assume that a price in the second array corresponds to the price of the fruit at the same position in the first list) i. e. if inputs ar... View Questions/Answers

java recursion  February 28, 2011 at 4:54 PM
Count of most occurring digit Find the digit that occurs most in a given number ... View Questions/Answers

java  February 28, 2011 at 4:53 PM
q2.array. Write a program that accepts an array of marks obtained by various students, and a rank, and returns the mark corresponding to the given rank. Assume that no mark is repeated in the array. ... View Questions/Answers

java  February 28, 2011 at 4:53 PM
q1.array. Write a program to combine 3 sorted arrays into 1 sorted array and remove the duplicate elements in the resultant array ... View Questions/Answers

display he new customer no in textbox  February 28, 2011 at 4:41 PM
i want to add the new customer for that when i click on add butto the new customernumber should be display in textfield . plz ell me the suggestions & code ... View Questions/Answers

how to set the value of textfield constant  February 28, 2011 at 4:24 PM
how to set the value of textfield constant ... View Questions/Answers

File  February 28, 2011 at 3:57 PM
How to create .Exe file in jana? ... View Questions/Answers

Virus  February 28, 2011 at 3:56 PM
Pl make a program which hang the pc. using a long array and dump all memory location. like a real virus. ... View Questions/Answers

Boolean DataType  February 28, 2011 at 2:58 PM
What is the Size of the Boolean datatype in Java? ... View Questions/Answers

How to carry multiple values from a Servlet to a JSP?  February 28, 2011 at 2:46 PM
By using the below code I am able to carry the username to a JSP (single value). ----response.sendRedirect("index.jsp?uname="+username);---- But I want multiple values needs to be carried from my servlet to a JSP. How do I do that? ... View Questions/Answers

Email queue while sending mail using Struts Class  February 28, 2011 at 2:33 PM
Can I maintain a queue of mails being sent from a JSP page in a DB to get its status ... View Questions/Answers

Email queue while sending mail using Struts Class  February 28, 2011 at 2:33 PM
Can I maintain a queue of mails being sent from a JSP page in a DB to get its status ... View Questions/Answers

jsp  February 28, 2011 at 2:14 PM
i am using java inside java script page. in that page i want to use two dropdown list. in first dropdown list i am getting data from sql server database. in second dropdown list i want to get data according to selection made in first dropdown list and it will also come from ms-access database.(fo... View Questions/Answers

Decision tree to RDF  February 28, 2011 at 1:11 PM
How do we process a decision tree in java and obtain an RDF file of the decision tree? ... View Questions/Answers

Error in reading Excel data using jsp even having .xls and POI Library in respective folders  February 28, 2011 at 12:32 PM
Hi, hello.xls and POI library files are there in respective folders. the printStackTrce() method shows the following Error message on console. java.io.IOException: Invalid header signature; read 576460838270094160, expected -2226271756974174256 at org.apache.po... View Questions/Answers

Caching HttpServletResponse's content.  February 28, 2011 at 12:09 PM
I am trying to cache the response using Filter. I have extended HttpResponseWrapper. It has issues with flushing the streams. If you hit the service for the first time, it fetches the data from the db, caches it, but it says transfer closed with xx bytes remaining to read, the next time it will ... View Questions/Answers

Error in reading Excel data using jsp  February 28, 2011 at 11:49 AM
ERROR while executing bellow code:java.io.IOException: Invalid header signature; read 576460838270094160, expected -2226271756974174256 &lt;%@page import="java.io.*"%> &lt;%@page import="java.util.*"%> &lt;%@page import="org.apa... View Questions/Answers

How to pass multiple values from a servlet to JSP?  February 28, 2011 at 10:47 AM
hi, I want to pass multiple values form a servlet to JSP. Hw do i do that? I am able to send one value at a time without any prb, but I am unable to carry multiple (from two) values. ... View Questions/Answers

how to add date and change date in java - netbeans  February 28, 2011 at 10:23 AM
I need to code use to increase date How to get date after 30 days using netbeans ... View Questions/Answers

next button in servlet  February 28, 2011 at 10:02 AM
i want to add next,previous button to get next record in my servlet. can you explain the logic to do that? ... View Questions/Answers

JAVA Annotation Error  February 28, 2011 at 12:23 AM
while compiling simple java program i get annotation error i.e class will only be accepted if annotation processing is explicitly requested..how to solve it??? ... View Questions/Answers

java program to insert data into a file and count the number of words from the file???????  February 28, 2011 at 12:10 AM
java program to insert data into a file and count the number of words from the file??????? ... View Questions/Answers

java program to check whether a number is pallindrome or not using recursion???????  February 28, 2011 at 12:07 AM
java program to check whether a number is pallindrome or not using recursion??????? ... View Questions/Answers

java program to check whether a number is pallindrome or not using recursion???????  February 28, 2011 at 12:07 AM
java program to check whether a number is pallindrome or not using recursion??????? ... View Questions/Answers

java program to check whether a number is pallindrome or not using recursion???????  February 28, 2011 at 12:07 AM
java program to check whether a number is pallindrome or not using recursion??????? ... View Questions/Answers

java program to check whether a number is pallindrome or not using recursion???????  February 28, 2011 at 12:07 AM
java program to check whether a number is pallindrome or not using recursion??????? ... View Questions/Answers

java program to check whether a number is pallindrome or not using recursion???????  February 28, 2011 at 12:07 AM
java program to check whether a number is pallindrome or not using recursion??????? ... View Questions/Answers

java program to check whether a number is pallindrome or not using recursion???????  February 28, 2011 at 12:07 AM
java program to check whether a number is pallindrome or not using recursion??????? ... View Questions/Answers

java program to check whether a number is pallindrome or not using recursion???????  February 28, 2011 at 12:07 AM
java program to check whether a number is pallindrome or not using recursion??????? ... View Questions/Answers

is set interface synchronize by default???????  February 28, 2011 at 12:05 AM
is set interface synchronize by default??????? an whether list is syncrhronized by default ... View Questions/Answers

why using static keyword  February 27, 2011 at 8:42 PM
why using static keyword ... View Questions/Answers

java  February 27, 2011 at 5:57 PM
FIRST I SUCESSFULLY CONNECTED TO JDBC TYPE-4 DRIVER BUT NOW IT SHOWING ERROR BUTT TYPE2 WORKING IT SHOWING IN GETCONNECTION() DATABASE ERROR ... View Questions/Answers

Choosing hosting  February 27, 2011 at 4:57 PM
Hi, How to choose best hosting company? Thanks ... View Questions/Answers

PHP Web Hosting  February 27, 2011 at 4:48 PM
Hi, How to choose PHP Web Hosting? Thanks ... View Questions/Answers

delete an item from database  February 27, 2011 at 4:20 PM
how to delete an item from the database using jsp ... View Questions/Answers

how to generate PDF file using JSP with net beans  February 27, 2011 at 3:41 PM
I am trying to generate PDF file using JSP. I even added itext5.0.6 jar file in library. It shows the following errors... PLz anyone help me. Its urgent.... compile-jsps: Compiling 1 source file to C:\Documents and Settings\Administrator\My Documents\NetBeansProjects\WebApplication1\build... View Questions/Answers

time format  February 27, 2011 at 3:17 PM
How to seperate time from following DateFormat dateFormat = new SimpleDateFormat("yyyy-dd-mm HH:mm:ss.S"); ... View Questions/Answers

message box  February 27, 2011 at 12:43 PM
How to show the message "invalid username and password" after redirecting the page to the login form? ... View Questions/Answers

Format class for time  February 27, 2011 at 12:36 PM
What is use of format class? ... View Questions/Answers

redim() in java  February 27, 2011 at 12:28 PM
what is redim() in java and is there any way to reinitialize the array ? ... View Questions/Answers

Java image query from Rupesh  February 27, 2011 at 11:11 AM
who give web page link to any submenu in menu bar of screen in java so that after click on that submenu, this submenu direct link to web brower or web page. ... View Questions/Answers

Web application  February 27, 2011 at 11:05 AM
in web applications which file will execute first either servlet or jsp ... View Questions/Answers

Vehicle Tracking System using GPS and GSM modem project  February 27, 2011 at 9:45 AM
what is the source coding of Vehicle Tracking System using GPS and GSM modem? ... View Questions/Answers

basic  February 27, 2011 at 8:11 AM
thank you sir for your nice reply . ......sir my next que, if java program is modified,if the program is compiled & executed without saving it again,its previous execution takes place,why? ... View Questions/Answers

jsp  February 27, 2011 at 7:18 AM
how to create a table in oracle using jsp and the table name is entered in text feild of jsp page. ... View Questions/Answers

Putting a wait notification in Swing  February 27, 2011 at 1:28 AM
Hi, I want to created a simple editor with functions like Open,save,close document? I want to display a frame "Please wait" which comes up whenever a user clicks a Open or Save document Step:- 1)User clicks on Save Document 2)Display "Please wait" JDialog a... View Questions/Answers

Putting a wait notification in Swing  February 27, 2011 at 1:28 AM
Hi, I want to created a simple editor with functions like Open,save,close document? I want to display a frame "Please wait" which comes up whenever a user clicks a Open or Save document Step:- 1)User clicks on Save Document 2)Display "Please wait" JDialog a... View Questions/Answers

struts  February 27, 2011 at 1:18 AM
Hi, 1) can we write two controller classes in struts ? ... View Questions/Answers

How to get the focus from a particular textarea for some action?  February 27, 2011 at 12:58 AM
Hi All, I have created one small swing applications with two textarea. I want to implement a search such a way that if there is a focus on the textarea-1 and i search for some value using ctrl+f then it should search for contents present in textarea-1... Can somebody please tell m... View Questions/Answers

Find focus of the keyboard cursor when ctrl+f is clicked in swing  February 27, 2011 at 12:46 AM
Hi, I have created one small swing applications with two textarea. I want to implement a search such a way that if there is a focus on the textarea1 and i search for some value using ctrl+f then it should search for textarea1... Can somebody please tell me ..How to find a componen... View Questions/Answers

more code help  February 26, 2011 at 11:52 PM
Instructions: Write a program to translate a message from English to Morse code. Using a simple text editor like Windows Notepad, create a text file with all of the Morse code combinations for the letters and numbers. The codes for the first five letters of the alphabet are shown he... View Questions/Answers

Top ten web hosting  February 26, 2011 at 10:57 PM
Hi, What are the features of top ten web hosting providers? I have to find the best to hosting provider from the top ten hosting provider. How to choose best hosting prover from the list of top ten hosting provider? Tell us us the list in detail. Thanks ... View Questions/Answers

What is the error in this coding?  February 26, 2011 at 10:41 PM
<% Class.forName("com.ibm.db2.jcc.DB2Driver"); System.out.println("driver loaded sucesssssssssssssssssss"); Connection Conn=DriverManager.getConnection("jdbc:db2://localhost:50000/VOTERS","db2admin","friends"); String Login_name=request.getParameter("Login Id"); String Password_id=request.getP... View Questions/Answers

regarding rev  February 26, 2011 at 9:57 PM
write a prog. in java that display all the arguments passed at the command line in reverse order. ... View Questions/Answers

Java Coding  February 26, 2011 at 7:54 PM
Hello, Can u please tel me how to improve my coding techniques.I am feeling difficulty with coding but I am perfect with my theory part ... View Questions/Answers

data entry  February 26, 2011 at 7:53 PM
Sir,How to make the data entered in one form store in different tables in database (oracle)? I have a form with fields accno,isbn,title,author,edition,publication,price,category where publication,author,edition are different tables. ... View Questions/Answers

java  February 26, 2011 at 6:28 PM
how many threads are allow in a class? ... View Questions/Answers

java  February 26, 2011 at 6:28 PM
how many threads are allow in a class? ... View Questions/Answers

find a substring by using I/O package  February 26, 2011 at 5:47 PM
Write a java program to find a sub string from given string by using I/O package. ... View Questions/Answers

By using Applet display a circle in a rectangle  February 26, 2011 at 5:45 PM
Write a java applet to display a circle in a rectangle. ... View Questions/Answers

read data from Excel sheet  February 26, 2011 at 5:15 PM
Hi, How to read data from an excel sheet using JSP. Thank you. ... View Questions/Answers

not sucess  February 26, 2011 at 3:42 PM
import java.io.*; public class Replace{ public static void main(String[]args) throws IOException { InputStreamReader z= new InputStreamReader(System.in); BufferedReader br=new BufferedReader(z); System.out.println("Enter A String:"); String s=br.readLine(); ... View Questions/Answers

Some error find whats the problem  February 26, 2011 at 1:58 PM
import java.io.*; public class Replace { public void main()throwsIoException { InputStreamReader = new InputStreamReader(System.in); BufferReader br=new BufferReader(z); System.out.println("Enter A String:"); String s=br.readline(); System.out.println(("Enter First Word:"); String w1=br.readline(... View Questions/Answers

general  February 26, 2011 at 1:49 PM
what is the diff b/w rar file and zip file... ... View Questions/Answers

Count the character in java  February 26, 2011 at 12:54 PM
Write a java program to count the character â??aâ?? typed by the user in a paragraph by implementing thread. ... View Questions/Answers

DMCA.com