Home Answers Questions Question and Answers


 
 

Latest Programming Questions askedAsk your question?

Loops  November 20, 2011 at 11:58 PM
by using drjava q1.Write code that uses nested loops to print the following patterns: Pattern1: 1 1 2 1 2 3 1 2 3 4 1 2 3 4 5 1 2 3 4 5 6 Pattern 2: 1 2 3 4 5 6 1 2 3 4 5 1 2 3 4 1 2 3 1 2 1 q2.Write code that ask user to insert an integ... View Questions/Answers

SQL in dot net  November 20, 2011 at 10:53 PM
write a code in dot net which connects to a database, retrieves the data and allows to input a valid phone number. ... View Questions/Answers

sorting  November 19, 2011 at 7:58 PM
how to do sorting without using bubble sort,selection sort ... View Questions/Answers

Advertisement

Java/PHP Developer  November 19, 2011 at 12:35 PM
Hi, can u please help me with this, I have a text file with 3 sentences separated by delimiters and i want to get each sentence in different JFrames when press ok button on first frame it should close and second frame should open likewise. ... View Questions/Answers

Guys Help me with this Application(when you put the name of the website it will return the IP of the web)  November 19, 2011 at 12:17 PM
import java.awt.*; import java.awt.event.*; import java.net.*; import java.io.*; public class MyApp extends Frame implements ActionListener { TextField url; Button ok; MyApp(){ La... View Questions/Answers

Guys Help me with this Application(when you put the name of the website it will return the IP of the web)  November 19, 2011 at 12:17 PM
import java.awt.*; import java.awt.event.*; import java.net.*; import java.io.*; public class MyApp extends Frame implements ActionListener { TextField url; Button ok; MyApp(){ La... View Questions/Answers

Java/PHP Developer  November 19, 2011 at 11:57 AM
how can we get words seperated by delimeters in text file can be imported in jframe like one word for one line. ... View Questions/Answers

I am not able to display the selected value of my combobox  November 19, 2011 at 11:31 AM
<?php echo "<select name=\"hello\">\n"; echo "<option value=\"NULL\">Select Value</option>\n"; $strQuery = "select unitcode,unitname from units order by unitcode"; $rsrcResult = mysql_query($strQuery); $i=1; $select='<select s... View Questions/Answers

Sequence number to generate daily starting with 1  November 19, 2011 at 11:15 AM
Sir, I am creating a bill report Application..I want to generate a sequence number for bill that is starting from 1.and if date changes the sequence number again starts with 1. help me sir, prudvui raju ... View Questions/Answers

array  November 19, 2011 at 10:57 AM
how to delete an element from 1-d arrray ... View Questions/Answers

forums creation using spring with hibernate?  November 19, 2011 at 10:11 AM
how to write mandatory fields with validations in forms using spring with hibernate? give me detailed example? ... View Questions/Answers

file class  November 19, 2011 at 7:05 AM
Hi Friend, I have a file class it lets me extract all the data from a csv file but I need to align the data properely, seperating into the proper rows and columns, as I said my code only allows me to extract all data but I need to use it. My Code: import java.util.Scanner; import ... View Questions/Answers

Java Date Class  November 19, 2011 at 6:58 AM
Hi Friend, I need to have a code to get the days between specific dates. Such if I enter 19 September 2011 to 21 September 2011, the days would be saturday, sunday and monday, the code I gave simply get one day, but i need to able to enter few dates and the output should be the the days, please l... View Questions/Answers

Cascade Issue  November 19, 2011 at 3:28 AM
I have 3 tables: user, stuffperuser (pk: FKuser & FKstuff), stuff. When I don't use cascading, I get an error: "Cannot add or update a child row: a foreign key constraint fails" The mapping files are correct. I need some sort of cascading. It works when I add cascading in the... View Questions/Answers

test case  November 19, 2011 at 12:57 AM
Hi Can you explain me how to write test case in java. regards kennedy ... View Questions/Answers

Retrieve a list of words from a website and show a word count plus a specified number of most frequently occurring words  November 19, 2011 at 12:55 AM
I have to: 1.Retrieve the document text from the web (provided by utility class) 2.Filter the desired "words" form the document, and one by one, store each word as a key into a Map<String,Integer> object where the value is the number of occurrences of the word 3. Read the (word, num_occurrence... View Questions/Answers

connection pooling with jbos4.0  November 19, 2011 at 12:55 AM
How to create connection pooling in jboss 4.0? please explain me step by steps from beginning. ... View Questions/Answers

report making in asp  November 18, 2011 at 5:22 PM
Hi sir, Please give some example report making code for jsp and mysql. ... View Questions/Answers

retrieve related data from database using jsp and mysql  November 18, 2011 at 5:20 PM
Hi sir, please give some example of jsp code for retrieving mysql database values in multiple dropdown list. if we change a value in a dropdown its related value must be shown in the adjacent text field. Regards banajit ... View Questions/Answers

schema extraction from mysql  November 18, 2011 at 4:34 PM
hi i am completely new to MySql. i need export the data base schema to a text file so that i can use it further. i want to type commands for these mysql> mysqldump ............. this command is not working. there is no username. 1)how do i findout username(its not assigned) and password?... View Questions/Answers

HTML table layout  November 18, 2011 at 3:17 PM
i have table layout in that i have menu in td(column) ,when i click menu item ,the page will be open in that table right side td(column) ,plz give me code and give me useful layout examples,because my requirement is layout using table, ... View Questions/Answers

Java/PHP Developer  November 18, 2011 at 2:59 PM
Hi, I have a textfile(notepad1.txt) with 1 question and another textfile(notepad2.txt) with answers(4 options like multiple choice),question is imported from first text file to jframe and 4 options with check boxs to the same frame panel, when i select the option and press ok button that answer s... View Questions/Answers

ATG  November 18, 2011 at 2:54 PM
IS art technology group is using in ur project development? ... View Questions/Answers

context menu overlapped in IE8  November 18, 2011 at 2:30 PM
I developed a contex menu in XHTML while opening it is overlapped in border of IE8 browser. even i have tried change the zaxis in css. I am using like below ... View Questions/Answers

Problem With Combo Box Editable Property  November 18, 2011 at 12:22 PM
Hi I am new To Flex i had set Combo Box Editable Property as true. But I didn't get the property filtering in the combo box like when you enter text "S" in the combo box then the names Started with "S" will Automatically Display as Combo Box Items. So will you please give me some idea about thi... View Questions/Answers

open pdf file in same jsp page and the pdf file should retrieved from database  November 18, 2011 at 12:15 PM
Hai all, I need code to open a pdf file in same jsp page(browser) while click on hyperlink And the file was located in database table. Can any one help me Regards, Divya ... View Questions/Answers

Java swing  November 18, 2011 at 11:03 AM
Design an appliaction for with details such as name,age,DOB,address,qualification and finaly when we click the view details button all types details should be displayed in another View in TextView's..I need the sample code.. ... View Questions/Answers

Java/PHP Developer  November 18, 2011 at 10:44 AM
Hi, can u help me with, question from a text file and answers from another text file with check box..... like a text file containing questions and another text file containing answer of 3 r 4 options,each one with checkboxes and an ok button, when 'ok' pressed should store the checked val... View Questions/Answers

Java if else condition  November 18, 2011 at 10:28 AM
its there any similar condition for (X<=5 || y<=10) please post the answer as soon as possible.... TQ ... View Questions/Answers

how to call servlet from html page at anchor tag ?  November 18, 2011 at 10:27 AM
I have a very different problem as i am using netbeans ide 6.9 ml to make a website in java and my website is running on it but after uploading it on server it is not working properly. I split and merge template. In the header part of my page i use buttons image and for referrence i use... View Questions/Answers

JSP textbox autopopulation on basis of SQL table values  November 18, 2011 at 10:07 AM
Hi, I need to achieve the following on J2EE platform Could you please help? The following table is created in MySQL DB: Problem type Status Responsible LEGAL CONTROL NEW ABC LEGAL Dept PENDING PQR There are 2 list box on JSP , one is to select... View Questions/Answers

Jkmegamenu drop downs moving left when window is resized in Chrome  November 18, 2011 at 7:43 AM
I'm using the JKmegamenu plugin to implement a megamenu on a website I'm working on. It works and looks nice, however when the web browser(Chrome) window is resized the drop down divs move left. I got the JavaScript code from this link. You can check in Chrome: Please try to h... View Questions/Answers

<identifier> expected error  November 18, 2011 at 7:17 AM
expected error print(" import java.util.*; public class Person{ Queue<Person> busQ = new LinkedList<Person>(); busQ.addLast(homer); busQ.addLast(marge); busQ.addLast(maggie); busQ.addLast(lisa); busQ.addLast(bart... View Questions/Answers

how to find the nth prime number in java  November 17, 2011 at 10:25 PM
strong texthow to find the nth prime number in java ... View Questions/Answers

Unable to use JMXMP with Knopflerfish?  November 17, 2011 at 8:38 PM
I have a bundle which runs properly with Eclipse, then I generate the jar file and try to use it with Knopflerfish, then I get the following exception java.net.MalformedURLException: Unsupported protocol: jmxmp at javax.management.remote.JMXConnectorServerFactor... View Questions/Answers

Java/PHP Developer  November 17, 2011 at 6:46 PM
Hi, can u help me with, question from a text file and answers from another text file with check box..... like a text file containing questions and another text file containing answer of 3 r 4 options,each one with checkboxes and an ok button, when 'ok' pressed should store the checked val... View Questions/Answers

Convert the excel sheet data into oracle table through java or jsp  November 17, 2011 at 6:26 PM
Hi Friends, Let me help this issue i am phasing Convert the excel sheet data into oracle table through java or jsp. ... View Questions/Answers

view data from jTextArea to jtable  November 17, 2011 at 6:11 PM
good night Please help senior java all, I want to make a brief program of reading data in the text area and then on the show to the j table. I created a new scrip like below but it does not enter into the j table. but his condition only in the println in netbeans. String str; ... View Questions/Answers

EJB3.0,web-service,websphere using eclipse  November 17, 2011 at 6:10 PM
I have to make an ejb3.0 application a web-service using websphere6.1 and eclipse.Can I do it configuring websphere server with eclipse,and develope the application in eclipse itself,then deploy on the server,then convert it into web-service?Any Idea/help will be of great use.I am running out of ... View Questions/Answers

Shopping_Beauty  November 17, 2011 at 5:06 PM
**Deleted by Admin** - BH Cosmetics, BHCosmetics is the best place on the web for 120 eyeshadow palette, 88 eyeshadow palette, eye shadow cosmetics and professional make up palettes. ... View Questions/Answers

Java/PHP Developer  November 17, 2011 at 4:39 PM
Hi, can u help me with, question from a text file and answers from another text file with check box..... ... View Questions/Answers

i have one textfield and 2 buttons named as find and clear.when i entered some text in text filed it should return some rows.when i clicked on clear button the returned rows should not be displayed  November 17, 2011 at 4:11 PM
i have one textfield and 2 buttons named as find and clear.when i entered some text in text filed it should return some rows.when i clicked on clear button the returned rows should not be displayed .i need code for this thanks in advance ... View Questions/Answers

Driver  November 17, 2011 at 3:54 PM
can u send type4 jdbc driver class name and url for microsoft sql server 2008....? ... View Questions/Answers

ERP  November 17, 2011 at 3:29 PM
what is ERP of project? ... View Questions/Answers

autocomplete  November 17, 2011 at 3:18 PM
I used autocomplete from roseindida.net.. i am getting the autocomplete is coming the retrieved values of database in the list..but when i select the value it is not displaying on the field.. and again i need to write that. please tell me what modification i need to do.to display the value on th... View Questions/Answers

binary tree  November 17, 2011 at 2:46 PM
how to count no. of nodes in a binary tree for mlm if it complet tree or incomplet tree in php using mysql db? ... View Questions/Answers

browser back button  November 17, 2011 at 1:09 PM
hi...i created one page in JSF.that page had three form division.in first form one add button is there.if i click that button move to second form,then i click browser back button ,it moves on another page.so how can i control.please any one know the ans plz let me know. ... View Questions/Answers

Getting the last inserted id using jsp  November 17, 2011 at 12:47 PM
Pls how can i retrieve the last inserted id after submitting a form to mysql using jsp ... View Questions/Answers

Java/PHP Developer  November 17, 2011 at 12:23 PM
please help me to bring cell values of jtable to a text file.................... ... View Questions/Answers

format  November 17, 2011 at 10:33 AM
Abcdcba Abc cba Ab ba A a Ab ba Abc cba Abcdcba ... View Questions/Answers

print a form of *  November 17, 2011 at 10:30 AM
* *** ***** ******* ********* ******* ***** *** * ... View Questions/Answers

jsp.....  November 17, 2011 at 9:26 AM
1..login screen->user-id and password will be entered and save has to be validated against database corresponding table.on successful validation,detail like client ip and type of browser has to captured and then stored in the database.After successful login main page/secondary page will appear.Se... View Questions/Answers

Interactive map  November 16, 2011 at 6:12 PM
hi........ i require map to be zoom in and enlarge the area and show its detail. Can anyone tel me how can this be done using java swings .... plz help........................... ... View Questions/Answers

image display  November 16, 2011 at 5:19 PM
Hai Friends..... Actually I uploaded filepath into database and image into a folder. Now i want to show that image as my profile photo. How it is?...Friends Can you help me? Thanks in advance to take time for spending me ... View Questions/Answers

image display  November 16, 2011 at 5:19 PM
Hai Friends..... Actually I uploaded filepath into database and image into a folder. Now i want to show that image as my profile photo. How it is?...Friends Can you help me? Thanks in advance to take time for spending me ... View Questions/Answers

How i write a function/method in jsp?  November 16, 2011 at 4:49 PM
How write the function/method in jsp? Using that method i can retrieve the value coming from database. give me example plz. Actually i want to show the list of user detail. And the details come from different table and id is store in use... View Questions/Answers

i have one txt field and one button.when i entere any test in testfield then only button should be enabled. .when i cleared the test,at that time butoon should be disabled. i need code for this  November 16, 2011 at 4:24 PM
i have one txt field and one button.when i entere any test in testfield then only button should be enabled. .when i cleared the test,at that time butoon should be disabled. i need code for this thanks in advance ... View Questions/Answers

i have one txt field and one button.when i entere any test in testfield then only button should be enabled. i need for this  November 16, 2011 at 4:22 PM
i have one txt field and one button.when i entere any test in testfield then only button should be enabled. i need for this i need for this ... View Questions/Answers

Java  November 16, 2011 at 3:22 PM
HI, I need a button with action to import data from jtable to text(notepad) file.. ... View Questions/Answers

jsp pages  November 16, 2011 at 1:25 PM
I am using 3 jsp pages in an application.. 1.login.jsp 2.checkuser.jsp:is connected to databse..from this page im giving path to search.jsp 3.search.jsp:Here we need fetch data from data base..do u want to connect to database from this page,again or checkuser.jsp database connection available to ... View Questions/Answers

dropdown list in jsp  November 16, 2011 at 1:08 PM
hai, i have static dropdown list.. i want to get the selected value in string variable without jsp regards asha ... View Questions/Answers

Java/PHP Developer  November 16, 2011 at 12:44 PM
help me with passing data from jframe to text file please. ... View Questions/Answers

Java Beginner  November 16, 2011 at 11:53 AM
can we declare a class inside an interface? where this type of declaration required? give one example ... View Questions/Answers

Java  November 16, 2011 at 10:27 AM
This program uses a class named DrivingLicense to keep track of two driving licenses, including the driver?s name, and the number of speeding tickets they have received. You may not modify the DLTest code, but should write the DrivingLicense class, and test it using the DLTest.java program to e... View Questions/Answers

Swing  November 16, 2011 at 10:07 AM
Hi, I need a program to read text from a text file to Jframe directly without browsing. Thank u ... View Questions/Answers

Java  November 16, 2011 at 9:44 AM
This program uses a class named DrivingLicense to keep track of two driving licenses, including the driver?s name, and the number of speeding tickets they have received. You may not modify the DLTest code, but should write the DrivingLicense class, and test it using the DLTest.java program to en... View Questions/Answers

Java  November 16, 2011 at 9:43 AM
Create a Java class that can be used to store inventory information about a book. Your class should store the book title, the author?s name, the price, and the number of books in stock. The class you create should include a printDetails() method (function) which displays a report that shows all ... View Questions/Answers

SEARCH  November 16, 2011 at 8:58 AM
how can we do search in jsp...? option for search criteria like name and DOB... ... View Questions/Answers

SEARCH PAGE  November 16, 2011 at 8:53 AM
search page:option for search criteria like name and DOB will be asked.on entering the detail,data matching search criteria will be displayed..criteria can be both or any one of them.. can you send code for this using jsp...? ... View Questions/Answers

i have one txt field and one button.when i entere any test in testfield then only button should be enabled.  November 15, 2011 at 10:11 PM
i have one txt field and one button.when i entere any test in testfield then only button should be enabled. i need for this thanks in advance ... View Questions/Answers

i have one textfield and one button.when i entered text in textfield then only button should be in enabled status or else in disable status. i need code for this.  November 15, 2011 at 6:24 PM
i have one textfield and one button.when i entered text in textfield then only button should be in enabled status or else in disable status. i need code for this. thankas in advance ... View Questions/Answers

JSP2  November 15, 2011 at 5:22 PM
when jspDestroy() method is executed while conecting jsp to database...? ... View Questions/Answers

JSP1  November 15, 2011 at 5:19 PM
Explain the design flow of jsp when we used with database to retrive the data...? ... View Questions/Answers

JSP  November 15, 2011 at 5:16 PM
why we use preparedstatement while saving data from jsp to data base table.. ... View Questions/Answers

How can store image in server folder when deployed with a .war file?  November 15, 2011 at 3:52 PM
Hi all; When I am using application.getRealPath() , it return null when deployed with a .war file and when I use hard code it shows syntax error or path is invalid . But both these command working fine in localhost . So; please hel... View Questions/Answers

report problem  November 15, 2011 at 3:51 PM
I have made a project that displays charts using jfreechart library from the student marks stored in a database. what all can i write in its report.Please if you can provide me hint or some link regarding such project report,then do soon,..Its urgent. ... View Questions/Answers

DAO,DTO,VO Design patterns  November 15, 2011 at 12:19 PM
explain dao,dto,vo design patterns in strut 1.3? ... View Questions/Answers

error in servlet  November 15, 2011 at 11:57 AM
while excuting the servlet program, it produce the error as "HTTP 404 not found". i couldnt rectify that error. can you help me to do so? Serv1.java import java.io.*; import javax.servlet.*; import javax.servlet.http.*; public class Serv1 extends Htt... View Questions/Answers

Remove duplicate values  November 15, 2011 at 11:53 AM
i am trying to insert values into database from excel spreadsheet .am doing it using JDBC.connected both excel and sql database. i have these columns dc:Title,dc:dcid,dc:subject,dc:description,dc:publisher,dc:language in SQL database. in which dc:title will not allow null and dc:dcid is primary ... View Questions/Answers

write a javascript progam to implement functions in html  November 15, 2011 at 7:57 AM
write a javascript progam to implement functions in html... View Questions/Answers

creating windo chat  November 15, 2011 at 1:56 AM
hi ... please could you help me in creating chat aprograme in java ???? with comments beside codes please.. ... View Questions/Answers

ORDAudio object in servlet  November 15, 2011 at 1:36 AM
Hi, I want to know how to retrieve the ORDAudio object in my servlet and play it in browser when Play button is clicked. I am able to store audio object in to database thru my servlet...but my code written to retrive the same record and to play it, is not working. Here is my code:... View Questions/Answers

HTML audio tag  November 15, 2011 at 1:32 AM
Hi, I have written a simple html page to play audio file, I m using audio tag as shown below: Your browser does not support the audio tag. when I open the page using Chrome, it work... View Questions/Answers

How to Split a large XML file using java?  November 15, 2011 at 12:31 AM
How can we split a 500MB Xml file?I know how to split xml file after reading the entire document in a file.Here we cannot load the entire file as it is a large file. ... View Questions/Answers

create a jsp program  November 14, 2011 at 9:34 PM
please help , create web Application using jsp and jdbc which tacking your name,id and DOB .On clicking to submit Button it stores the information into the database and Displays alll the records in the same page without refreshing.. ... View Questions/Answers

how to scrape the data from one website another website using html dom parsing in php  November 14, 2011 at 9:10 PM
" how to scrape the data from one website another website using html dom parsing in php" i'm trying this one .please provide code for me .not for any illegal activity. it is asked in interview he gave time 2 days . please provide code. ... View Questions/Answers

when i hit enter it represent action like click a button  November 14, 2011 at 5:26 PM
Hi, Plz provide a program in html like I want 2 submit buttons,when i hit the enter button it will represent the action like click the 1st submit button.plzzzzzzzzzzzzzzzzz ... View Questions/Answers

Why request.getParameter(  November 14, 2011 at 5:02 PM
Hi all, I want to to do upload file in my folder and that time i want to store date in my MySQL Database. Here uploading file is working but data not store in database because my form field value gives null value. Actually problem is i assign form field parameter value to... View Questions/Answers

private and protected  November 14, 2011 at 3:55 PM
what is diffrence between private and protected ? ... View Questions/Answers

show selected date range in calender  November 14, 2011 at 2:53 PM
helo, i'm working in a project in jsp. suppose thier are 2 textbox 1.start date 2. end date whatever date selected in these textbox get highlighted in the calendar, please help. ... View Questions/Answers

Please Provide jquery inline form validation  November 14, 2011 at 2:27 PM
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <title>Lab Account</title> </hea... View Questions/Answers

Please provide jquery inline form validation for the code  November 14, 2011 at 2:24 PM
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <title>Student Form</title> <script type="text/javascript" src="Datetimepicker.js"></script> <body bgcolor="white"> <form... View Questions/Answers

Sort the element find mean  November 14, 2011 at 2:00 PM
Hi Friend, I want to find meaning of some real numbers like, if we have numbers- 52.15, 89.0, 314.48, 845.75, 309.11, 575.36, 398.98, 318.64, 2485.12, 377.44 Then I want to find the mean of 314.48,309.11,398.98,318.64,377.4... View Questions/Answers

convert to GUI  November 14, 2011 at 1:13 PM
import java.util.Scanner; public class Exam { public static void main (String args[]) { int numberStudent, mark, markAplus = 0, markA = 0, markBplus = 0, markB = 0, markBminus = 0, i; int markCplus = 0, markC = 0, markCminus = 0, markDplus = 0, markD = 0, markE = 0; Scann... View Questions/Answers

basic question  November 14, 2011 at 1:05 PM
how we create a new table with the same structure and data of another table ... View Questions/Answers

JavaSwing  November 14, 2011 at 11:30 AM
I create 4 text box and 3 buttons.button1 is using increment option and button2 using decrement option button3 using reset option.when i click the button1 the value will be increase and the result is shown into the textbox same as button2 and button3. ... View Questions/Answers

applet tag requires code attribute.  November 13, 2011 at 10:35 PM
import java.applet.*; import java.awt.*; import java.awt.image.*; /*<applet code=Lavatron.class width=590 height=130> <param name="img" value="swsm.jpg"> <applet/> */ ... View Questions/Answers

Sum of positive and negative numbers  November 13, 2011 at 4:45 PM
Hi if someone could help that would be great Write a program to read in 10 integer values and output the sum of all the positive integers and the sum of all the negative integers. ... View Questions/Answers

without writing web.xml file we can write servlet program  November 13, 2011 at 9:27 AM
Sir Morning... Sir I have one Question "without writing web.xml file we can write servlet program". if yes which way? if no why? but without use Annotation........ Plz gine me the Answer................Sir. ... View Questions/Answers

DMCA.com