Home Answers Questions Question and Answers


 
 

Latest Programming Questions askedAsk your question?

connectivity with mysql  July 18, 2012 at 9:35 AM
if this code of roseindia doesnt work,then what to do..cant connect with my sql http://www.roseindia.net/tutorial/php/phpdatabase/Check-PHP-MySQL-Connectivity.html ... View Questions/Answers

inserting into mysql database with uid to be primary key and autoincrement  July 18, 2012 at 8:56 AM
hello, i am new to jsp and facing problem in creating a database entry from a jsp form where there will be a uid which will be auto incremented each time the form will be submitted. pls help me out with any kind of short code example so that i can understand easily. Expecting reply at the earlie... View Questions/Answers

Java  July 17, 2012 at 10:32 PM
why all the class in io package are abstract and collection are interface. ... View Questions/Answers

Advertisement

program created and compilation error of connection rightly created n tested  July 17, 2012 at 9:10 PM
// I have made connection as the data source dsn2 and i have also created table named Tab1 in SQL server 2008..it is compiled correctly but is giving error for connection on which other programs are running smoothly...:( import java.awt.*; import java.awt.event.*; import java.awt.FlowLayo... View Questions/Answers

jdbc in linux  July 17, 2012 at 6:46 PM
what will be database url if i'm using mysql database on linux platform ? what will be driver name & class name to be used in "Class.forName()" method ? plz give short source code . ... View Questions/Answers

