Home Answers Questions Question and Answers


 
 

Latest Programming Questions askedAsk your question?

Hi  October 25, 2011 at 1:15 PM
I need some help I've got my java code and am having difficulty to spot what errors there are is someone able to help import java.util.Scanner; public class Post { public static void main(String[] args) { Scanner sc = new Scanner(System.in); System.out.print("Enter the le... View Questions/Answers

How can we save a data list in jsf?  October 25, 2011 at 1:03 PM
I have a code in jsf that fires a query in Data Base each time it is called, i have added a validation check to fire query only if list is not-empty but the list gets empty each time it is called again. I tried using save State but it did not help as other functions got hampered.. some one sugges... View Questions/Answers

unable to retrive the data from mysql using servlet using jdbc driver  October 25, 2011 at 12:30 PM
Hi, i have a servlet program..to verify the login and redirect to correct html page on verification. public class LoginServlet extends HttpServlet implements javax.servlet.Servlet { public void doPost (HttpServletRequest request, HttpServletResponse response) thr... View Questions/Answers

Advertisement

Java swing  October 25, 2011 at 12:20 PM
I create 2 text field f1,f2 and 2 button b1,b2.If i enter some text in the text field and click the button b1 the text field f1 text will be shown in the Message dialog box and if i click the button b2 the text field f2 text will be shown in another one Messagedialog box.I Need the code of this p... View Questions/Answers

Problem in accessing data from Database  October 25, 2011 at 12:07 PM
hi..... i'm making a project on servlet and jsp with ms access 2007 at the backend. One field in my database is text and all others are of currency data type. If i enter 0 or null value in currency column and then try to retrieve data using my servlet coding the result is not displayed.......the ... View Questions/Answers

would you please help me?  October 25, 2011 at 3:59 AM
Write a class Amount which stores sums of money given in pounds and pence. Your con- structor should take two ints, for pounds and pence seperately. The class should also provide methods to add and withdraw money, again in pounds and pence, and a toString method that returns the balance in the fo... View Questions/Answers

jsp help  October 25, 2011 at 1:31 AM
Hi i am doing my project in jsp.using netbeans 6 and mysql 5.0. and i managed to complete it. and now its submission time. but am confused.. in what form should i load my project in CD and submit it. should i convert it to war file? then how would i associate or include my mysql databases with it... View Questions/Answers

Java errors when attempting the following.  October 25, 2011 at 12:14 AM
Give the java errors in attempting the following : 1) performing division operation on string value. 2) redefining base class final method in derived class. 3) defining a method in interface. ... View Questions/Answers

Weight loss  October 24, 2011 at 8:17 PM
Is anybody able to help me. I am wanting to build a weightloss programme If anyone could help that would be great //calculate and output weight loss given time spent on activities import java.util.*; public class WeightLoss { public static void main (String args[]) ... View Questions/Answers

Java Currency Converter  October 24, 2011 at 6:46 PM
Hi I was wondering if someone could help me write a program to convert Pounds into Euro's. The program should prompt the user to input the number of pounds and output the number of Euros this is equivalent to. Thanks I have not had much luck with this ... View Questions/Answers

HTML ISSUE  October 24, 2011 at 5:14 PM
Hi, We have a requirement wherein we have to access a link generated using html tag 'href' ie: This href value is fetched from sum table in other schema. When we click this link, username n password pop-up is shown which we want to avoid. We want ... View Questions/Answers

Input and Output package  October 24, 2011 at 9:45 AM
Hi guys, My professor used input and output statements in a different way.. She didnt used System.out.println(); instead she used in.readint() out.writeln() commands to read input and print output. she created two new objects directly to use this statements. /* input and output objects */... View Questions/Answers

Iteration without loop  October 24, 2011 at 1:02 AM
Hi, Is there any way I can have a line of code iterate a number of times set by the user without having a while loop or any other control statements? Thanks! ... View Questions/Answers

calculation after if. user input  October 23, 2011 at 6:38 PM
System.out.print ("please select one of the following by pressing tne number on your keypad"); System.out.println(); System.out.println("1. Apples"); System.out.println("2. Oranges"); System.out.println("3. Straberries"); System.out.println("4. Patato"); System.out.println("5. Turnips"); System.o... View Questions/Answers

