Home Answers Questions Question and Answers


 
 

Latest Programming Questions askedAsk your question?

how to upload a file of apk format in a folder from servlet  October 26, 2012 at 10:44 AM
How to upload a file of apk format to a folder from servlet, i am trying to do, its getting uploaded as .zip file and not apk file. ... View Questions/Answers

Parsing into date object  October 25, 2012 at 10:26 PM
Here is my code: String de = (String) session.getAttribute("licvalid"); DateFormat df = new SimpleDateFormat("yyyy/MM/dd"); Date d=new Date(); out.println(d); Date toDt; int oneDay = 24*60*60*1000; toDt = df.parse(de); long diff = (toDt.getTime() - d.getTime())/oneDa... View Questions/Answers

Parsing into date object  October 25, 2012 at 10:26 PM
Here is my code: String de = (String) session.getAttribute("licvalid"); DateFormat df = new SimpleDateFormat("yyyy/MM/dd"); Date d=new Date(); out.println(d); Date toDt; int oneDay = 24*60*60*1000; toDt = df.parse(de); long diff = (toDt.getTime() - d.getTime())/oneDa... View Questions/Answers

Advertisement

how to display the values of one list in other upon clicking a button in struts2  October 25, 2012 at 6:43 PM
Hello friends..Am new to struts2..Please any one has to guide me in struts2.. I have a problem, I have to display the values of one list in other list upon clicking a button...Can any one provide me the sample code.. Hope as soon as possible I can resolve my problem... Thanq.....<... View Questions/Answers

jComboBox with database  October 25, 2012 at 6:25 PM
Hello friends, I have created three JComboBoxes. first two of them get list from string. However I select these two comboboxes, the third combobox automatically retrieve data of a particular column from my database. But in my code its only get data from first item which automatically sele... View Questions/Answers

jdbc connection issues  October 25, 2012 at 4:14 PM
Hello. kindly pls help in this issue...i have created 11 jsp form wit some attributs in it also created 11 tables in the database correspondingly. How pls tell me how connect these 11 forms and 11 tables with only one jdbc connection program...if ... View Questions/Answers

java  October 25, 2012 at 2:16 PM
How we can compress the size of a image in java?? I want to compress heavy images before upload it on to the server. ... View Questions/Answers

jsp :how to edit table of data displayed using jsp when clicked on edit button  October 25, 2012 at 12:21 PM
i have a jsp program which displays data in the form of table ..now i want to delete this information in table when click on delete button and save the data when clicked on save button.. how can i do this ... View Questions/Answers

