Home Answers Questions Question and Answers


 
 

Latest Programming Questions askedAsk your question?

How does this example work even if no oracle to be used and only access is available?  January 17, 2012 at 7:06 PM
CONNECTION CLASS package ExamplePackage; import java.sql.*; import java.util.*; public class ConnectionManager { static Connection con; static String url; public static Connection getConnection() { try { Clas... View Questions/Answers

CHN15M116  January 17, 2012 at 6:53 PM
package ExamplePackage; import java.sql.*; import java.util.*; public class ConnectionManager { static Connection con; static String url; public static Connection getConnection() { try { Class.forName("oracle.jdbc.dr... View Questions/Answers

Writing a web page to test drive each method in the web app  January 17, 2012 at 3:04 PM
I got an assignment in my university. I need to write a single web page, that lists all the classes in the particular web app. Selecting a class, the page should list all the functions in it. Selecting a function, the user should be able to feed the parameters and displayed the returned value as ... View Questions/Answers

Advertisement

File I/O  January 17, 2012 at 2:42 PM
i am trying to write a program that reads a text file and writes it to another directory. the main purpose of this program is to take the text file then read it and write it into as a comma delimitade file. i have to problem: everything is perfect but when it comes to writing ... View Questions/Answers

bank application  January 17, 2012 at 11:55 AM
hello sir I got the simple bank application project which is very useful but I want the database for this project kindly send me database for this simple online bank application ... View Questions/Answers

How can I paginate a table which has shown in a div through Ajax in client side without using database  January 17, 2012 at 11:54 AM
The table is shown by calculation in a PHP script file so The data not store any where so please give me the way to paginate the table ... View Questions/Answers

Jfree exception  January 17, 2012 at 11:41 AM
import java.sql.*; import org.jfree.chart.*; import org.jfree.chart.plot.PlotOrientation; import org.jfree.data.category.DefaultCategoryDataset; import org.jfree.data.general.DefaultPieDataset; import org.jfree.data.xy.*; import org.jfree.data.*; public cla... View Questions/Answers

Jfree exception  January 17, 2012 at 11:41 AM
import java.sql.*; import org.jfree.chart.*; import org.jfree.chart.plot.PlotOrientation; import org.jfree.data.category.DefaultCategoryDataset; import org.jfree.data.general.DefaultPieDataset; import org.jfree.data.xy.*; import org.jfree.data.*; public cla... View Questions/Answers

Example for a method in java which returns a class  January 16, 2012 at 9:44 PM
Hi, I want to create a 1 class,and declare some methods there.I need to method must returns a classname.when i call that particular method(which returns a class),how can i access that member variables of that class using that method.......plz do the needful. ... View Questions/Answers

static keyword in interface  January 16, 2012 at 6:21 PM
Could any one explain,why static keyword implict (or explict ) come in interface? I asked lot of persons about this question, but nobody did not answered clearly. please explain clearly and say what is the reason? ... View Questions/Answers

Inheritance  January 16, 2012 at 5:09 PM
static methods are inherited or not? ... View Questions/Answers

sql  January 16, 2012 at 3:02 PM
i want that whenever i click add button in my form value of an column employee-id will automatically increase by one..and show the new employee-id value in text box. please send me the source code for this . ... View Questions/Answers

Database Status  January 16, 2012 at 2:55 PM
Hello Everyone, I am working on a project,its almost done with only module remaining in it i.e; it has to show the status of database in the graph chart or pie diagram in terms of percentage and time period. please help me out. Thanks in advance, Shakeel. ... View Questions/Answers

How to show database values in Graph.(Like Cricket score board Graph)  January 16, 2012 at 2:18 PM
Hi, Can Any one help out! How to show database values in Graph. i mean while changing values in database,the corresponding curve should change accordingly.(Like Cricket score board Graph) ... View Questions/Answers

File I/O  January 16, 2012 at 1:07 PM
greetings i was running into a problem. is their a way to read multiple files from one and write the in a different directory one by one ... View Questions/Answers

image display  January 16, 2012 at 12:29 PM
sir the answer which you have sent to me is already I have I want to know that the syntax which you have writen for display "response.getOutputStream().write(bytearray,0,size); is absolutely right but i want to display in "div image from databse /div" plz help me i will wait for ur reply ... View Questions/Answers

image display  January 16, 2012 at 12:27 PM
sir the answer which you have sent to me is already I have I want to know that the syntax which you have writen for display "response.getOutputStream().write(bytearray,0,size); is absolutely right but i want to display in image from databse plz help me i will wait for ur reply ... View Questions/Answers

how can i display the dates of one week by selecting the date randomly from the calendar?  January 16, 2012 at 12:08 PM
I am facing a problem in my application,Here i should display the calendar, simultaneously i want to display the list of seven dates from the date selected from the calendar. how can we display the dates by picking the date randomly? ... View Questions/Answers

Hospital project  January 16, 2012 at 10:31 AM
hello sir i want hospital management system Source code in C # swing Back-end sql sever 2005. i want these type of model 1. Username and password 2. staff details i. Doctor details ii. nurse details iii. Compounder details iv. Lab technician details v. Wardboy details vi. Sweeper details ... View Questions/Answers

asp.net mobile website  January 16, 2012 at 8:09 AM
hello all.Which framework should I use to develop an asp.net mobile website?I'm currently using visual studio 2010 but it does not have the mobile webform as template. So, should I use the latter or normal web form to develop my website. Thanks :) ... View Questions/Answers

Code for opening a new mail from the default mail box and copy the database contents  January 15, 2012 at 11:16 PM
Guys, here is how it goes when i click on a button say "mail", the code fetches the receipients, subject and the body of the mail from database, now i want a code wherein when i click on "mail" the above said data should respectively be fetched ,and my default mail should be opened and a new mail... View Questions/Answers

national polling system in secure and manager  January 15, 2012 at 10:56 PM
plz help me..i want source code of my project..plz plz send to me ... View Questions/Answers

sorting  January 15, 2012 at 5:10 PM
I have got 3 questions in interview . please help me how to do ? 1) public int rotatedSearch(int[] values, int start , int end , int x) { //implement a search function for a sorted rotated array. //duplicates are allowed. Returning any one of the duplicates is acceptable. } 2) pu... View Questions/Answers

please help me here  January 15, 2012 at 2:09 PM
please show me how can this show the right output that i need please continue doing this program using only if else and do while please please" here is the problem Automatic Teller Machine [B] Balance [D] Deposit [W] Withdrawal [Q] Quit select you OPtions: once i have chosen an o... View Questions/Answers

please help me here  January 15, 2012 at 2:09 PM
please show me how can this show the right output that i need please continue doing this program using only if else and do while please please" here is the problem Automatic Teller Machine [B] Balance [D] Deposit [W] Withdrawal [Q] Quit select you OPtions: once i have chosen an o... View Questions/Answers

java programming code  January 15, 2012 at 2:00 AM
strong textHi I need the java code for the folllowing java output can you help me?The user inputs for the program are in inverted commas thank you. Blockquote HARDWARE ITEMS CODE DESCRIPTION UNIT PRICE K16 Wood screws, brass, 20mm, pack of 50 $ 7.75 D... View Questions/Answers

ask user how many numbers to be inputted and determine the sum and highest number using an array in java  January 14, 2012 at 6:28 PM
ask user how many numbers to be inputted and determine the sum and highest number using an array in java ... View Questions/Answers

command prompt is compilation is not working  January 14, 2012 at 6:06 PM
Dear java users can anyone help me to run the program in command line prompt i tried by selecting the environment variable and class path and path in my system my program is compiling and generation the class file using javac c:\helloworld.java command and the class file is also getting generated... View Questions/Answers

image display  January 14, 2012 at 5:41 PM
hello sir this is saurav srivastav, I am developing my website I have seen all the results of displaying and I got some good code for uploading image in ms access database and also seen the result of displaying image from access database but Sir I want that how I display image from database on a ... View Questions/Answers

core java  January 14, 2012 at 2:38 PM
Dear Friends, I am new to java and i faced one program.Can any one just help me getting output for this program given below: a a b a b c a b c d a b c d e a b c d e f a b c d e a b c d a b c a b a how can we get this out using for loop.please help me.Thank you!!! ... View Questions/Answers

playing an audio file  January 14, 2012 at 12:02 PM
In playing an audio file we have to take one method getAudioClip(getCodeBase(), "TestSnd.wav") inside that getCodeBase() is there which generate an object of URL class .it generates an error.please tell me how to solve this problem and also tell me where i should pass my audio clip path ... View Questions/Answers

is it possible to connect the multiple databases from the hibernate application  January 13, 2012 at 11:25 PM
is it possible to connect the multiple databases from the hibernate application,if it is possible then tell me with step wise manner ... View Questions/Answers

HTMLEncode and HTMLDecode  January 13, 2012 at 11:13 PM
Sir I need your help... Suppose there are 2 dropdownlists in my page. Firstly, I fill the first one with values from database using ajax. There is a field (say code) in the database that contains values with some special characters (e.g ten&five>four)... View Questions/Answers

HTMLEncode and HTMLDecode  January 13, 2012 at 11:09 PM
Sir I need your help... Suppose there are 2 dropdownlists in my page. Firstly, I fill the first one with values from database using ajax. There is a field (say code) in the database that contains values with some special characters (e.g ten&five>four)... View Questions/Answers

HTMLEncode and HTMLDecode  January 13, 2012 at 11:09 PM
Sir I need your help... Suppose there are 2 dropdownlists in my page. Firstly, I fill the first one with values from database using ajax. There is a field (say code) in the database that contains values with some special characters (e.g ten&five>four)... View Questions/Answers

Is the logic correct to detect IE version..plz let me know  January 13, 2012 at 5:52 PM
<html> <head> <script type="text/javascript"> function checkIEVersion() { var IE_Version; var IE_Engine; /*@cc_on @if( @_jscript_version < 9 ) { if( @_jscript_version >= 5.8 ) IE_Version = "8"; ... View Questions/Answers

hello there i need help  January 13, 2012 at 12:42 PM
: i need to do a program like this: Automatic Teller Machine [B] Balance [D] Deposit [W] Withdrawal [Q] Quit select you OPtions: once i have chosen an option then i should proceed here if i choose b: YOur Balance is __ i... View Questions/Answers

convertig biginteger value into integer  January 13, 2012 at 12:05 PM
I want to parse a BigInteger class variable into integer like BigInteger p = BigInteger.valueOf(10); now i want to convert p value into int . I searched so many times on google to solve this problem but i found no solution so please somebody help me to solve this problem .I am the beginner in ja... View Questions/Answers

forwarding request to a jsp when user clicks on back button in ie  January 13, 2012 at 12:03 PM
Hi all, I have developed a web based application. After user log out of the application, We should not allow the customer to go back to the previous page. Can we forward request to a jsp page whenever user clicks on back button?. If it is possible, please help me in resolving this proble... View Questions/Answers

how to validate all form field values at once.  January 13, 2012 at 12:02 PM
how to validate all form field values at once. condition:no form field shold contain sometext("--select--") ... View Questions/Answers

jsp images  January 13, 2012 at 10:55 AM
hi I had done a demo application using jsp. And i tried to display some images which is located in the server folder. It has done by using the IP address path of that image folder.. It has been success full in IE. But it doesn't get displayed in chrome and Mozilla. What's the problem with... View Questions/Answers

Doubts regarding images  January 13, 2012 at 10:49 AM
hello, I am dynamically generating an image in my system with out using database.. And i want the same image if i access the address bar url in other system image xhould be occur in other system also.. so can any one help me out in doing this.. thanks in advance. ... View Questions/Answers

Setting environment variables  January 13, 2012 at 10:26 AM
Hi, I have a java web application running on jboss AS. 1)How do I set the environment variable in jboss? 2)How do I get the environment variable from jboss? ... View Questions/Answers

Network monitoring under LAN  January 13, 2012 at 10:00 AM
am in search of a java program that monitors the real time traffic statistics such as datarate,traffic flow of a LAN....can any one help me by posting java codes or related ideas.. ... View Questions/Answers

lists  January 13, 2012 at 6:02 AM
how to implement lists by using array? ... View Questions/Answers

database and servlets  January 13, 2012 at 2:10 AM
how can get the questions from a database and use it as questions for a form. and present one question per page. its for a tomcat server ... View Questions/Answers

code for program  January 13, 2012 at 12:30 AM
hello,I am new to java and need to get the code for a program,i've been trying all sorts of code and nothing works any help would be appreciated.Below is what the program should output with the user's input enclosed in inverted commas thank you. BlockquoteHARDWARE ITEMS C... View Questions/Answers

compilation error  January 12, 2012 at 11:12 PM
Hi my program below is not compiling,when I try to compile it i'm getting the error message "tool completed with exit code 1".The loop has to be at the end of the program can you help me. Blockquoteimport java.util.*; import java.text.*; class HardwareItems { St... View Questions/Answers

super class  January 12, 2012 at 11:08 PM
which is the super base class in java..? ... View Questions/Answers

abstract method  January 12, 2012 at 11:05 PM
is final method is in abstract class or not ...? ... View Questions/Answers

mailserver  January 12, 2012 at 10:38 PM
how to fatch email into mailbox? ... View Questions/Answers

threads in java  January 12, 2012 at 9:22 PM
how to read a file in java , split it and write into two different files using threads such that thread is running twice ... View Questions/Answers

struts 1.3  January 12, 2012 at 6:25 PM
my requirement is i have two drop downs.second drop down menu is connected to first drop down.when i click an item from first drop down all the data related to that item in database will come in next drop down menu using struts 1.3 but without using ajax. ... View Questions/Answers

event tracking code  January 12, 2012 at 6:24 PM
a javascript written that will help us to track sitewide, even tracking in Google Analytics ... View Questions/Answers

parse url iphone sdk  January 12, 2012 at 4:58 PM
How can i parse two different URL's using NSXMLParser.... ... View Questions/Answers

Modify Data Type with ALTER Command  January 12, 2012 at 3:18 PM
Is it possible to modify the Data type of a column which has at least one data in it?If it is possible,then what will happen to the data in the column? Example. Table Name: Emp EmpName | Salary Smith | 10000 The above table is with 'Char' as datatype for... View Questions/Answers

using java.lang.OutOfMemoryError: Java heap space  January 12, 2012 at 1:51 PM
i wrote a program that reads and writes multiple files and combines them and writes them as one single file in as CVS format(bin.txt). After the program is done then another class reads the new file and removes extra delimiter(,) that the first file had at the end for some reason. the problem com... View Questions/Answers

database  January 12, 2012 at 12:02 PM
i need optimised search algorithm and ranking algorithm for my project. i planned to develop one real time application. in that i search user required data from the database and rank the results and display it to the user can you tell any real time application which is not currently available? ca... View Questions/Answers

database  January 12, 2012 at 12:01 PM
i need optimised searching algorithm to retrieve the data from the database and optimised ranking algorithm to display the reults into the user.. ... View Questions/Answers

json and android  January 12, 2012 at 4:52 AM
how can i use a json string [{"Id":10,"News":"sportnews"}] and fill a spinner for a android app?. i tried and i got a: AndroidRuntime:android.widget.ArrayAdapter.createViewFromResource(Adapter.) ... View Questions/Answers

jsp code plz  January 12, 2012 at 12:46 AM
write jsp code which takes student roll number as input and prints the student group,study center, and his grade card ... View Questions/Answers

Hybernate technology  January 12, 2012 at 12:03 AM
what is hybernate technology in java ... View Questions/Answers

adding loop  January 11, 2012 at 11:42 PM
Hi I have a program that is not compiling when I add a loop can you help me?The program below is compiling without the loop. > Blockquote mport java.util.*; import java.text.*; import java.util.Scanner; class HardwareItems { String code; S... View Questions/Answers

ajax  January 11, 2012 at 10:47 PM
How can we fetch data in ajax through servlet? ... View Questions/Answers

ajax  January 11, 2012 at 10:47 PM
How can we fetch data in ajax through servlet? ... View Questions/Answers

ajax  January 11, 2012 at 10:47 PM
How can we fetch data in ajax through servlet? ... View Questions/Answers

ajax  January 11, 2012 at 10:46 PM
How can we fetch data in ajax through servlet? ... View Questions/Answers

form field mapping with pdf file using java  January 11, 2012 at 5:05 PM
Hai all, I have one requirement that i have one html form.i have to map the form fields with pdf file. means, if click on text field according that perticular field .the data related to the field in pdf file should marked with a color. can any one give an idea regarding ... View Questions/Answers

insert rows from browsed file to sql database  January 11, 2012 at 3:50 PM
i need to insert rows from excel to database by browsing the file in jsp. by connecting both the databases using odbc i can do this. but after browsing and uploaded the file, content of the file has to go to database. how can i insert record into database by browsed file??? ... View Questions/Answers

Searching operation in JAva  January 11, 2012 at 1:52 PM
Sir, I have made a project for the Dispatch section of my office. I have to search for letters that are dispatched on a particular date. Now there are thousands of letters dispatched on a particular date. I want to refine my search. Can anybody plz tell me how can I perform search using date, let... View Questions/Answers

Searching operation in JAva  January 11, 2012 at 1:52 PM
Sir, I have made a project for the Dispatch section of my office. I have to search for letters that are dispatched on a particular date. Now there are thousands of letters dispatched on a particular date. I want to refine my search. Can anybody plz tell me how can I perform search using date, let... View Questions/Answers

Searching operation in JAva  January 11, 2012 at 1:52 PM
Sir, I have made a project for the Dispatch section of my office. I have to search for letters that are dispatched on a particular date. Now there are thousands of letters dispatched on a particular date. I want to refine my search. Can anybody plz tell me how can I perform search using date, let... View Questions/Answers

Searching operation in JAva  January 11, 2012 at 1:52 PM
Sir, I have made a project for the Dispatch section of my office. I have to search for letters that are dispatched on a particular date. Now there are thousands of letters dispatched on a particular date. I want to refine my search. Can anybody plz tell me how can I perform search using date, let... View Questions/Answers

xml Converting to java using JDOM  January 11, 2012 at 1:26 PM
Hello , I am new to java and JDom so i make a Xml file and i need help to read it from java using objects , my idea is i have school has a class,class has a 3 students ,student has a address and in java i have school,class,student,address class each one have a setter and getter , i dont know how ... View Questions/Answers

Static Variable  January 11, 2012 at 12:43 PM
What is the basic use of introducing static variable type in java?Please explain clearly.... ... View Questions/Answers

How to retrieve single row from MSSQL  January 11, 2012 at 12:05 PM
Hello sir, Sir i had created the table in MSSQL,the fields with patient name,pid,Dname(doctor name),technician name.Here it contains say four names in the table.I had created the patient name and doc name and search button in GUI window.What i want is after giving the name of ... View Questions/Answers

How to retrieve single row from MSSQL  January 11, 2012 at 12:05 PM
Hello sir, Sir i had created the table in MSSQL,the fields with patient name,pid,Dname(doctor name),technician name.Here it contains say four names in the table.I had created the patient name and doc name and search button in GUI window.What i want is after giving the name of ... View Questions/Answers

How to retrieve single row from MSSQL  January 11, 2012 at 12:05 PM
Hello sir, Sir i had created the table in MSSQL,the fields with patient name,pid,Dname(doctor name),technician name.Here it contains say four names in the table.I had created the patient name and doc name and search button in GUI window.What i want is after giving the name of ... View Questions/Answers

Drools Application in Java  January 11, 2012 at 12:03 PM
when I have make a drools application using java and eclipse i have a facing a error Unable to instantiate service for Class 'org.drools.builder.KnowledgeBuilderFactoryService' I was searching this error in net but I'll not find a proper solution any one plz.. give me a solu... View Questions/Answers

Tomcat Server configuration with Eclipse at remote machine  January 11, 2012 at 10:52 AM
"Several Ports (8081,8009), required by /Tomcat v6.0 Server at a localhost are already in use. The server may already be running in another process, or a system process may be using the port. To start this server you will need to stop the other process or change the port number(s)." This ... View Questions/Answers

invoice  January 11, 2012 at 5:17 AM
Hello I need the code to output an invoive for a java program any help would be appreciated.The output would look like this: INVOICE FOR ORDER John James Apt 23 Building 10 California POST CODE:67852 D24 Paint,blue,1 litre 2 @ $ 5.50 $ 11... View Questions/Answers

weblogic server  January 11, 2012 at 12:06 AM
as a java developer how much knowledge he has to know about the weblogic sever,if one know please give me reply ... View Questions/Answers

Sending SMS From Java Programs  January 10, 2012 at 10:34 PM
I want to develop and application to send sms from my computer, can someone please help me, like tell me where to start and what i need? ... View Questions/Answers

Sending Emails In Java  January 10, 2012 at 9:39 PM
I want to send emails from within a java program. I saw some online java programs to do that, but they needed me to enter a smtp server, but i don't know what that should be. Can someone please help with how to write the code? ... View Questions/Answers

Sending Emails In Java  January 10, 2012 at 9:39 PM
I want to send emails from within a java program. I saw some online java programs to do that, but they needed me to enter a smtp server, but i don't know what that should be. Can someone please help with how to write the code? ... View Questions/Answers

Sending Emails In Java  January 10, 2012 at 9:39 PM
I want to send emails from within a java program. I saw some online java programs to do that, but they needed me to enter a smtp server, but i don't know what that should be. Can someone please help with how to write the code? ... View Questions/Answers

error in uploading image from jsp to oracle 10g database  January 10, 2012 at 7:59 PM
java.sql.SQLException: ORA-01460: unimplemented or unreasonable conversion requested when i try to insert into the image into the database i got the above error please advice how to get rid of error ... View Questions/Answers

Graph  January 10, 2012 at 7:38 PM
What is the code to generate the following graphs? 1.Simple Bar diagram 2.Sub-divided Bar diagram 3.Pie chart Please Help!!!! ... View Questions/Answers

string  January 10, 2012 at 6:54 PM
difference detween "public static void main (String[] args) " and "public static void main (String args[])" in java but it executes both ,in java which one is legal ... View Questions/Answers

txt to cvs format  January 10, 2012 at 6:45 PM
i am writing a simple program that read a text file from one directory and writes an new one in cvs format in another one. I am running into a problem on how to correctly format it . for now this is what i have can someone help me.. thank you :) first class: package elite.tech.com... View Questions/Answers

XmlBeanFactory is depricated from spring3.0  January 10, 2012 at 4:42 PM
XmlBeanFactory is depricated from spring3.0 So how to load Sping config ... View Questions/Answers

query regarding arraylist  January 10, 2012 at 4:21 PM
i m using sql server + jsp to develop my program. i have a problem of fetching data from the table in database. i m storing my keys in arraylist, now i want to get data according to that keys. keys are ids in database. The corresponding data should be displayed on click of an item in the list.... View Questions/Answers

I am writing a program which converts a string to a timestamp and add days to it  January 10, 2012 at 4:04 PM
java.sql.Timestamp ts2 = java.sql.Timestamp.valueOf("2012-01-11 12:34:39"); long l=ts2.getTime() +(100060602424);//add 24 days Date d=new Date(l); System.out.println(d); output=Sat Feb 04 12:34:39 IST 2012 //correct java.sql.Timestamp ts2 = java.sql.Timestamp.val... View Questions/Answers

Publish WSDL  January 10, 2012 at 3:57 PM
How can we publish Web Services using Eclipse? What all plugins are required? Do we have to create our own registry for publishing or are private UDDI registries still available? ... View Questions/Answers

Publish WSDL  January 10, 2012 at 3:56 PM
How can we publish Web Services using Eclipse? What all plugins are required? Do we have to create our own registry for publishing or are private UDDI registries still available? ... View Questions/Answers

Tomcat Configuration For Eclipse Server  January 10, 2012 at 3:35 PM
How to configure Eclipse Tomcat Server? I am using Tomcat 6.0v Thanks In Advance ... View Questions/Answers

Java Example projects about STRUTS  January 10, 2012 at 2:13 PM
Hai... I completed MCA but i have no job in my hands. But i do some small projects about STRUTS. Please send me some example projects about STRUTS. ... View Questions/Answers

prime nos  January 10, 2012 at 1:22 PM
Instead of using break statement in finding the prime nos ,is there any other way ?? if it is there pls tell that also ... View Questions/Answers

how to disable submit button in jsp using servlet when some condition is satisfied  January 10, 2012 at 10:45 AM
how to disable submit button in jsp using servlet when some condition is satisfied ... View Questions/Answers

DMCA.com