internship  October 23, 2011 at 2:04 PM
hey I am doing my graduation in French-elective English and tourism.. actually I wanted to do internship in tourism..can you tell me from where can I do so?thanks ... View Questions/Answers

Servlets errors in same page.  October 23, 2011 at 10:42 AM
How do I display errors list in the same page where a form field exists using servlets...........i.e. without using JSP? Please explain with a simple username password program....... ... View Questions/Answers

WordCount  October 23, 2011 at 10:17 AM
i have to write a program for Write a program that takes a string containing a sentence or a set of sentences, and counts the number of words in the sentence that meet or exceed a specified minimum length (in letters). For example, if the minimum length entered is 4, your program should only cou... View Questions/Answers

How to create binary search tree using an array?  October 22, 2011 at 3:51 PM
hello people, pls guide me on the topic above. i have an string array, i want to make a binary search tree based on data inside this array. the array contains names of people, so the tree must have a to l as left child, root as m and right child as n-z, am i right? how do ... View Questions/Answers

prepare a group box under 3 radio buttons  October 22, 2011 at 3:51 PM
how to prepare a group box under 3 radio buttons named(YES,NO,CANCEL).when i click YES it can store in the database using (data navigator and data source). if i click NO it can store in the database using (data navigator and data source). if i click CANCEL it can store in the database using (dat... View Questions/Answers

Jva swing  October 22, 2011 at 11:26 AM
How to create the model form like "Notepad"? ... View Questions/Answers

Problem analysis and algorithm design (i.e.: flowchart, algorithm)  October 21, 2011 at 11:47 PM
Problem analysis and algorithm design (i.e.: flowchart, algorithm)for this question.Write a Java program that prompt user to input a number of students in a class. Then, prompt user to input the students programming mark. Determine how many student get A+ and A for their grade and how many studen... View Questions/Answers

using if and else if statments  October 21, 2011 at 10:31 PM
Hello everyone Hope all are well Just new here & already have a question. I have a little veg shop it sells 6 apples oranges turnips patotes straberries carrots. And add the price together. oh each item has a price eg apples = .30 ect my problem is I can only buy 3 of the above items ... View Questions/Answers

the grade of students  October 21, 2011 at 10:00 PM
Write a Java program that prompt user to input a number of students in a class. Then, prompt user to input the student√Ę‚?¨‚?Ęs programming mark. Determine how many student get A+ and A for their grade and how many students get D and E based on the following table: Marks ... View Questions/Answers

session.timeout and notification before session expire in java  October 21, 2011 at 5:55 PM
Hi frds, I am using struts and I would like to automatically forward to some notification page when the session expires; but I want this to happen without user intervention. For example, a user leaves a browser unattended for 30 min & session timeout is 30 min; I would want the page to autom... View Questions/Answers

change password  October 21, 2011 at 5:35 PM
how to change password in the login form.... by giving options to user like this old password, new password.. pls help ... View Questions/Answers

who know full coding of guessing game in java?  October 21, 2011 at 4:59 PM
There is only 1 player. Use JAVA Random toolkit to generate random number between 1 to 10. Once user has entered in a number, checked whether the number match with the generated number. There should be a telling the user how many times has the user guessed a number. The program should display use... View Questions/Answers

how to pass values from 2nd page tp 3rd page....  October 21, 2011 at 4:29 PM
Hi, How to pass values from 2nd page to 3rd page..... here are my programs(not exactly correct code....) login.jsp : <html> <head> </head> <body> <form method="post" action="login1.jsp"> <p><... View Questions/Answers

Java swing  October 21, 2011 at 3:25 PM
How to combine two java files? ... View Questions/Answers

webservices tutorials  October 21, 2011 at 12:26 PM
Web services tutorials... View Questions/Answers

Java swing  October 21, 2011 at 12:20 PM
how to create the login form? ... View Questions/Answers

help to understant to html language  October 21, 2011 at 12:03 PM
help to understant to html language ... View Questions/Answers

program  October 21, 2011 at 11:38 AM
i want help to making project ... View Questions/Answers

question  October 21, 2011 at 11:15 AM
dear sir/madam my question is how to compare two text format in java..we are java beginners..so we need the complete source code for above mentioned question...we have to compare each and every word... Thanking you ... View Questions/Answers

program  October 21, 2011 at 10:54 AM
i want help to making a project in check current date using c language ... View Questions/Answers

program  October 21, 2011 at 10:54 AM
i want help to making a project in check current date using c language ... View Questions/Answers

java Programming  October 21, 2011 at 7:45 AM
Based on the following algorithm, write a Java Program Start defining the MyClass class. Declare the class?s myField data field. Initialize the data field. Start defining the SetField() method. Set the data field to the value passed to SetField(). Start defining the GetField() metho... View Questions/Answers

q2  October 21, 2011 at 7:37 AM
provide me a java coding based on the following algoritm start defining the MyClass Declare the class's myField data field Initilize the data field Start defining the SetField() method set the data field to the value passed to SetField() Start defining the GetField() method Return the value of th... View Questions/Answers

c# (ado.net)  October 20, 2011 at 8:15 PM
i am preparing a 180 query questions. how to make a groupbox that include 3 radio buttons named (YES, NO, CANCEL)when i select YES then, the YES is stored in the sql,when i select NO then, the NO is stored in the sql,when i select CANCEL then, the CANCEL is stored in the sql.AND also if i am sel... View Questions/Answers

Struts2 Spring Hibernate integration  October 20, 2011 at 7:27 PM
How to integrate Struts2 Spring2.5 and Hibernate3 in a web application project?Could anyone give some example? ... View Questions/Answers

Jtree connection with Jlist  October 20, 2011 at 7:26 PM
I have a Jtree which contain different folders having files but the jtree will show only the folders. Now I want when I click a folder then its contained file will be shown in jList .How it is possible in java. ... View Questions/Answers

Jtree connection with Jlist  October 20, 2011 at 7:26 PM
I have a Jtree which contain different folders having files but the jtree will show only the folders. Now I want when I click a folder then its contained file will be shown in jList .How it is possible in java. ... View Questions/Answers

JDBC CONNECTIVITY  October 20, 2011 at 5:33 PM
How do i connect my database to java. I have the connector file and i place it in lib of jdk folder and installed the jdbc driver. I think i didnt complete the process. Is there anything like path to set jar file in environment variable. ... View Questions/Answers

JDBC CONNECTIVITY  October 20, 2011 at 5:30 PM
import java.sql.Connection; import java.sql.DriverManager; import java.sql.ResultSet; import java.sql.Statement; import java.sql.SQLException; // User: USER // Datetime: Thu Oct 20 15:19:38 IST 2011 // File name: Document [1].java /** * This class is gen... View Questions/Answers

Export SQL database schema from SQL server management studion express2005 into MS excel file  October 20, 2011 at 3:25 PM
HI I need to export Database Schema from SQL Server anagement studio express 2005 into MSExcel? generate script is giving me the script. but i need to have Excel file contains database schema. how can i do with SQL server management studio express 2005? ... View Questions/Answers

Java swing  October 20, 2011 at 1:17 PM
how to create simple addition program using java swing? ... View Questions/Answers

php  October 20, 2011 at 12:51 PM
my problem is when i display data like this $_POST["combo1"] it will show vlaue . suppose i select INDIA it shows "1" , but i want "INDIA", and i use if condition for each value and display by using "echo" but it difficult check all combinations for each country with corresponding states is it an... View Questions/Answers

RADIO FROM JSP TO ACTION.  October 20, 2011 at 12:33 PM
Hi frds, how to get the selected multiple radio button values from jsp to action. ... View Questions/Answers

Java Swing  October 20, 2011 at 11:46 AM
Write an applet program to transfer the content of the text field into the listbox component on clicking a button code project ... View Questions/Answers

nested selected tag ihave display selected item  October 20, 2011 at 11:33 AM
i have two combo boxes combo1 combo1 in first combo box i taken as follows select name="combo1"> option value="0">-select- option value="1">INDIA option value="2">UK etc in other combo box display all states relate first combo box, ok it can be done by c... View Questions/Answers

create method getConstructor and getInfo?  October 20, 2011 at 11:31 AM
How to create method getConstructor and getInfo? ... View Questions/Answers

create method getConstructor and getInfo?  October 20, 2011 at 11:31 AM
How to create method getConstructor and getInfo? ... View Questions/Answers

how to build a colorful clock in JSP without using Flash.  October 20, 2011 at 11:19 AM
I have to make a colorful clock using java programming or some API in a JSP page. Please send me a code for it as soon as possible. ... View Questions/Answers

how to install jfreechart in netbeans.  October 20, 2011 at 11:15 AM
I have successfully installed jfreechart in eclipse IDE.but I am unable to install the same in netbeansIDE 6.7.1 .There is some error regarding the ant folder.Please tell the step by step procedure to install it in netbeans 6.7.1 Please reply asap.Its urgent. ... View Questions/Answers

how to generate a bar chart on a JSP PAGE using the arraylist object passed form the servlet.(using jfreechart)  October 20, 2011 at 11:08 AM
I have created a servlet.In this,i have retrieved a record from MS Access database in an arraylist i.e. my arraylist contains only one object(rollno,name,marks1,marks2,marks3,marks4) from the database.now i have to pass this arraylist object to a jsp page and on that jsp page i have to display a ... View Questions/Answers

displaying data  October 20, 2011 at 10:29 AM
how to display data from database on jsp using struts2 ... View Questions/Answers

struts  October 20, 2011 at 10:28 AM
how to display data from database on jsp using struts1.0 ... View Questions/Answers

Java  October 20, 2011 at 1:45 AM
Write a program to calculate the area of a rectangular. You need to define following method in the Rectangular class: public void calculateArea(double l, double h) public double findLength() public double findHeight() public void setLength(double l) public... View Questions/Answers

Java  October 20, 2011 at 1:45 AM
Write a program to calculate the area of a rectangular. You need to define following method in the Rectangular class: public void calculateArea(double l, double h) public double findLength() public double findHeight() public void setLength(double l) public... View Questions/Answers

Compile time error  October 20, 2011 at 12:41 AM
Hi, When i compile my simple program in cmd am getting a error like "Javac is not a recognized as an internal or external command, operable program or batch file" How to resolve this problem ???? ... View Questions/Answers

how to do gui  October 19, 2011 at 9:38 PM
import java.util.Scanner; import javax.swing.JFrame; import javax.swing.JOptionPane; public class ShippingCost { public static void main(String[] args){ Scanner sc = new Scanner(System.in); JFrame frame = new JFrame(); String itemName = ""; ... View Questions/Answers

Dynamically display values in dropdown box and then show the selected values as selected by the user which is already stored in the DB  October 19, 2011 at 9:20 PM
Hello, This is for Updating. I had two SQL queries one for only selected values the user has choosen before and the second SQL query to show all the values. Iwas trying to display multiple selection selected from the list of all the values in the list box. Somehow I can just show on... View Questions/Answers

How to get the data from the database using Servlet or JSP program  October 19, 2011 at 7:42 PM
hello My Netizen friend has given the answer to retrieve data from the database by using servlet or jsp program by typing the output as like this below ReusltSet rs=statement.executeQuery("select * from Table1) while(rs.next()) { out.println(rs.getInt(1)); out.println(rs.getString(2)); out.printl... View Questions/Answers

easy way to make a JCombobox look like a JTextField?  October 19, 2011 at 7:22 PM
Is there a good(and easy) way to make a JCombobox look like a JTextField? By this I mean there should not be a dropdown button, but when the user enters something it should show multible results. Basically the same way google, youtube, facebook etc. works ... View Questions/Answers

java  October 19, 2011 at 7:15 PM
Write a program that will read a line of text as input and then display the line with the first word moved to the end of the line and after the code execute it will change the string to UPPERCASE. For example : Enter a line of text (No punctuation please): Saya sangat lapar I have rephrased that ... View Questions/Answers

askquestion java  October 19, 2011 at 6:40 PM
Write a program that will read a line of text as input and then display the line with the first word moved to the end of the line and after the code execute it will change the string to UPPERCASE. For example : Enter a line of text (No punctuation please): Saya sangat lapar I have rephrased that ... View Questions/Answers

Steps to log4j configuration in Struts2  October 19, 2011 at 6:30 PM
Hi... any tel me each step for configure log4j in struts2 application.. ... View Questions/Answers

save list of objects in Spring and hibernate  October 19, 2011 at 6:14 PM
I use a javascript which add dynamic rows with values in jsp. Now i want to save these multiple values using spring and hibernate. Thanks for help ... View Questions/Answers

dropdown vlaue changes based on input given in textbox uisng AJAX  October 19, 2011 at 6:13 PM
hi, In my app i need one textbox based on textbox data, values in dropdown list have to change and dropdown data retreive data from database thanks KK ... View Questions/Answers

< problem in XSL formatting  October 19, 2011 at 5:58 PM
I am using one Data Template to generate the output in XML format. but the data is having HTML formatting. So i am using an xsl file to format the xml ouput data. The problem here is my data is having < but it is replacing with < but i want ... View Questions/Answers

find the factorial  October 19, 2011 at 5:55 PM
how to find the factorial through the while loop? ... View Questions/Answers

display data in php  October 19, 2011 at 5:42 PM
i want data validation in javascript for my form data and it will display in php. my fields are name,emailid,address,country combobox,state combo box, i want only php page,can u wxplain process how it come to phppage. ... View Questions/Answers

oracle problem  October 19, 2011 at 5:14 PM
Hi I have installed oracleXE on my system and for reasons i've uninstalled them and am not able to stop oracle xe services and i could'nt reinstall it. I couldnt reinstall my os for this as it is in my office. ... View Questions/Answers

How to pass the value from controller to jsp page ?  October 19, 2011 at 4:46 PM
HI I need to pass the value from controller to jsp. I use the way like this Controller request.setAttribute("msg", "Successfully Login"); In jsp ${msg} and then i didn't see the message . then i changed the jsp as <%= request.getAttribut... View Questions/Answers

Radio Button Problem in jsp.  October 19, 2011 at 4:08 PM
I have a small doubt in my application, my requirement is to get a "single selectible row", I generated a radio button for each row as i got data from the database using iterator tag,but when i select any row the it is going to bind the last iterated value, please can anyone clear my doubt.and di... View Questions/Answers

i want validation for one text field and text area,email,combobox, in that email will validte by useing regular expressions?  October 19, 2011 at 3:38 PM
i want validation for one text field and text area,email,combobox, in that email will validte by useing regular expressions? ... View Questions/Answers

classes in c++  October 19, 2011 at 3:25 PM
1- design and implement a class datatype that implement the day of the week in the program.the class datatype should store the day, such as sun for sunday. the programe should be able to perform the following operations on an object of type datatype set the day / print the day /return the day/ret... View Questions/Answers

javascript validation  October 19, 2011 at 3:11 PM
my problem is following code is my form i want validation and for email field it will check formate useing regularexpressions. <html> <script src="combovalidate1.js" type="text/javascript" language="javascript"> </script> <body&g... View Questions/Answers

HASHMAP  October 19, 2011 at 12:38 PM
HI CAN WE ADD PRIMITIVE DATA TYPE IN HASHMAP IN JAVA 1.5 VERSION . THANKS KALINS NAIK ... View Questions/Answers

jsp  October 19, 2011 at 12:35 PM
Hi How can we display sqlException in a jsp page? How can we mantain session in jsp? Thanks Kalins Naik ... View Questions/Answers

nested select tag  October 19, 2011 at 11:33 AM
My requirement is as follows suppose combobox to select country whenever i select a country it will show corresponding states in another combo box. ... View Questions/Answers

Setter injection in Spring  October 19, 2011 at 11:05 AM
What is Setter injection in Spring ? ... View Questions/Answers

uiwebview open url in safari  October 19, 2011 at 11:03 AM
How to open outgoing URL like ffacebook or twitter in iPhone/iPad? ... View Questions/Answers

check youtube iframe code  October 18, 2011 at 10:37 PM
I have a piece of code that checks the youtube embed code in this format: My PHP code looks like this now: //Check Embed Code $embedCode = $postData['embedCode']; /*if(isset($matches[1])) {*/ ... View Questions/Answers

XML DTD  October 18, 2011 at 5:05 PM
What is DTD in xml file ? ... View Questions/Answers

Java Project Deployment  October 18, 2011 at 4:58 PM
Hi I have created a website using servlet and JSP. There are three type of users on the website namely administrator, student and teacher. Now I need to install this website on all the systems but the database has to be the same. Now how I should I distribute this website on all the systems. Plz ... View Questions/Answers

ajax  October 18, 2011 at 3:28 PM
HI, In my application using ajax if i type a managername in the textbox it should display all the employees under the that manager in a dropdown from database and when i select the empname in dropdwon list and when i click on search button it should display the employee details from database pls ... View Questions/Answers

How to Extract SQL schema into .xsl file  October 18, 2011 at 2:27 PM
how to extract SQL schema from databse into excel(.xsl) file. i need to do it in java... ... View Questions/Answers

mysql  October 18, 2011 at 1:35 PM
How can install My sql drivers using a jar File ... View Questions/Answers

How to convert a swing form to PDF  October 18, 2011 at 1:10 PM
Sir, I want to know about how convert a swing form containing textbox,JTable,JPanel,JLabel, Seperator etc swing menus to a PDF file using java code ... View Questions/Answers

Please help me to create this coding for pizza order application using a handheld computer.....  October 18, 2011 at 12:33 PM
You work as a programmer for IT-Tech a small software house which specialises in writing software for restaurants and hotels. They have recently won a contract from restaurant chain ?PIZZA WORLD? to supply software which will allow waiters to take orders from tables using a hand held computer. ... View Questions/Answers

How to read PDF files created from Java thru VB Script  October 18, 2011 at 12:29 PM
We have created the PDF file thru APache FOP but when we are unable to read the data thru QTP(it's an HP Automation tool). Do u have any addin's to install with QTP to read the FOP pdf? Is their any tool which convert the Apache FOP to Adobe PDF file? ... View Questions/Answers

spring web  October 18, 2011 at 12:17 PM
Hi can you explain the flow of spring web programatically......... ... View Questions/Answers

java  October 18, 2011 at 12:00 PM
how to create student details using applets ... View Questions/Answers

java  October 18, 2011 at 12:00 PM
how to create student details using applets ... View Questions/Answers

illegal start type, HELP!  October 18, 2011 at 8:44 AM
import java.util.Scanner; public class Lab6ex9 { public static void main(String[] args) { Scanner keyboard = new Scanner(System.in); System.out.print("Please type the total number of books: "); int books = keyboard.nextInt(); Syst... View Questions/Answers

java programming  October 18, 2011 at 8:28 AM
Write a Java program that prompt user to input a number of students in a class. Then, prompt user to input the student‚??s programming mark. Determine how many student get A+ and A for their grade and how many students get D and E based on the following table: Mark Grade 85 -100 A+ 80 - 8... View Questions/Answers

Java Programming  October 18, 2011 at 8:26 AM
Write a Java program that prompt user to input a number of students in a class. Then, prompt user to input the student√?¬Ę√Ę‚??¬¨√Ę‚??¬Ęs programming mark. Determine how many student get A+ and A for their grade and how many students get D and E based on the following table: Mark Grade 85... View Questions/Answers

After Logout Back Button Should not work again  October 17, 2011 at 9:07 PM
Hi deepak,, I am doing Login Page,.. IN That If Logout Then When I Click Logout Button It Should not work.. For That what is the logic And what Concept I have To Use.. Please Kindly Help me... your regards, Prudvi raj. ... View Questions/Answers

javaprograms  October 17, 2011 at 8:27 PM
s=(1+2)/(1x2)+(1+2+3)/(1x2x3+)+.......+(1+2+3+......n terms)/(1x2x3x..........n terms) ... View Questions/Answers

javaprograms  October 17, 2011 at 8:22 PM
s=1/(1+2)+1/(1+2+3)+1/(1+2+3+4)+.....+1/(1+2+3+....n terms) ... View Questions/Answers

DMCA.com