Home Answers Questions Question and Answers


 
 

Latest Programming Questions askedAsk your question?

Sturts2  December 1, 2010 at 6:07 PM
Hi.. I am new to struts2 , I created one login application in struts2 using eclipse helios. If i run that program i am getting 404 not found error. My code is ok but i dont know how to put files in Eclipse. So how to run my program in eclipse helios and how to slove this 404 error. I am u... View Questions/Answers

java  December 1, 2010 at 4:14 PM
what is the use of thread in real time ... View Questions/Answers

identify the paths  December 1, 2010 at 3:00 PM
write a srcipt for cutting only the paths of the file present inside a directory or folder ... View Questions/Answers

Advertisement

how do i use sql like query in my jsp page  December 1, 2010 at 2:02 PM
how do i use sql like query in my jsp page ... View Questions/Answers

how to integrate EJB with Struts  December 1, 2010 at 12:20 PM
I am new to EJB. Up to now I wrote applications by using JDBC and struts.Now I want to use EJB with struts for this what should I do? ... View Questions/Answers

New to JSP..need help to make & run a JSP program.  December 1, 2010 at 12:09 PM
Hi, I have installed Tomcat 5.5 on my system. Plz help me to make a simple JSP program. And also how to run it. ... View Questions/Answers

how to pass class variable to another class  December 1, 2010 at 11:19 AM
i need to access a variable from a class to another class currently running at the same time. using Classname.variable i got the value. But when i change the value second time i got the previous value. I used static variabe. ... View Questions/Answers

itemrenderer  December 1, 2010 at 10:23 AM
why should we use a keyword super in the itemrenderer script?... ... View Questions/Answers

question  December 1, 2010 at 9:55 AM
hi good morning. how to retrive the data from one form of jsp to another form.please help me ... View Questions/Answers

I need to join three tables and return data that may not be in all three tables  December 1, 2010 at 2:28 AM
How do I join three tables and return information even if it is in only two of the tables ... View Questions/Answers

Getting garbage value  December 1, 2010 at 1:49 AM
Thank You Sir for helping me out from the problem. Now I'm facing some problem with the value I'm passing to the textfield from the link gets some garbage value whenever I'm using some particular set of value like from 0010 to 0757. After that from 0758 to 2400 every value returns perfectly.Code ... View Questions/Answers

Getting garbage value  December 1, 2010 at 1:47 AM
Thank You Sir for helping me out from the problem. Now I'm facing some problem with the value I'm passing to the textfield from the link gets some garbage value whenever I'm using some particular set of value like from 0010 to 0757. After that from 0758 to 2400 every value returns perfectly.Code ... View Questions/Answers

mazimizing profit in markets using java  December 1, 2010 at 12:49 AM
an optimization algorithm with interest in financial market processes. Algorithm: to optimize the profit of your virtual investment in an arbitrary portfolio of stocks by maximizing it. Constraints: 1. Investment period over 20 consecutive trading days 2 Select the 10 stocks alg... View Questions/Answers

JFormattedTextField issue  November 30, 2010 at 10:11 PM
Can someone help me to understand how to place a JFormattedTextField inside a JComboBox. The JComboBox is in one of the JTable columns. The JComboBox holds a list of item and I also want the JComboBox to be editable. But just for 5 uppercase letters and thats why I want to place that JFormattedTe... View Questions/Answers

Steve Evans  November 30, 2010 at 9:45 PM
What if you did not use the word continue, or break, and you still get the unreachablestatement? ... View Questions/Answers

Java  November 30, 2010 at 9:39 PM
what is the difference between argument and assignment? ... View Questions/Answers

java code  November 30, 2010 at 9:29 PM
what is the code to turn off my pc through java program ... View Questions/Answers

Java I/O Assistance + Loop  November 30, 2010 at 9:16 PM
I'm trying to make this program write file numbers.dat that's accomplished. I'm also trying to make it write all even numbers into the file and close the file. Then I'm trying to make it re open file and append all odd numbers 1-100 and finally close file. But for some reason I CANNOT Get... View Questions/Answers

Examples on threads and mulithreading.....  November 30, 2010 at 8:25 PM
Is any good examples on threads and Mulithreading... ... View Questions/Answers