java  October 25, 2012 at 10:21 AM
Please create a method which will compare two ServiceDefinitionDTO and returns those fields which are not equal. You can write a main method and test it. package com.wellpoint.spider.rma.dto; public class CodeDTO { String value; Stri... View Questions/Answers

servelt refresh page  October 25, 2012 at 8:45 AM
write a program in servlet that display the cricket score.the page should automatically refresh on every 5 seconds.the score should add on every refresh.the total over is 5.on every 30 seconds the wicket should fall down.the page should not refresh after 5 overs is completed. ... View Questions/Answers

Converting PHP page with flash to JSP page without flash  October 24, 2012 at 8:57 PM
Hi, I have a page in php which has some flash content which represents the dynamic data carried by xml. Now I want to convert this php page to jsp and not use flash and display the dynamic content directly using java. Please help, how can I do it ? Do I need to use phpjava-bridg... View Questions/Answers

Spring ApplicationContextAware  October 24, 2012 at 6:08 PM
What is the exact usage of ApplicationContextAware interface in spring? ... View Questions/Answers

XML to DB2 Comparison using Java xpath  October 24, 2012 at 4:55 PM
Hi , I am a manual tester by profession , i have a huge xmls file (1 GB) containing product details of 'n' products . i want to compare these xml values with db2 using Java. I have Good knowledge in C, C++ and Ok with java. I am planning to use xpath to get details from xml and save it a file.... View Questions/Answers

java question  October 24, 2012 at 10:43 AM
the DTO classes and the relation between the classes is given in the below Diagram. Please create a method which will compare two ServiceDefinitionDTO and returns those fields which are not equal. You can write a main method and test it. ... View Questions/Answers

3 dropdown list from the database using JSP  October 24, 2012 at 7:50 AM
Hi, I'm new to JSP I want to create 3 dropdown list each depend on the other and get the options from the database using JSP ... View Questions/Answers

create examination slip for students  October 24, 2012 at 5:18 AM
hello,can anyone help me how to create examination slip that include subject code,courses,credit hours,grade ,and status.. ... View Questions/Answers

create login page using data from text file  October 24, 2012 at 12:08 AM
I want to create login page using data store in textfile(data submit from regiter page to textfile) using jsp and servlet. Thanks! ... View Questions/Answers

Java program that inputs a document and then outputs a bar-chart pit  October 23, 2012 at 11:35 PM
Hello, I am new to Java and would like to see a Java Program that inputs a document and then outputs a bar-chart plot relative to the frequencies of each letter used in doc. Get someone point me in the right direction or given an example of a similar java source code in action? ... View Questions/Answers

collection frame work  October 23, 2012 at 11:11 PM
could you please tell me detail the concept of collection frame work ... View Questions/Answers

exception handling  October 23, 2012 at 11:10 PM
could you please tell me detail the concept of exception handling ... View Questions/Answers

collection frame work  October 23, 2012 at 11:07 PM
explain all the concept in collection frame work ... View Questions/Answers

exception handling  October 23, 2012 at 11:06 PM
explain about exception handling ... View Questions/Answers

when do we get null pointer exception in java  October 23, 2012 at 8:46 PM
can anybody explain me abt null pointer exception? like in wt situation do v get NPE? Are these 2 strings same? String str; String str=null; ... View Questions/Answers

richfaces jsf  October 23, 2012 at 2:55 PM
... View Questions/Answers

How to change uploaded file root path ?  October 23, 2012 at 2:16 PM
I have file upload php script. File upload working is good. But I can't find where saving that file. I think the files saving in mysql directory. How to change directory to my desired path ? like "uploads/" upload.php script : if(isset($POST['upload']) && $... View Questions/Answers

Which java collection to use in scenario below and Why?  October 23, 2012 at 1:03 PM
I want to store thousands of record in a collection and later I want to search. For best and optimized results, which collection will I prefer? ... View Questions/Answers

J2ME  October 23, 2012 at 12:50 PM
hi i am just stared j2me learning. can you please tell me how to put radio button and textFiled at same row? ... View Questions/Answers

Image is not displaying  October 23, 2012 at 12:20 PM
Hii i am using spring javamail with html template to send mail,i am facing that image displaying prob when mail have to cm in gmail,in template just i am giving my current location of image which is as <img src="D:\VMWareProvisioningPoller\src\MyImages\lobo.jpg" alt="company... View Questions/Answers

how to genrate login id and password after submitting the sign up form?  October 23, 2012 at 11:45 AM
i m working on a online voting project in that i have a user sign up form so i want 2 knw that after user submit all the details i that sign up form than how he will get their login id nd passwrd automatically... ... View Questions/Answers

Export data in excel sheet via Browse and upload button into mysql database  October 23, 2012 at 11:26 AM
how to create a Browse & Upload Buttons and then save the information from it in mysql database's Table Am using struts2,hibernate for making the Java web-application ... View Questions/Answers

Bar graph  October 23, 2012 at 11:23 AM
How to include a bar chart in iPhone sdk ... View Questions/Answers

saving data in xml  October 23, 2012 at 11:06 AM
Hi, I have an xml file with spring map, in that i have parent child nodes. I have jsp form in that i have put same parent child elements. when i submit jsp form I want to append same data into xml file. ... View Questions/Answers

scrolling text in applet  October 23, 2012 at 10:30 AM
applet to display the scrolling text. The text should move from right to left. When it reaches to start of the applet border, it should stop moving and restart from the left. When the applet is deactivated, it should stop moving. It should restart moving from the previous location ... View Questions/Answers

Write a program named InternetCharge_YourLastName that do the following:  October 23, 2012 at 7:59 AM
An Internet service provider has three different subscription packages for its customers: Package A: For $9.95 per month 30 hours of access are provided. Additional hours are $1.00 per hour. Package B: For $24.95 per month 50 hours of access are provided. Additional hours are $1.00 per hour. Pack... View Questions/Answers

formatting program  October 23, 2012 at 5:23 AM
Hi I needs some help with this program on formating can anyone help?The details of the program are stated below, thanks. This program should be an example of how Java lets you format numbers and strings. Write a program which shows real numbers being printed with different widths and prec... View Questions/Answers

How to enter elemets in a hashmap and check for the existence of a particular key?  October 22, 2012 at 9:15 PM
Hi, I am trying to read a csv file and storing its contents in a hash map and checking the existence of a particular key in the hash map. Here is my code, Please let me know where am i wrong because i m ant able to figure out my mistake: import j... View Questions/Answers

How to read and display data from a .properties file from a jsp page  October 22, 2012 at 7:43 PM
I have a .properties file. I have to create a jsp page such that it reads the data from this .properties file and display it in table format. Ex:by using inputreader My .properties file s something like ERORECORDS = 600 DELAZERORECOS = 30 ANSYTIM = 900 DEDDEMADF = DEDREGF_ACUV D... View Questions/Answers

how to upload an image from a jsp page to a mysql database table using jsp  October 22, 2012 at 6:36 PM
how to upload an image from a jsp page to a mysql database table using jspstrong text ... View Questions/Answers

list to be displayed in jsp page.  October 22, 2012 at 1:49 PM
Can any one help me? Am developing the code in struts.I have a list in action class that has to be printed in the dropdownlist in another jsp page.Please help me in the code.. Thank u.. ... View Questions/Answers

how to design control panel for web applications  October 22, 2012 at 1:45 PM
how to design control panel for web applications ... View Questions/Answers

how to convert the entire column field of table to dd/mm/yyyy format in microsoft sql server?  October 22, 2012 at 1:45 PM
how to convert the entire column field which is in encryted like 1263332444 of table to dd/mm/yyyy format in microsoft sql server? i got to know how to convert for a single by using [18-10-2012 20:10:25] r chinnaswamy: SELECT DATEADD(second, 1263332444, '19700101') ... i want to know how to chan... View Questions/Answers

paypal or payment gateway  October 22, 2012 at 12:39 PM
how to online payment through jsp please sir tell me ... View Questions/Answers

paypal or payment gateway  October 22, 2012 at 12:39 PM
how to online payment through jsp please sir tell me ... View Questions/Answers

Need urgent help with C++ errors!  October 22, 2012 at 12:39 PM
hi, i'm new to C++ programming. this is my code... i'm using Turbo C++. It's showing so many errors!.. I don't know what to do. Please help!! #include<iostream.h> void main() { cout<<"Can somebody fix this?"; } the errors are list... View Questions/Answers

this is my javascript code and i am not understanding the mistake in this,please help me?  October 22, 2012 at 11:32 AM
<html> <h2>Form Validation</h2> <script language = "Javascript"> function checkEmail() { if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(form.email.value)){ return true; ... View Questions/Answers

display multiple images from postgres database in jframe  October 22, 2012 at 11:30 AM
i just want to display multiple images on jframe by firing a query on postgres database. ... View Questions/Answers

BMI by using JSP Languange  October 22, 2012 at 7:12 AM
Using JSP language, create a system that calculates Body Mass Index (BMI) of users who entered their weight and height. Then, system will display all the records. Can you provide me the coding ? ... View Questions/Answers

BMI by using JSP Languange  October 22, 2012 at 7:12 AM
Using JSP language, create a system that calculates Body Mass Index (BMI) of users who entered their weight and height. Then, system will display all the records. Can you provide me the coding ? ... View Questions/Answers

java learner  October 22, 2012 at 12:07 AM
what software and/or hardware requires to start working on java application? ... View Questions/Answers

jar file  October 21, 2012 at 11:50 PM
how to run a java file by making it a desktop icon i need complete procedur ..through cmd ... View Questions/Answers

JTABLE SCROLL PANE  October 21, 2012 at 11:46 PM
The scrollpane for a image in Jtable is only showing but not working ....here is the code i am doing please suggest something... import java.awt.Component; import java.io.FileReader; import java.util.StringTokenizer; import javax.swing.*; import javax.swing.table.DefaultTableCellRenderer;... View Questions/Answers

JTABLE SCROLL PANE  October 21, 2012 at 11:46 PM
The scrollpane for a image in Jtable is only showing but not working ....here is the code i am doing please suggest something... import java.awt.Component; import java.io.FileReader; import java.util.StringTokenizer; import javax.swing.*; import javax.swing.table.DefaultTableCellRenderer;... View Questions/Answers

store html value in the sqllite 3 php  October 21, 2012 at 10:59 PM
i have a php script that will parse html page content link and view but i need to know how to store this content in the sqlite3 database any suggestion ? include_once('simple_html_dom.php'); //PHP Simple HTML DOM Parser library $html = file_get_html('www.website.co... View Questions/Answers

validation  October 21, 2012 at 8:39 PM
please help me to check validation for <form> <table class="form"> <tr> <td class="col1"> <label>Sno:</label> </td> <td class="col2"> <input type="text" id=... View Questions/Answers

Java Runtime Exception: 0x4F4F:524A 0x4120:5445 0x4348:0D0A  October 21, 2012 at 5:49 PM
Sir I am pravin Gajendra Chobe. I want to run my Project using MYSQL, Netbean, I got some error-- Client side error: Exception in thread "AWT-EventQueue-0" javax.xml.ws.WebServiceException: javax.xml.ws.WebServiceException: java.net.ConnectException: Connection refused: connect ... View Questions/Answers

java  October 21, 2012 at 9:38 AM
what is meaning for public static void main(string args[]) public class name extends applet ... View Questions/Answers

catalogue program  October 21, 2012 at 5:42 AM
emphasized textHello can any one help me with this program,i'm new to java need some help,thank you! This program should allow the user to order from a small catalogue of three items displayed on the screen, then calculate the user's final bill, including taxation at 20%. A sampl... View Questions/Answers

groceries  October 21, 2012 at 1:53 AM
Please help me solve this java question . You have been asked to write a software that allows users to order groceries. The system need to find the users Name, Address, Credit Card Details and Date of Birth ( for customer profiling). the user should be allowed to enter these details at th... View Questions/Answers

How to Get this Output  October 21, 2012 at 1:35 AM
1 1 2 1 2 3 1 2 3 4 1 2 3 4 5 1 2 3 4 5 1 2 3 4 1 2 3 1 2 1 ... View Questions/Answers

draw this pattern of swastic.  October 20, 2012 at 9:02 PM
last time i had asked swastic pattern but u had used array i want use only for loop please not use array , example * ** *** **** ***** public class starn { public static void main(String[] args) { int i; int j; ... View Questions/Answers

draw this pattern of swastic.  October 20, 2012 at 9:02 PM
last time i had asked swastic pattern but u had used array i want use only for loop please not use array , example * ** *** **** ***** public class starn { public static void main(String[] args) { int i; int j;... View Questions/Answers

j2ee  October 20, 2012 at 6:41 PM
I want program for login page with database connectivity using struts framework. that application should session management and cookies ... View Questions/Answers

j2ee  October 20, 2012 at 6:41 PM
I want program for login page with database connectivity using struts framework. that application should session management and cookies ... View Questions/Answers

Exception while inserting image in oracle using java  October 20, 2012 at 4:56 PM
import java.sql.*; import java.io.*; class Oracle2 { public static void main(String args[])throws Exception { DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver()); Connection con=DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:orcl","scott","tiger"); PreparedStatemen... View Questions/Answers

Problem in Array  October 20, 2012 at 4:27 PM
Hi, Can you help me with this problem? Run a program that check if the input string contains equal number of A's and B's. Hoping for your answer.Thank you. ... View Questions/Answers

Business analysis  October 20, 2012 at 3:22 PM
Hi, Could you please let me know the business potential for vehicle tracking system in india for next 5 years???? ... View Questions/Answers

I can not share my message from the textview on Facebook in Android, but in all other Application works successfully  October 20, 2012 at 12:41 PM
TextView tv; final String str = getIntent().getExtras().getString("extra"); tv.setText(str); Intent i = new Intent(Intent.ACTION_SEND); i.setType("text/*"); i.putExtra(android.content.Intent.EXTRA_TEXT, str); startActivity(Intent.createChooser(i, "Share using")); ... View Questions/Answers

Calculator  October 20, 2012 at 11:12 AM
Dear Friends, I need code (or advice) for to calculate the value based on my policy name,policy value and policy duration for my mini project in jsp-servlet. Help Me to solve. Advance thanks you dear friend by ram.... View Questions/Answers

print this image in java code using only loop{for, if, loop}  October 20, 2012 at 1:51 AM
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ... View Questions/Answers

hi plzz reply  October 19, 2012 at 11:58 PM
in our program of Java where we r using the concept of abstraction Plz reply i m trying to learn java ... ... View Questions/Answers

Hey neighbor, can you lend some Hammers?  October 19, 2012 at 10:18 PM
import java.util.Date; public class AccountProblem { public static void main(String[] args) { //create an instance object of class Stock Account myAccount = new Account(1122, 20000.00, 0.045); myAccount.withdraw(2500.00); myAccou... View Questions/Answers

Hey neighbor, can you lend some Hammers?  October 19, 2012 at 10:18 PM
import java.util.Date; public class AccountProblem { public static void main(String[] args) { //create an instance object of class Stock Account myAccount = new Account(1122, 20000.00, 0.045); myAccount.withdraw(2500.00); myAccou... View Questions/Answers

urgent help for inserting database in a project  October 19, 2012 at 9:02 PM
I need some urgent help i have made java application for conducting a quiz which displays 25 mcq's and then the result at the end.I need to add simple database connectivity to it just a single table i guess which would have sno,username result and percentage and order by percentage descending so... View Questions/Answers

urgent help for inserting database in a project  October 19, 2012 at 9:02 PM
I need some urgent help i have made java application for conducting a quiz which displays 25 mcq's and then the result at the end.I need to add simple database connectivity to it just a single table i guess which would have sno,username result and percentage and order by percentage descending so... View Questions/Answers

java print in pattern  October 19, 2012 at 6:55 PM
how to print this pattern? 1 2 3 4 12 13 14 5 11 16 15 6 10 9 8 7 ... View Questions/Answers

how to print in a pattern in java  October 19, 2012 at 6:55 PM
how to print this pattern? 1 2 3 4 12 13 14 5 11 16 15 6 10 9 8 7 ... View Questions/Answers

how to upload multiple files in jsp and saving the path in database and the file in folder  October 19, 2012 at 3:52 PM
how to upload multiple files in jsp and saving the path in database and the file in folder I have created a form for the upload of files, for example, i need to save a image for the photo of candidate and resume in .pdf format. i need to get the name, age gender etc in text field.... View Questions/Answers

jcheckbox in jtable does nothing when clicking on it  October 19, 2012 at 3:24 PM
my table model is as follows public class MyTableModel implements TableModel { ArrayList<PersonDTO> list=new ArrayList<PersonDTO>(); String headerName[]={"checkbox","student_id","name"}; public MyTableModel(ArrayList<PersonDTO&g... View Questions/Answers

java swing  October 19, 2012 at 12:04 PM
what is code for dislay image on java swinginternalframe form MYSQL DB pls send ... View Questions/Answers

java swing  October 19, 2012 at 12:02 PM
what is code for diplay on java swing internal frame form MYSQL DB pls send ... View Questions/Answers

php inserting date into mysql  October 19, 2012 at 11:39 AM
php inserting date into mysql ... View Questions/Answers

Write cookie and session to textfile?  October 19, 2012 at 8:01 AM
I want to store all data from user submisstion into a textfile, include session and cookie. Thanks! ... View Questions/Answers

need help with two dimensional array that takes input from user and bubble sorts and selections sorts  October 19, 2012 at 5:24 AM
I can get both of the sorts figured out but i cannot figure out how i can declare a two dimensional array without knowing how many elements are going to be in it. The number of elements will depend on how many words he/she types without using an array list. ... View Questions/Answers

How to find maximum value for userdefined objects in ArrayList  October 18, 2012 at 9:38 PM
Hi sir,I have requirement i.e finding maximum value in userdefined objects and display that object only and store another collecton object.For example i taken for employe class and write for below sample code ,in this code i can findout maximum value but can't store that object into another objec... View Questions/Answers

How to find maximum value for userdefined objects in ArrayList  October 18, 2012 at 9:38 PM
Hi sir,I have requirement i.e finding maximum value in userdefined objects and display that object only and store another collecton object.For example i taken for employe class and write for below sample code ,in this code i can findout maximum value but can't store that object into another objec... View Questions/Answers

How to find maximum value for userdefined objects in ArrayList  October 18, 2012 at 9:38 PM
Hi sir,I have requirement i.e finding maximum value in userdefined objects and display that object only and store another collecton object.For example i taken for employe class and write for below sample code ,in this code i can findout maximum value but can't store that object into another objec... View Questions/Answers

dynamically add listener to a SWT widget  October 18, 2012 at 6:08 PM
hello, I am using SWT technology for my project,there is mail facility, i want attachment of multiple files.first link is created, but other links have to be generated dynamically as we do in gmail,and there should be a listener for every link.here is the code.. ... View Questions/Answers

How to find maximum value in ArrayList  October 18, 2012 at 3:43 PM
**Sir i am writing below code but its not working.i don't know how to implement logic my requirement.My requirement is find maximum value in userdefined objects and dispaly that object values only.This object store in another collection object(list,set) MY sample code: package co... View Questions/Answers

How to find maximum value in ArrayList  October 18, 2012 at 3:43 PM
**Sir i am writing below code but its not working.i don't know how to implement logic my requirement.My requirement is find maximum value in userdefined objects and dispaly that object values only.This object store in another collection object(list,set) MY sample code: package co... View Questions/Answers

How to find maximum value in ArrayList  October 18, 2012 at 3:42 PM
**Sir i am writing below code but its not working.i don't know how to implement logic my requirement.My requirement is find maximum value in userdefined objects and dispaly that object values only.This object store in another collection object(list,set) MY sample code: package co... View Questions/Answers

How to find maximum value in ArrayList  October 18, 2012 at 3:42 PM
**Sir i am writing below code but its not working.i don't know how to implement logic my requirement.My requirement is find maximum value in userdefined objects and dispaly that object values only.This object store in another collection object(list,set) MY sample code: package co... View Questions/Answers

need help to remove and optimise the code for creating a page  October 18, 2012 at 3:11 PM
i have the following code but it has some sorts of error whenever i run the page after validation through javascript it calls for the servlets and then i tried to retrive the parameters but it is always showing me null values. My Html page is like this <form acti... View Questions/Answers

JSP  October 18, 2012 at 2:00 PM
How to include the same jsp page dynamically to a number of times automatically. ... View Questions/Answers

JSP  October 18, 2012 at 2:00 PM
How to include the same jsp page dynamically to a number of times automatically. ... View Questions/Answers

JSP  October 18, 2012 at 1:58 PM
I need to create the link +. On clicking +, I should get text box and the page should not redirected to another page.The link + and the textbox must appear in the same page.So I tried by using dynamic page include. But I didnt get the desired result. Whenever I am clicking + I should get more tex... View Questions/Answers

JSP  October 18, 2012 at 1:58 PM
I need to create the link +. On clicking +, I should get text box and the page should not redirected to another page.The link + and the textbox must appear in the same page.So I tried by using dynamic page include. But I didnt get the desired result. Whenever I am clicking + I should get more tex... View Questions/Answers

Dynamic include jsp  October 18, 2012 at 1:54 PM
I need dynamic include jsp page with an example ... View Questions/Answers

Restful webservice  October 18, 2012 at 11:19 AM
Hi , Any have any example and steps , how to create a REST full webservice in eclipse. ... View Questions/Answers

swimming pool calculator  October 18, 2012 at 10:59 AM
i'm writing a program to calculate the measurements of a swimming pool & a hot tub. and then the user can enter information about the customer & contractor. when the code run,i just get an empty box. my code is below. any help would be greatly appreciated. im... View Questions/Answers

hello. can anyone help me with my java project, using jcreator?  October 18, 2012 at 12:41 AM
this is how it goes.. we are to develop a GUI of a certain form, in my case this one and then i should be able to create, view, search, and save using swamp.. i just couldn't solve it.. alot of errors.. pls do help... thanks! ... View Questions/Answers

DMCA.com