Home Answers Questions Question and Answers


 
 

Latest Programming Questions askedAsk your question?

jsp  November 1, 2011 at 12:33 PM
i have a form containing 3 drop down list and radio button and a checkbox(holiday). i want that if i select the checkbox i.e holiday all dropdown radio button should be disabled. please help ... View Questions/Answers

how to compare 2 arrays using java?  November 1, 2011 at 12:32 PM
hi can anyone give me the information regarding comparision of arrays. ... View Questions/Answers

Java swing  November 1, 2011 at 11:27 AM
I create one table. That table contains task ID and Task Name. When I click the task ID one more table will be open and that table contains Task Description,plan time and actual time. I edit the details and add to the database using java swing. ... View Questions/Answers

Ads

JSP-Servlet  November 1, 2011 at 11:18 AM
Hi have created a JSP page and I need to print it when the user clicks on the print button. I have put a print button on the JSP page. Can somebody plz help me out with the Servlet page coding. ... View Questions/Answers

How to update record to database? I have trouble with the following code  November 1, 2011 at 11:17 AM
I have written the update statement but it still not work to update the record,what is the missing of the following code ?I need help,thankyou selectdb($database_con, $connection); $emailAddress=$_POST['emailAddr... View Questions/Answers

getting and storing dropdown list in database in jsp  November 1, 2011 at 10:38 AM
i have a drop down list to select book from database. i'm able to retrieve dropdown list from database. but unable to store the selected value in database table. please help ASAP else my boss will kill me :P :D ... View Questions/Answers

Hiya!  November 1, 2011 at 12:24 AM
I dont suppose anybody could help me write a Java program for 'Guess A number' //think of a number and allow the user to guess it import java.util.*; public class ThinkNumber { public static void main (String args[]) { //generate number in range 1 - 100 ... View Questions/Answers

Servlets mysql connectivity  November 1, 2011 at 12:17 AM
please tell me the steps to connect mysql with java servlets using connector j ... View Questions/Answers

netbeans  October 31, 2011 at 6:43 PM
In netbeans, there are choices of books with their price. you check the book you wanted then click the purchase.the output should be the book with the price then you will get the total price of the book you purchase.how to perform the operation? ... View Questions/Answers

online database connectivity issue from JSP page .  October 31, 2011 at 6:12 PM
Hi; Everything working fine in localhost , but facing a simple problem in connectivity with database from my web site. In my local host-- when I am typing following code Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver"); conn ... View Questions/Answers

exception error inservlet  October 31, 2011 at 3:55 PM
Hi,i got the error as..below..wat could be the possible mistake ?THANK YOU!!! type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception javax.servlet.ServletException: JDB... View Questions/Answers

ejb  October 31, 2011 at 3:54 PM
Match the following. ejbFind() ejbStore() ejbPostCreate() ejbLoad a. reset transaction related parameters. b. not required for CMPs. c. update the database. d. utilities required to work with the data are performed. ... View Questions/Answers

methods can be invoked by the container on a stateless session bean  October 31, 2011 at 2:07 PM
Which of the following methods can be invoked by the container on a stateless session bean? ... View Questions/Answers

session  October 31, 2011 at 2:06 PM
Which methods can be invoked by the container on a stateless session bean? ... View Questions/Answers

XML validation against a dtd -refering  October 31, 2011 at 1:32 PM
hi i have an issue in validating an xml against dtd .As the currently used schema is http://www.w3.org/2001/xmlschema and my dtd is refering to the "http://www.w3.org/1999/xmlschema" old version is there any solution to validate my xml against the dtd i have , which is refering the 19... View Questions/Answers

filling pdf by itext  October 31, 2011 at 10:51 AM
I read the pdf that contain of text field and I want to fill this field in the same pdf file that it oppened? what the sutible procedure? I have the folloing statment but I do not want this can you correct my code depond on my request??? I want read the PDFform.pdf and I want fill the ... View Questions/Answers

Java swing  October 31, 2011 at 10:25 AM
when i enter the time into the textbox and activities into the textarea the datas saved into the database.the java swing code for the above item ... View Questions/Answers

execution of java program  October 31, 2011 at 12:19 AM
wat are the steps for the execution of the servlet-jdbc program on tomcat 5.5 server.. PlS provide..the execution steps in detail..including the setting of classpath in DOS for mysql-connector-java. i have put the classpath as: set path=%path%;C:\Program Files\Java\jdk1.6.0_01\bin... View Questions/Answers

How I can filling pdf file that crated by livecycle using itext  October 30, 2011 at 11:40 PM
I have pdf file that already done by livecycle.. I read it then I used the pdfstamber class to manipolute and filling file.... the result it will be a new pdf file else than origional pdf file . My request ... I want to use pdfreader to read an existing pdf file then I want fill the same ... View Questions/Answers

java  October 30, 2011 at 11:00 PM
Problem analysis and algorithm design (i.e.: flowchart, algorithm)and explanation for 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 st... View Questions/Answers

solution of k map in c  October 30, 2011 at 10:21 PM
write a program in c to solve k-map with digital circuit ... View Questions/Answers

insertin form data into databse and blank all form field when click on submit button  October 30, 2011 at 12:25 PM
sir, i useing the jsp. i want insert form data into Ms-Access database when click on submit button and blank all form field after inserting data into databse. pls help ... View Questions/Answers

online database connectivity issue from JSP page .  October 30, 2011 at 10:50 AM
Hi; Everything working fine in localhost , but facing a simple problem in connectivity with database from my web site. In my local host-- when I am typing following code Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver"); conn ... View Questions/Answers

Web personalization  October 30, 2011 at 7:09 AM
I need to know how to create concept based user profiles for search engine personalization..pls help me ... View Questions/Answers

flow chart  October 30, 2011 at 3:58 AM
can you provide the flowchart of this coding. import java.util.*; public class StudentMarks{ double totalMarks; String grade; public void setTotalMarks(double totalMarks){ this.totalMarks=totalMarks; } public double getTotalMarks(){ return to... View Questions/Answers

flow chart  October 30, 2011 at 3:58 AM
can you provide the flowchart of this coding. import java.util.*; public class StudentMarks{ double totalMarks; String grade; public void setTotalMarks(double totalMarks){ this.totalMarks=totalMarks; } public double getTotalMarks(){ return to... View Questions/Answers

Reading a file from Jar JAVA  October 29, 2011 at 11:38 PM
I have added one excel sheet into a jar file. can anybody tell me how i can read that file. actually when i am running code from eclipse i able to read it but when i am adding that jar file in to project i am unable to read it(code not throwing any Exception). is there any... View Questions/Answers

Reading a file from Jar JAVA  October 29, 2011 at 11:35 PM
I have added one excel sheet into a jar file. can anybody tell me how i can read that file. actually when i am running code from eclipse i able to read it but when i am adding that jar file in to project i am unable to read it(code not throwing any Exception). is there any... View Questions/Answers

java  October 29, 2011 at 9:26 PM
what is marker interface? ... View Questions/Answers

Fetch the data from mysql and display it on php form  October 29, 2011 at 9:16 PM
when i press on login button, after succesful login the related data of that person should be display in other textbox... ... View Questions/Answers

online database connectivity issue from JSP page .  October 29, 2011 at 7:37 PM
Hi; Everything working fine in localhost , but facing a simple problem in connectivity with database from my web site. In my local host-- when I am typing following code Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver"); conn = DriverManager.getConnect... View Questions/Answers

what is json in iphone sdk  October 29, 2011 at 4:24 PM
What is json in iphone sdk? Is this a library and when i need to include JSon in my iPhone SDK App?? ... View Questions/Answers

jan  October 29, 2011 at 4:13 PM
write code to input a word and printf the next consecutive letter of each alphabet input :EARTH output :FBSUI ... View Questions/Answers

MAking combinitions  October 29, 2011 at 3:49 PM
Dear All, Please help me.... I have some 60-70 lineswhich contains \new\code\R2.0.1\option.c \new\code\R2.0.3\option.c \new\code\R2.0.1\Test.c \new\code\R2.0.2\Test.c \new\code\R2.0.3\Test.c \new\code\R2.0.3\core.c \new\code\R2.0.2\cores.c \new\code\R2.0.1\debug.c \new\co... View Questions/Answers

java servlets  October 29, 2011 at 3:29 PM
please help... how to connect java servlets with mysql i am using apache tomcat 5.5 ... View Questions/Answers

JAVA  October 29, 2011 at 2:42 PM
I M building a media player using jframes using libraries of jmf and done with all things but left with some problems.. 1) not able show the timing of song.. 2) not able to volume functionality ... View Questions/Answers

coding for project  October 29, 2011 at 2:26 PM
hai how to write jsp coding for project smart accessories ...... that s to navigate to another page when you click on a tag ... View Questions/Answers

insert values from excel file into database  October 29, 2011 at 2:19 PM
hi i want to insert values from Excel file into database.Whatever field and contents are there in excel file that should go to database which exists. am using SQL Server management studio express 2005. how can i do with java code??? ... View Questions/Answers

get values from Excel to database  October 29, 2011 at 2:18 PM
hi i want to insert values from Excel file into database.Whatever field and contents are there in excel file that should go to database which exists. am using SQL Server management studio express 2005. how can i do with java code??? ... View Questions/Answers

Please Help Now  October 29, 2011 at 11:55 AM
i want to put this map in ajax oriented codeigniter website thanks in advance plz help me now plz very urgent ... View Questions/Answers

Why we are writting public static void main(String args[])?  October 29, 2011 at 2:03 AM
Why we are writting public static void main(String args[])? please elaborate it... and also explain the statement System.out.println("abc"); ... View Questions/Answers

to write an SQL query using insert statement  October 28, 2011 at 11:12 PM
I need to write an sql query for the below using InSERT command.pls help. Insert 5-star ratings by James Cameron for all movies in the database. Leave the review date as NULL. The table details are as follows: Movie ( mID, title, year, director ) English: There is a movie ... View Questions/Answers

sum  October 28, 2011 at 6:50 PM
s=1x2x3x4+2x3x4x5+3x4x5x6+4x5x6x7+5x6x7x8 ... View Questions/Answers

sum  October 28, 2011 at 6:49 PM
3,8,15,24,............n terms ... View Questions/Answers

sum  October 28, 2011 at 6:48 PM
s=135.............17 (mul of 1 to 17 odd numbers) ... View Questions/Answers

sum  October 28, 2011 at 6:46 PM
s=1/(1+2)+1/(1+2+3)+1/(1+2+3+4)+.....+1/(1+2+3+....n terms) ... View Questions/Answers

sum  October 28, 2011 at 6:46 PM
s=1/(1+2)+1/(1+2+3)+1/(1+2+3+4)+.....+1/(1+2+3+....n terms) ... View Questions/Answers

sum  October 28, 2011 at 6:44 PM
s=(1+2)/(1x2)+(1+2+3)/(1x2x3+)+.......+(1+2+3+......n terms)/(1x2x3x..........n terms) ... View Questions/Answers

sum  October 28, 2011 at 6:41 PM
s=1x2x3x4+2x3x4x5+3x4x5x6+4x5x6x7+5x6x7x8 ... View Questions/Answers

sum  October 28, 2011 at 2:02 PM
s=1+12+123+1234+............+123....n terms ... View Questions/Answers

Acrobat Javascript  October 28, 2011 at 12:46 PM
i want to know about complete tutorial of Acrobat javascript in brief. ... View Questions/Answers

Complaint Management System  October 28, 2011 at 12:34 PM
Hi......i have to create a complaint management system where the user calls a toll free number and a computerized voice guides the user to register complaint and then a message is sent to the user with the complaint number. I have no idea as to how I should go about this system. Please tell me if... View Questions/Answers

jUSB api  October 28, 2011 at 12:13 PM
How can i access the USB using jUSB api and also hw to add this api to the netbeans? ... View Questions/Answers

how to print the following pattern  October 28, 2011 at 6:56 AM
Hello hEllo heLlo helLo hellO pls reply soon its an emergency ... View Questions/Answers

junit  October 27, 2011 at 9:41 PM
Explain about junit? ... View Questions/Answers

CVS  October 27, 2011 at 9:39 PM
Explain about control version system? ... View Questions/Answers

log4j  October 27, 2011 at 9:38 PM
explain about log4j with example ? ... View Questions/Answers

method  October 27, 2011 at 9:30 PM
can you tell me how to write an abstract method called ucapan() for B2 class class A2{ void hello(){ system.out.println("hello from A2"); }} class B2 extends A2{ void hello(){ system.out.println("hello from B2"); }} ... View Questions/Answers

full coding  October 27, 2011 at 5:50 PM
class IdentifyMyParts { public static int x=7; public int y=3;} IdentifyMyParts a = new IdentifyMyParts(); IdentifyMyParts b = new IdentifyMyParts(); a.y = 5; b.y = 6; a.x = 1; b.x = 2; System.out.println("a.y = " +a.y); System.out.println("b.y = " +b.y); System.out.println("IdentifyMyParts.x = "... View Questions/Answers

flowchart and algorithm  October 27, 2011 at 4:28 PM
import java.util.Scanner; public class StudentMarks { double totalMarks; String grade; public void setTotalMarks(double totalMarks) { this.totalMarks = totalMarks; } public double getTotalMarks() { return totalMarks; } public void setGrade(String g... View Questions/Answers

barcode reader using java script  October 27, 2011 at 3:36 PM
Hai all, I need code for one application in java and java script my requirement is, Scanning data directly into a field is the easiest of all implementations. The cursor is placed in the appropriate field that is to receive the data from the scan and the trigger is pressed on the ... View Questions/Answers

Java swing  October 27, 2011 at 1:09 PM
If i am login to open my account the textfield,textarea and button are displayed. if i am entering the time of the textfield and the activities of the textarea then click the button the time and activities are displayed in the table..I need the source code in java swing.. ... View Questions/Answers

SERIES PROGRAMMING  October 27, 2011 at 11:48 AM
WAP to print the followin series till n terms: S = 1-4+9-16+25.............n ... View Questions/Answers

explaination  October 26, 2011 at 10:54 PM
can you give me the explaination of this coding. import java.util.*; public class StudentMarks{ double totalMarks; String grade; public void setTotalMarks(double totalMarks){ this.totalMarks=totalMarks; } public double getTotalMarks(){ return totalMarks; } public v... View Questions/Answers

java  October 26, 2011 at 6:25 PM
Why we didnot write constructors in interfaces ... View Questions/Answers

Display Information  October 26, 2011 at 3:06 PM
I have a listbox having many names and I have a button "display". I select some names and when I click the button , the names along with the address(they are in database) should be displayed. I am using php for doing this process. Plz help me out. ... View Questions/Answers

Class and Instance  October 26, 2011 at 2:30 PM
class IdentifyMyParts { public static int x=7; public int y=3;} What are the class variable? What are the instance variables? What is the output from the following code: IdentifyMyParts a = new IdentifyMyParts(); IdentifyMyParts b = new IdentifyMyParts(); a.y = 5; b.y ... View Questions/Answers

verfication of user login and then redirecting it to user defined page  October 26, 2011 at 2:19 PM
hi, i have a login page that..calls the servlet..and i have used redirect() to redirect to a user defined page..but..wen i press the submit button,the html page calls teh servlet..but..the servlet.is not redirecting to a user defined page.. after i press the submit button..in the logi... View Questions/Answers

html and servlet file  October 26, 2011 at 2:05 PM
where to place the html and the servlet class files..in tomcat.. I have placed the html file under root and the class files in class folder..n WEB-INF. but..i want to access the servlet file through ..the html file.. its showing 404 error.help me pls ;THANK YOU!! ... View Questions/Answers

student  October 26, 2011 at 1:09 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

Trouble with array manipulation  October 26, 2011 at 11:57 AM
For this project I have to print 10 random numbers from (0-99), print the max value, the average of the ten numbers, print the first index at which the maximum of the array occurs, and create an array b which has the same values as a only in reverse order, and print out the first 10 values of b. ... View Questions/Answers

execution of a jdbc program  October 26, 2011 at 9:40 AM
how to execute a servlet program that..uses a jdbc driver (i.e. using mysql-connector -java )to connect to mysql in windows *PLS provid the execution steps in detail THANK YOU!! ... View Questions/Answers

how can you say java is secure  October 26, 2011 at 8:04 AM
we are using notepad editor for Java programming which is an Microsoft product, then how can you say Java is secure when you are using Microsoft product as an editor? ... View Questions/Answers

Very new to Java  October 25, 2011 at 8:55 PM
hi I am pretty new to java and am wanting to create a programe for the rhyme 10 green bottles. 10 green bottles standing on the wall 10 green bottles standing on the wall and if 1 green bottle should accidently fall there'd be.. all the way to 1 green bottle. If anyon... View Questions/Answers

Toedter JDateChooser JSpinner change day value by default in java  October 25, 2011 at 6:14 PM
i have a question, by default the JSpinner when you press up or down buttons it changes the month value. There is a way to change the day value, instead of the month value by default? ... View Questions/Answers

Android  October 25, 2011 at 5:29 PM
How to create Android sample program? ... View Questions/Answers

how I do select from select in hql  October 25, 2011 at 5:28 PM
select RN from ( select rownum RN, dbid from ( select * from profile p where type = 1912 and name like 'a%' order by globalid ) ) where db_id = 259; this is the sql The below hql doesn't work select RN from ( select rownum RN, DBId from (... View Questions/Answers

jsp- database dependent dropdown list  October 25, 2011 at 4:36 PM
i want 2 dropdown list 1- CLASS 2-SECTION both are should come from database. and if i select a class suppose class a the corresponding section dropdown list should retrieve the section respective to that class from database. please help by providing the code in jsp as soon as possible.its urge... View Questions/Answers

how to calculate the price on the option box  October 25, 2011 at 3:01 PM
How i calculate the value when i using a option box with 2 option..first option i used for product name and for the second i used for the quantity..which function should i used to calculate this value??... ... View Questions/Answers

Hiya!  October 25, 2011 at 2:57 PM
Write a program to input an integer and output whether or not it is a valid percentage if anyone could help that would be great Thanks in advance! ... View Questions/Answers

not able to connect to mysql using.. jdbc  October 25, 2011 at 2:20 PM
i am not able to connect to mysql using jdbc .. is there any classpath that i need to set..because i am using mysql-connector-java jar file..to connect to mysql.. Pls provide the steps in detail..THANK YOU!! ... View Questions/Answers

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

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

DMCA.com