storing data into flat files  November 30, 2010 at 8:15 PM
how can i retrive data from database and store data in flat files ... View Questions/Answers

java help?  November 30, 2010 at 7:57 PM
Write a program, where you first ask values to an array with 6 integer values and then count the sum and average of the values in methods (send in the array & return the counted value to the main program). Print out results in the main program ... View Questions/Answers

error  November 30, 2010 at 6:59 PM
import java.io.*; public class employee { String name,address,ss; int mos,phone; double it; public void accept(String n,string ad,int ph,String s,int ms) { name=n; address=ad; phone=ph; ss=s; mos=ms; } ... View Questions/Answers

errors  November 30, 2010 at 6:45 PM
i am getting an error saying cannot find symbol class string.how do i rectify it. ... View Questions/Answers

diff between spring and struts in java  November 30, 2010 at 6:20 PM
diff between spring and struts in java ... View Questions/Answers

Collection framework tutorial  November 30, 2010 at 6:02 PM
Hi, I am learning Collection framework in Java. I want many examples of Java collection framework. Tell me the best tutorial website for learning Java Collection framework. Thanks ... View Questions/Answers

WRITE a simple JSP  November 30, 2010 at 5:42 PM
Write a JSP that accepts a string parameter from the browser and simply displays it back in the HTML response ... View Questions/Answers

how to insert list box in java script dynamically and elements retrieving from database like oracle  November 30, 2010 at 5:32 PM
hi all, how can i insert elements into java script list box retrieving from Database. whenever I insert any element in the Db it is dynamically inserted into listbox ... View Questions/Answers

java mail  November 30, 2010 at 5:29 PM
By Which code or function i can send E-mail to given E-mail Address ... View Questions/Answers

heap memory in j2me  November 30, 2010 at 5:29 PM
how to get j2me heap memory size? ... View Questions/Answers

java  November 30, 2010 at 4:25 PM
why we pass reference as a parameter in any java method ... View Questions/Answers

dropdown  November 30, 2010 at 4:20 PM
how to select an item from the dropdownlist when we load the page ... View Questions/Answers

JAVA  November 30, 2010 at 2:31 PM
If anybody know the abbreviation of JAVA.... ... View Questions/Answers

java program  November 30, 2010 at 1:35 PM
hello.. do u all have any source to do the java programming for Snake and Ladder Game or any reservation system.. help me plz ... View Questions/Answers

Java class name and file name are different  November 30, 2010 at 12:45 PM
Can we run a Java program having class name and file name different? ... View Questions/Answers

how to insert list box in java script dynamically and elements retrieving from database like oracle  November 30, 2010 at 12:40 PM
Hi, how to dynamically increase size of list box in javascript when elements retrieving from database.. That is whenever I insert new course in a table.. It should be seen in my list box.. ... View Questions/Answers

How to resolve NumberFormatException(Unlnown Source)?  November 30, 2010 at 12:37 PM
I'm using some code where I'm getting NumberFormatException in the code but logically it seem to me perfectly ok because whenever I 'm using that code in .java file it works perfectly ok but when I'm using same type of code in a jsp it throws the exception. Code i'm is some thing like that:`print... View Questions/Answers

JAVA  November 30, 2010 at 12:35 PM
Name Explanation about Java.... ... View Questions/Answers

how to display pdf file on browser  November 30, 2010 at 12:33 PM
In my project i have created one pdf file(by pdfwriter) into my local mechine . after that it need to display in browser as a pdf file . but in jsp i can't display by iframe tag can anyone give me a solution. ... View Questions/Answers

how to dispaly pdf file on browser  November 30, 2010 at 12:24 PM
In my project i have created one pdf file(by pdfwriter) into my local mechine . after that it need to display in browser as a pdf file . but in jsp i can't display by tag can anyone give me a solution. ... View Questions/Answers

Getting NumberFormatException  November 30, 2010 at 12:10 PM
Thanks for the reply. Its works well, but whenever I'm using numeric value from 0010 to 0757 it is returning some garbage value. I dont have the idea what is going wrong. Please give me some idea to solve this problem. I'm giving you the code below. Code: `print("<% String t=request.getParam... View Questions/Answers

java swing  November 30, 2010 at 11:35 AM
how to connect database with in grid view in java swing ... View Questions/Answers

Maintain checked checkbox status  November 30, 2010 at 11:26 AM
Hi everyone In my JSP application, i have database table stored in mysql. when i display there recors using checkboxes and select multiple checkboxes, and after submitting button , it should display that "selected checked checkboxes" in same page but in another table. and at sa... View Questions/Answers

jsp  November 30, 2010 at 11:23 AM
how to include google map in our jsp page? ... View Questions/Answers

javascript  November 30, 2010 at 10:36 AM
passing javascript values to jsp ... View Questions/Answers

Query  November 30, 2010 at 10:30 AM
//A.java public class A { static int a=regd; public A() { } } //B.java public class B { static int b=A.a; public A() { } } I created two classes separately.Here regd is dynamic variable means it's varying with the given input. i want to call repeatedly but first time i got value. but whe... View Questions/Answers

servlet  November 30, 2010 at 10:23 AM
how to jsp integer are type cast int servlet page ... View Questions/Answers

frame  November 30, 2010 at 10:12 AM
how to creat a frame in java ... View Questions/Answers

Fibonacci program  November 30, 2010 at 2:15 AM
I am trying to write 2 different Fibonacci programs. The first one, I want to allow the user to input 2 integers and then print out the next 10 numbers in the fibonacci sequence. On the next one, I want to allow the user to input 2 integers again and also allow the user to input how many fibonacc... View Questions/Answers

seriously need help....  November 30, 2010 at 1:33 AM
Write a program that will prompt the user to select an appliance, lookup the energy the appliance uses and for each time of use rate band: calculate the cost to run the appliance and display a bar graph for the cost of running the appliance. The appliance will run for ฝ hour each day for 30 days.... View Questions/Answers

Design a class named account  November 30, 2010 at 12:54 AM
The class contains: ยง An int data field named id for the account (default 0). ยง A double data field named balance for the account (default 0.0) ยง A double data field named annualInterestRate that stores the current interest rate (default 0.0) ยง A Date data fiel... View Questions/Answers

login page  November 29, 2010 at 11:48 PM
pls say how to create a login page in jsp and mysql using netbaens ... View Questions/Answers

How to display nested ArrayList in JSF  November 29, 2010 at 11:19 PM
I have a class with an attribute which is an ArrayList<ArrayList<String[]>> arrPartners I want to display it in jsf but i dont know how and i am getting mad. I have nested but it shows an error: ... View Questions/Answers

threads  November 29, 2010 at 10:22 PM
how to print names in different lines in different spaces generating random numbers and using thread...like ping pong ping pong ... View Questions/Answers

text field  November 29, 2010 at 9:42 PM
How to retrieve data from text field ... View Questions/Answers

Struts  November 29, 2010 at 5:56 PM
When Submit a Form and while submit is working ,press the Refresh , what will happen in Struts ? ... View Questions/Answers

JAVA  November 29, 2010 at 5:44 PM
Can a main method be final method? ... View Questions/Answers

How to Register Custom MBeans in Tomcat5.5  November 29, 2010 at 4:54 PM
How to register custom MBeans in Tomcat5.5 , please provide me an end-to-end example? ... View Questions/Answers

instruction to install oracle 10g in linux....  November 29, 2010 at 4:48 PM
how to install oracle 10g in linux ... View Questions/Answers

Java  November 29, 2010 at 4:39 PM
what is the difference between a servlet and jsp? or relation between them? how to execute .jsp file without .java file when we doesn't know the port number? ... View Questions/Answers

webpage  November 29, 2010 at 4:22 PM
java, servlet and JSPs to create a web page with a text box and a button named submit. after submitting i shpuld get a msg successfully added. ... View Questions/Answers

hibernate  November 29, 2010 at 3:26 PM
pls give one simple example program for hibernate ... View Questions/Answers

java  November 29, 2010 at 3:17 PM
how to search a book in library management system by using partial entry ... View Questions/Answers

Altering a Column name in a table  November 29, 2010 at 2:42 PM
how to alter column name in MSSQL server 2005 the codesample given using "change" keyword alter table tablename change oldcolumnname to newcolumnname is not working.... ... View Questions/Answers

how to display data from database in jsp  November 29, 2010 at 1:58 PM
how to display data from database in jsp ... View Questions/Answers

how to display a table from database using servlet  November 29, 2010 at 1:17 PM
how to display a table with values from servletpage ... View Questions/Answers

Mlm tree structure  November 29, 2010 at 12:10 PM
i want mlm tree structure code in php with jquery or Ajax ... View Questions/Answers

Mlm tree structure  November 29, 2010 at 12:10 PM
i want mlm tree structure code in php with jquery or Ajax ... View Questions/Answers

Mlm tree structure  November 29, 2010 at 12:10 PM
i want mlm tree structure code in php with jquery or Ajax ... View Questions/Answers

onmouseover event in jsf  November 29, 2010 at 11:52 AM
hello friends, I am in the middle of the project, I have a requirement in my project. I am using jsf ,spring, hibernate & mysql database. can u suggest a code for, If I place mouse on a component I want to dispaly the list of some documents by using onmouseover event in jsf. ... View Questions/Answers

jsp  November 29, 2010 at 11:03 AM
JSP that accepts a string parameter from the browser and simply displays it back in the HTML response. ... View Questions/Answers

Checkbox pagination problem  November 29, 2010 at 10:12 AM
HI ., Following is my code test.jsp <%@page import="java.sql.*"%> <%@taglib prefix="c" uri="/WEB-INF/c-rt.tld" %> <%@page import="java.util.HashMap"%> <%@page import="com.web.abc.integration.model.Domain"%> <%@page import="com.web.abc... View Questions/Answers

importent  November 29, 2010 at 10:00 AM
if we hv abstract class then why we use interface? ... View Questions/Answers

Getting NumberFormatException  November 29, 2010 at 3:27 AM
Hello Sir, I'm using Integer.parseInt(String str) function which returns a NumberFormatException(Unknown source). I also used Integer.parseInt(String str, int radix) but it also throws the exception. I used the same type of code in a simple .java program but when I.m using it in a JSP it continuo... View Questions/Answers

Getting garbage value  November 29, 2010 at 2:09 AM
Thanks for the reply. Its works well, but whenever I'm using numeric value from 0010 to 0757 it is returning some garbage value. I dont have the idea what is going wrong. Please give me some idea to solve this problem. I'm giving you the code below. Code: <% String t=request.getParameter("ti... View Questions/Answers

Java  November 28, 2010 at 10:26 PM
what is difference between jsp and servelet. ... View Questions/Answers

result problem  November 28, 2010 at 10:20 PM
sir,i have written program given below but that program is not giving proper output.pls help me import java.io.*; import javax.servlet.*; import javax.servlet.http.*; import java.sql.*; class filedata extends HttpServlet { public void doPost(HttpServletRequest req,HttpServ... View Questions/Answers

program  November 28, 2010 at 10:08 PM
explanation of program on extending thread class ... View Questions/Answers

java basic  November 28, 2010 at 9:18 PM
i need to give a hexadecimal input (0x71014802 and 0x8c2a0000) and want to get a MIPS instruction code(assembly level lang.):the output is not a matter... i want to create a package and then input converted converted to binary then i need 3 function R-type I-type and J-type... ... View Questions/Answers

write program have product - using loops  November 28, 2010 at 9:03 PM
Write a program for a grocery that reads products data and determine and display the product that has the highest price and the average price. A product has three pieces of data: id (int), name (String) and price (double). Your program should continue reading new products until user enters -1 as ... View Questions/Answers

Software Developer  November 28, 2010 at 8:57 PM
what is the java code to turn off my pc ? ... View Questions/Answers

pattern-using loops  November 28, 2010 at 8:55 PM
Write a program that displays the following pattern ... (use nested loops) * ** * ** * ** * ... View Questions/Answers

read string - using loops in Java  November 28, 2010 at 8:48 PM
Write a program to read a string composed of an unknown number of words, then count the number of words in the string, and Display the longest and shortest words, with first letter Uppercase and rest in lowercase.?? ... View Questions/Answers

iPhone xcode database  November 28, 2010 at 8:32 PM
Hi, How I can add SQLite database support in iPhone Xcode project? Thanks ... View Questions/Answers

Best PHP tutorial for beginners  November 28, 2010 at 6:48 PM
Hi Friends, I want to learn PHP programming language. Please let's know the best tutorials url for beginners. I want to know: a) How to install PHP? b) How to create simple program and test? c) Learn basics and advanced concepts of PHP programming language in very less time. d) Al... View Questions/Answers

query  November 28, 2010 at 5:42 PM
Sir this is table code. i created successfully ,but i want to get table data.so could you please help me for this problem.Thank you sir import java.util.*; import java.awt.*; import javax.swing.*; import javax.swing.event.*; import java.awt.event.*; import java.awt.print.*; public class t... View Questions/Answers

How to match a string symbols using the INDEX and the method use Stack  November 28, 2010 at 4:55 PM
How to match a string symbols using the INDEX and the method use Stack it will determine balance or not balance ...use the STACK ...and it must be in priority...... -PARENTHESIS -BRACKET -BRACES Example output: Enter a string symbols:{()} ... View Questions/Answers

NSTimeInterval to NSString  November 28, 2010 at 4:44 PM
Hi, I am developing a program for iPhone. I have to get the current timestamp in NSString. Please let's know how to do this. Any code example for converting NSTimeInterval into NSString will help me a lot. Thanks ... View Questions/Answers

calculator midlet  November 28, 2010 at 3:35 PM
give me code calculator midlet in bluetooth application with j2me? ... View Questions/Answers

how to connect mysql from gui?  November 28, 2010 at 1:13 PM
i am unable to connet to mysql server from my projet that is gui for mysql...can anyone help me in this...its urgent? i have to connet to mysql from gui.. ... View Questions/Answers

Program to read 2 integers using oops concepts  November 28, 2010 at 12:45 PM
Write a program to read two integers with the following significance. ? The first integer value represents a time of day on a 24 hour clock, so that 1245 represents quarter to one mid-day, for example. ? The second integer represents time duration in a similar way, so that 345 represents th... View Questions/Answers

System.out.println cannot be written inside a class  November 28, 2010 at 11:28 AM
why System.out.println cannot be written inside a class? ... View Questions/Answers

color change  November 28, 2010 at 10:51 AM
how to change the color in circle using scrollbar? ... View Questions/Answers

core java  November 27, 2010 at 11:39 PM
i need core java material ... View Questions/Answers

plz help me to create gui using Java netbeans  November 27, 2010 at 11:21 PM
Hi, I am unable to fetch a particular data from DB.I am using netbeans for creating GUI. If I want to fetch a particular value like '6', it is calling all the data which contains 6. I am unable to fetch the particular data. Plz help me ... View Questions/Answers

java program  November 27, 2010 at 9:07 PM
Problem 2 Note:Use prompt command to input values and use document.write command to display the output. Write a JavaScript program that would input a student's final grade from 50-100. Evaluate the Final Grade and display the Point Equivalent based on the table below. Indicate also the re... View Questions/Answers

java program  November 27, 2010 at 9:06 PM
Problem 2 Note:Use prompt command to input values and use document.write command to display the output. Write a JavaScript program that would input a student's final grade from 50-100. Evaluate the Final Grade and display the Point Equivalent based on the table below. Indicate also the re... View Questions/Answers

java program  November 27, 2010 at 8:55 PM
Problem 1 Write a javaScript program that would input Employee Name, rate per hour, No. of hours worked and will compute the daily wage of an employee. If the number of hours worked exceeds eight hours 30% to each excess as overtime rate. Formula: Daily Wage equals Rate per hour * No. of hours wo... View Questions/Answers

java program  November 27, 2010 at 8:55 PM
Problem 1 Write a javaScript program that would input Employee Name, rate per hour, No. of hours worked and will compute the daily wage of an employee. If the number of hours worked exceeds eight hours 30% to each excess as overtime rate. Formula: Daily Wage equals Rate per hour * No. of hours wo... View Questions/Answers

DMCA.com