Validate 2 list boxes, one is multiselect, one is singleselect  July 17, 2012 at 6:01 PM
<head> <script language="javascript"> function validateListBox(){ var lb = document.getElementById('mySelect'); var count1 = 0; arrTexts = new Array(); for(var i=0; i<lb.length... View Questions/Answers

class room training centers in delhi ncr  July 17, 2012 at 5:43 PM
class room training centers in delhi ncr ... View Questions/Answers

Training and Placement  July 17, 2012 at 5:19 PM
Sir, I want to know that do you provide class-room training on java, j2ee, spring, strut, hibernate,php etc ? If so, What is your course contents? What are the Class room training centers? What is the schedule of training? What is the fee structure? ... View Questions/Answers

training and placement  July 17, 2012 at 4:57 PM
Do you provide class room training ? If so please give address of these centers near delhi and ncr refions. ... View Questions/Answers

Placement Programme  July 17, 2012 at 4:52 PM
Do you help candidates in their placement ? ... View Questions/Answers

training and placement  July 17, 2012 at 4:49 PM
Is there training center to provide training rather than on line training ? If so please intimate training center address near delhi and ncr region. ... View Questions/Answers

Training and Placement  July 17, 2012 at 4:40 PM
Where can I give my son a perfect training of java to help him find a good job? ... View Questions/Answers

training and placement of my child who is very much interested in doing jobs of his key interests like java, j2ee, php etc,  July 17, 2012 at 4:34 PM
I want my son to be trained in java developing ,how should I go? ... View Questions/Answers

training and placement of my child who is very much interested in doing jobs of his key interests like java, j2ee, php etc,  July 17, 2012 at 4:34 PM
I want my son to be trained in java developing ,how should I go? ... View Questions/Answers

training and placement of my child who is very much interested in doing jobs of his key interests like java, j2ee, php etc,  July 17, 2012 at 4:34 PM
I want my son to be trained in java developing ,how should I go? ... View Questions/Answers

Java XML parser  July 17, 2012 at 3:27 PM
Hi friends, i am new to java XML parsing. i need to parse the following xml response which i got from a url hit: <response> <status>SUCCESS</status> <app-config> <CHECK_LOW_SCORE>true</CHECK_LOW_SCORE> <DELETE_AFTER_UPLOAD>true</D... View Questions/Answers

how to display(update) current date and month in select box on selecting the year.  July 17, 2012 at 12:37 PM
how to display(update) current date and month in select box on selecting the year. ... View Questions/Answers

very important - Kindly help  July 17, 2012 at 11:56 AM
I am creating web page for form registration to my department ..I have to Reprint the Application Form (i.e Download the PDf File from the Database ) , when the user gives the Application number and date of birth or Email Address . How to do the Post Action . Can anyone post sample code for this ... View Questions/Answers

web page for form registration to my department  July 17, 2012 at 11:55 AM
I am creating web page for form registration to my department ..I have to Reprint the Application Form (i.e Download the PDf File from the Database ) , when the user gives the Application number and date of birth or Email Address . How to do the Post Action . Can anyone post sample code for this ... View Questions/Answers

creating web page for form registration  July 17, 2012 at 11:54 AM
I am creating web page for form registration to my department ..I have to Reprint the Application Form (i.e Download the PDf File from the Database ) , when the user gives the Application number and date of birth or Email Address . How to do the Post Action . Can anyone post sample code for this... View Questions/Answers

error of HTTP Status 404 while running servlet on apache tomcat server  July 17, 2012 at 11:06 AM
i have followed the steps given here.Also hava put servlet-api in lib folder and have set classpath properly. on typing "http://localhost:8080" i do get the apache tomcat page. It mean that my tomcat server is up and running. but whn i try to run my servlet that is placed in the directories as it... View Questions/Answers

Persistance Framework  July 17, 2012 at 10:51 AM
Hi, In my main page i have a button(Filter),on click, opens a new child window where in i have RadDataFilter and save button,after entering appropriate value,once i click save, it takes me back to the main screen (saving my data). Again if i click filter,my saved data should load ... View Questions/Answers

Java Client Application  July 17, 2012 at 12:56 AM
Java Client Application ... View Questions/Answers

Java HTML Client Application  July 17, 2012 at 12:53 AM
Java HTML Client Application ... View Questions/Answers

xml  July 17, 2012 at 12:33 AM
what is xml ... View Questions/Answers

what is ajax  July 17, 2012 at 12:30 AM
what is ajax ... View Questions/Answers

what is response.redirct() means  July 17, 2012 at 12:04 AM
what is response.redirct() means in servlet....can anyone tell me ... View Questions/Answers

java tricky question  July 16, 2012 at 9:49 PM
can we have dynamic polymorphism without overriding in java..?? I know tht itz possible..but hav no idea how..? can any1 help me out. Thanks in advance. ... View Questions/Answers

Server_Gives_Null_Response  July 16, 2012 at 6:13 PM
I have one InternetServer.java which starts a server at port 10000. In same class i have started a server at different port(6066). I have one client class which is in different java project. My working is that first i run server it start working at port 1000,aftar that it wait for connection at... View Questions/Answers

Difference between Timer and Thread?  July 16, 2012 at 6:06 PM
Can anyone tell me about the difference between Timer and Thread, Why we need to have Timer in case we have Thread implimentation startegy in Java. ... View Questions/Answers

LINKING PAGES OF PROJECT ON BANKING MANAGEMENT  July 16, 2012 at 5:37 PM
SIR. pls i want to know how to link pages such that by clicking a button different page gets open on which we can make addition or we can edit?? i m making project on Banking ..pls mail me the answer on ... View Questions/Answers

Oracle Database - Insert System Time  July 16, 2012 at 4:18 PM
Hi I want to insert only system time dynamically using a statement but not a prepared statement into Oracle Database please suggest me any code for it. ... View Questions/Answers

output of the program  July 16, 2012 at 4:11 PM
public static int sum(List list) { int sum = 0; for ( Iterator iter = list.iterator(); iter.hasNext(); ) { int i = ((Integer)iter.next()).intValue(); sum += i; } return sum; } ... View Questions/Answers

How to retrive database information using servlet and disply in table format in browser  July 16, 2012 at 2:27 PM
Hi, any one send code how to retrive the data base information in table format in web browser ... View Questions/Answers

Regular Expression for removing XML Tags  July 16, 2012 at 12:39 PM
Hi, Good Afternoon.I want a Regular expression in java which is removing the XML Tags in the specified Text String like, String txt="<Hello>How are you"; I want output of this txt after applying regular expression is only "How are you".Need to remove all XML tags. Th... View Questions/Answers

constructors  July 16, 2012 at 12:35 PM
package Test; class B { B() { } private B() { } } public class A { public static void main(String[] args) { B b1 = new B(); } } Error: Duplicate method B in type B. Trying... View Questions/Answers

java  July 16, 2012 at 10:27 AM
Please send me some question and answers regarding interview ..... ... View Questions/Answers

mohan  July 15, 2012 at 11:16 PM
sir i'm beginner to java programming.i'm facing problem with concepts.i'm not able to understand the concepts plz tell me which books r better for beginners. ... View Questions/Answers

how char values are converted to their 16-bit representation in jvm?  July 15, 2012 at 6:30 PM
can anyone explain the conversion of character 'c' to its 16-bit representation in jvm? ... View Questions/Answers

Banking projecy  July 15, 2012 at 10:58 AM
Sir I am designing a banking project where i want a home page with labels and when i click one label the next page gets open..pls help me ... View Questions/Answers

java code along wid graphics design  July 14, 2012 at 9:58 PM
actually i want to design nd make an apllication to solve a rubics cube of 3*3.. i have an algos wid me bt jus need ur guidance..plzz hlp out or if u have ny other ideas do suggest ... View Questions/Answers

Query in jsp  July 14, 2012 at 9:12 PM
I have one textbox in jsp. when i will write any letter in that textbox i want all values which are starting from that letter in option from database. same as we are getting in google search textbox. Thank in advance. ... View Questions/Answers

struts 1.x  July 14, 2012 at 8:41 PM
hi... sir. This is sreenu sir. I am learning struts2 but i have a small doubt i am using include tag. ex include tag is not displayed pls telll me sir.? i using this tag using but it is not work pls give me one example ... View Questions/Answers

Tags in struts 1  July 14, 2012 at 8:41 PM
I have problem in Include tag in Struts this tag using but it is not work Please Explain ... View Questions/Answers

Include tag example in Struts  July 14, 2012 at 8:41 PM
hi... sir. This is sreenu sir. I am learning struts2 but i have a small doubt i am using include tag. ex... include tag ..... is not displayed pls telll me sir.? i using this tag using but it is not work pls give me one example ... View Questions/Answers

How to save form fields into the MySql Database without submit button in jsp?  July 14, 2012 at 3:32 PM
I want to store user inputs into the database using javasccript or ajax or jqury but without submit button. Form Contains three fields: Name,Age,Address. ... View Questions/Answers

xml parsing  July 14, 2012 at 1:34 PM
my task is when i wll give java file to a program that program interpret that file separate each and every keywords and indentifiers and return the csv file that contains count of used keywords and idenfiers by using xml.. please anyone of you give some idea ... View Questions/Answers

Values from servlet into dropdownlist in jsp page using ajax  July 14, 2012 at 9:39 AM
1) jsp file <%@page import="java.sql.Statement"%> <%@page import="java.sql.ResultSet"%> <%@page import="controller.ConnectionString"%> <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-... View Questions/Answers

Which java can i download?  July 13, 2012 at 11:32 PM
Hello, i'm a beginner on java. Which java can i download for to exercise with my codes? Thanks in advance. ... View Questions/Answers

What is the answer and how the program work?  July 13, 2012 at 10:34 PM
public class Threads2 implements Runnable { public void run() { System.out.println("run."); throw new RuntimeException("Problem"); } public static void main(String[] args) { Thread t = new Thread(new Threads2()); t.start(); System.out.println("End of method."); } } Which two can be resu... View Questions/Answers

about inner class  July 13, 2012 at 10:14 PM
class Outer { class Inner{ public void m1(){ System.out.println("Inner class Method"); } } public void m2(){ Inner i = new Inner(); i.m1(); } public static void main(String ar[]){ Outer o = new Outer(); o.m2(); } } in this i got compile time error as: cannot find symbol method m2() cla... View Questions/Answers

Displaying search results in same panel of gridview in same jframe window.  July 13, 2012 at 6:06 PM
Hello Sir, I have a search frame window from which we can search and see the results in the same panel of the Jframe in Gridview Jtable format ... Jtable is being constructed dynamically based on columns of database query.... But when we execute search for the second... View Questions/Answers

Displaying search results in same panel of gridview in same jframe window.  July 13, 2012 at 6:06 PM
Hello Sir, I have a search frame window from which we can search and see the results in the same panel of the Jframe in Gridview Jtable format ... Jtable is being constructed dynamically based on columns of database query.... But when we execute search for the second... View Questions/Answers

Java count occurrence of a word  July 13, 2012 at 2:17 PM
there is file called "story.txt",in a program we want to count occurrence of a word (example bangalore) in this file and print how many time word is present in the file. ... View Questions/Answers

Garbage collection  July 13, 2012 at 6:49 AM
why garbage collection? How it works? ... View Questions/Answers

Help With My Java Project?  July 13, 2012 at 2:43 AM
Write a console program that repeatedly prompts the user to enter data until they type done (any case, Upper, Lower, or Mixed). As they enter the data, assign it to a two-dimension array where the first dimension contains exactly what they type and the second dimension contains the first non-whit... View Questions/Answers

struts - application missing something?  July 13, 2012 at 2:14 AM
Hello I added a parameter for condition to my GetLogoutAction. I've got the action and forward in the struts working and all is great till I close JBoss or the server gets shut down and Strut-config.xml is generated again. My action forwards are no longer there. I can manuall... View Questions/Answers

Method overriding  July 13, 2012 at 12:59 AM
can a method declared in one package be over ridden in a different package? ... View Questions/Answers

java mail  July 12, 2012 at 9:25 PM
how to download javamail software give one examples ... View Questions/Answers

java mail example  July 12, 2012 at 9:25 PM
how to download javamail software give one examples ... View Questions/Answers

Website Description Data Scraper & Image/Thumbnail Generator  July 12, 2012 at 7:55 PM
This is yhoo I need Image/Thumbnail Generator code in java. Please help me ... View Questions/Answers

Website Description Data Scraper & Image/Thumbnail Generator  July 12, 2012 at 7:49 PM
I need Image/Thumbnail Generator code in java. Please help me ... View Questions/Answers

How to open textfields in the the same panel of the jframe by selcting from dropdown menu option ...  July 12, 2012 at 6:27 PM
Hello Sir, I have a dropdown menu and i have to show textfields and submit button on the basis of the selection of option from the dropdown menu .acc. to my requirement i have to show the textfields and submit button in the same panel of the jframe window . Below is my cod... View Questions/Answers

problem with org.apache.jasper.JasperException: java.lang.NullPointerException  July 12, 2012 at 6:14 PM
I could not find my mistake. Here is my code. Thanks in advance. <body> <% String pack_id = request.getParameter("pack_id"); String pack_name = request.getParameter("pack_name"); String pack_day = request.getParameter("pack_day")... View Questions/Answers

when I run exiting project that time I got error, I want solution on it?  July 12, 2012 at 5:17 PM
Error occurred during deployment: Exception while loading the app : java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: java.lang.RuntimeException: java.lang.NoClassDefFoundError: org/apache/commons/lang3/StringUtils. Pleas... View Questions/Answers

how to insert checkbox value into database using jsp  July 12, 2012 at 4:37 PM
How to insert check box value to the oracle database using jsp? I want to create hotel's package. where the admin will select the activities to insert in the PACKAGE table. I also have the ACTIVITY table, where it have the PK for every activities. Here is my code ... View Questions/Answers

how to insert checkbox value into database using jsp  July 12, 2012 at 4:34 PM
How to insert check box value to the oracle database using jsp? I want to create hotel's package. where the admin will select the activities to insert in the PACKAGE table. I also have the ACTIVITY table, where it have the PK for every activities. Here is my code ... View Questions/Answers

how to use group by in nested query  July 12, 2012 at 3:39 PM
Hai, How to use group by clause in nested query select statement in subquery i am having where clause.please help me.thanks in advance. ... View Questions/Answers

GROUP BY IN NESTED QUERY  July 12, 2012 at 3:20 PM
Hello Every One, Query to use GROUP BY CLAUSE IN NESTED QUERY SELECT STATEMENT in mysql database.If u know please help me.thanks ... View Questions/Answers

How to invoke other java class by selecting from dropdown menu and subsequently clicking button in java swing application  July 12, 2012 at 1:19 PM
Hello Sir, first of all thanx and congratulations to u all guys for helping programmers like us who are new in the industry. In my project ,I need to generate reports and Reports are of two types : 1.Detail Report and 2.Summary Report . Sir I want to design a dropdown menu... View Questions/Answers

How to invoke other java class by selecting from dropdown menu and subsequently clicking button in java swing application  July 12, 2012 at 1:19 PM
Hello Sir, first of all thanx and congratulations to u all guys for helping programmers like us who are new in the industry. In my project ,I need to generate reports and Reports are of two types : 1.Detail Report and 2.Summary Report . Sir I want to design a dropdown menu... View Questions/Answers

How to invoke other java class by selecting from dropdown menu and subsequently clicking button in java swing application  July 12, 2012 at 1:19 PM
Hello Sir, first of all thanx and congratulations to u all guys for helping programmers like us who are new in the industry. In my project ,I need to generate reports and Reports are of two types : 1.Detail Report and 2.Summary Report . Sir I want to design a dropdown menu... View Questions/Answers

SWING FRMES  July 12, 2012 at 12:45 PM
hai SIR? HOW TO DESIGN swing Frames send source code ... View Questions/Answers

SWING FRMES  July 12, 2012 at 12:44 PM
hai SIR? HOW TO DESIGN swing Frames send source code ... View Questions/Answers

age calculation  July 12, 2012 at 12:40 PM
pls send me the age calculation validation coding in java script. i'm waiting for ur reply... ... View Questions/Answers

ANT  July 12, 2012 at 11:39 AM
hi sir how to use JavaAnt? pls tell me sir ... View Questions/Answers

ANT  July 12, 2012 at 11:39 AM
hi sir how to use JavaAnt? pls tell me sir ... View Questions/Answers

Need help with console program?  July 12, 2012 at 1:21 AM
Write a console program that repeatedly prompts the user to enter data until they type done (any case, Upper, Lower, or Mixed). thanks in advance. ... View Questions/Answers

Help With Costructing Selection sort?  July 11, 2012 at 11:44 PM
Using a selection sort, for each entry in the array, display the original index of the first dimension, the second dimension's value, and the first dimension's value on a single line separated by : (colon) sorted by the first dimension. I got the two dimensional array figure out just don... View Questions/Answers

Using HeaderFooter class of iText API , Can we display multiple phrases in the footer section of PDF ,each with different alignment.  July 11, 2012 at 9:06 PM
Hi, I have a similar question related to HeaderFooter class, I want to display three Phrases on Footer of the Page. First Phrase should be aligned left,Second phrase on the right and Third phrase in the middle. How can we acheive this? is it possible ? If so Please suggest me. ... View Questions/Answers

factorial using recursive  July 11, 2012 at 8:09 PM
can please give this code !i am going to do a factorial function using recursion definition and then . my professor told me that we are going to create a three screen. the first screen should be input an MAIN MENU then above that RECURSION below that again the EXIT BUTTON.. then second sc... View Questions/Answers

how to show search results in the same panel of jframe to where search field and button is present..  July 11, 2012 at 6:43 PM
Hello Sir, Sir i do have one more query ,In the given code search results is being displayed in the other jframe. But in my application i need to show search results in the same panel of jframe to where search field and button is present . please Sir, send me the code fo... View Questions/Answers

Delete points from database  July 11, 2012 at 5:43 PM
I have a polygon on a web page and a delete button. The polygon is saved in the database in one table and in another table, the coordinates of polygon (latitude,longitude) are saved. When I click the delete button, the polygon in the webpage gets deleted as well as the polygon in database. Howeve... View Questions/Answers

Will i be able to get the content of a webpage in a word document (Note:i don t have access to the source code)through java code?  July 11, 2012 at 3:56 PM
public class WebpageReader { public static void main(String[] args) throws IOException { String line = null, response; URL url = new URL("http://www.google.co.in/"); HttpURLConnection conn = (HttpURLConnection) url.openConnection(); B... View Questions/Answers

How to create XML from Swings  July 11, 2012 at 2:46 PM
How to create XML using Swings. I have a Swing GUI and capturing all data from it.When i click on submit, an xml should be created with proper binding for all the elements. < Student > < Name >abc < /Name > < id >123< /id > < /student > ... View Questions/Answers

multipications table  July 11, 2012 at 2:40 PM
i need to do a Form (decide if this should be html or jsp file). Form contains an HTML form with two fields:a text input (called "size") and a button. When the button is clicked, another page appears.. Table (decide if this is HTML or JSP) Table shows the multipications table up to the "size" i... View Questions/Answers

How to execute mysql query based on checkboxes values in java swing application.  July 11, 2012 at 2:33 PM
Hello Sir, I have a java swing application and i have to execute query based on selection of checkboxes.Means I have to to execute query acording to the checkbox. whichever checkbox is selected query should be executed likewise and according to that . plz give me codes of ... View Questions/Answers

How to execute mysql query based on checkboxes values in java swing application.  July 11, 2012 at 2:33 PM
Hello Sir, I have a java swing application and i have to execute query based on selection of checkboxes.Means I have to to execute query acording to the checkbox. whichever checkbox is selected query should be executed likewise and according to that . plz give me codes of ... View Questions/Answers

How to execute mysql query based on checkboxes values in java swing application.  July 11, 2012 at 2:33 PM
Hello Sir, I have a java swing application and i have to execute query based on selection of checkboxes.Means I have to to execute query acording to the checkbox. whichever checkbox is selected query should be executed likewise and according to that . plz give me codes of ... View Questions/Answers

Ajax+servlet+js  July 11, 2012 at 1:24 PM
1) new.jsp <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head>... View Questions/Answers

jsp request in struts1  July 11, 2012 at 12:04 PM
how the request for a JSp is processed in Struts1?Any JsP page in the end a servlet only.where is the URL pattern for this servlet then? ... View Questions/Answers

difference between init() & init(ServletConfig config)?  July 11, 2012 at 11:53 AM
I want to know the difference between init() and init(ServletConfig config) methods in GenericServlet. ... View Questions/Answers

Logic error? HELP PLEASE! :(  July 11, 2012 at 11:12 AM
Hello Guys! i have a huge problem. What I want to do is there is a retrieve jsp page. In the retrieve jsp page there is a text box which user to key in their email and one more dropdownlist which get the date from mysql using the matched email. First let the user key in the email. then use the em... View Questions/Answers

How to read the body content of custom tag?  July 11, 2012 at 6:28 AM
I'm unable to read the body content specified between start tag and end tag of a JSP custom tag. In the sense I can only just echo the body content using getJspBody.invoke(null); method. I want to read the body content of any custom tag and manipulate and display it back. Can any ... View Questions/Answers

Java code for following  July 11, 2012 at 12:07 AM
Create a function that returns day difference between two dates (inclusive), without using any function provided by the platform or external library. The function must work for all dates in the range of 1 st January, 1901 through 31st December 2999, inclusive. For example, there are 5 days in t... View Questions/Answers

is having any method same behavior of Single thread model in java?  July 10, 2012 at 7:48 PM
is having any method same behavior of Single thread model in java? ... View Questions/Answers

is having any method same behavior of Single thread model in java?  July 10, 2012 at 7:48 PM
is having any method same behavior of Single thread model in java? ... View Questions/Answers

is having any method same behavior of Single thread model in java?  July 10, 2012 at 7:48 PM
is having any method same behavior of Single thread model in java? ... View Questions/Answers

is having any method same behavior of Single thread model in java?  July 10, 2012 at 7:48 PM
is having any method same behavior of Single thread model in java? ... View Questions/Answers

Code  July 10, 2012 at 7:29 PM
how to print this?? with the use of only JSP....... 1 23 456 78910 ... View Questions/Answers

DMCA.com