Home Answers Questions Question and Answers


 
 

Latest Programming Questions askedAsk your question?

Upload image  April 21, 2012 at 11:43 AM
Hai team, I beginner of Java me now i crated code for to capture image and upload to server. Here i taken a snap but when am going to upload to server it shows decoding failed...How can i clear that bug.please help me.... View Questions/Answers

embedding cell phone camera inweb page  April 21, 2012 at 11:29 AM
actaully I am working on visitor management project based on jsp ..in home page I want to embed my nokia N73 camera to capture image of visitor, so how do i do this? I tried object tag of HTML but no to avail...please help at early basis. ... View Questions/Answers

Ajax problem  April 20, 2012 at 10:36 PM
Dear sir/mam i want to ask that i am using radio button for the yes or no but i want when i use yes then inside the yes button add on one extra textbox if press no the do not required text button ... View Questions/Answers

Advertisement

java  April 20, 2012 at 6:08 PM
what is procedure to run client and server in java(awt) ... View Questions/Answers

Xml parsing  April 20, 2012 at 6:02 PM
Hi..i tried the above code but I unable to know where can i place the xml file..? ... View Questions/Answers

JPA Query with where clause and group by function  April 20, 2012 at 2:53 PM
Any thing wrong in my JPA Query. TypedQuery<RaBdrRating> uQuery = (TypedQuery<RaBdrRating>) entityManager.createQuery("SELECT activePackage,SUM(duration),SUM(charge),COUNT(activePackage) FROM User WHERE callType = :callType and startDate BETWEE... View Questions/Answers

Struts iteraor  April 20, 2012 at 2:34 PM
Hi, I am making a program in Struts 1.3.8 in which i have to access data from mysql. I am able to access data but data is not coming in tabular form. These are my action class and jsp page with iterator. SearchDataAction.java ... View Questions/Answers

questions from an xml file  April 20, 2012 at 2:32 PM
i am developing online bit by bit exam for that i retrieved questions from an xml file but when i retrieved using jsp i am getting all questions at a time in a single page.but i want to show one question in one page for the next question user need to click on next buttun and also there is a timer... View Questions/Answers

java  April 20, 2012 at 1:56 PM
How to write coding in java for prime numbers?? Thanking you in advance... ... View Questions/Answers

How set the height of Thumb in Vertical scrollbar..?  April 20, 2012 at 12:46 PM
I have created a Vertical scrollbar. I have removed up arrow and down arrow. also i have changed the skin of thumb by including an image to it. I want the size of thumb same as image size. How can i do that..? PDR. ... View Questions/Answers

retrive article from sql databse and show using php  April 20, 2012 at 8:53 AM
hello sir i have sql database which i store articles.i want to show these article on web page using php. my field are image,title,summary,content id. plz provide me code only for show these content ... View Questions/Answers

SQL database parameters should save at where?  April 20, 2012 at 8:43 AM
Hi, Currently the information regarding the SQL databases are hard coded into the script, Assuming the script will be running for very long time, I like to move the SQL database parameters to the file and read using JAVA I/O and allow user to edit the file, if there is a database ... View Questions/Answers

second selectbox of dynamic  April 20, 2012 at 7:05 AM
hello friends i hava a code like this and could any body help me with editing code and send me code. i am getting city values but i can't location values of city from database.thanks in advance. <html> <head> <title>demo</title> ... View Questions/Answers

dynamic select box  April 20, 2012 at 6:53 AM
thank u my dear friend.but i have a code like this will u plz edit and send to me in correct manner. i am waiting for it .if city selected then based on city locations have to come from database.if u send as much as possible it will helpful to me my dear friend thanks forever. ... View Questions/Answers

GUI problem  April 20, 2012 at 2:40 AM
Create a class called CDProgram and write a GUI program to compute the amount of a certificate of deposit on maturity. The sample data follows: Amount deposited: 80000.00 Years: 15 Interest Rate: 7.75 Hint: computer 80000.00 (1 + 7.75 / 100)^15 ... View Questions/Answers

Merge Sort String Array in Java  April 20, 2012 at 1:06 AM
Hello, I am trying to implement a merge sort algorithm that sorts an array of Strings. I have seen numerous examples of merge-sorting integers but i can not understand how to this with String. Note: I have a separate class for merge sort in which i pass my list and the size of the list. i then c... View Questions/Answers

Imp-HTML Table Sorting  April 20, 2012 at 12:04 AM
Hi, I am working on a project and as per requirement from client i have to sort a table based on the ID Column. I want the table to be sorted as per ID Column once it's loaded. I found many programs of HTML table sorting where sorting happenes whenever user clicks on column header... View Questions/Answers

Date not getting in proper format  April 19, 2012 at 10:53 PM
import java.util.*; class Date { public static void main(String[]args) { Date d = new Date(100000000000L); System.out.print("1st date"+d.toString()); } } out put:- 1st date@3e25... View Questions/Answers

Inner class  April 19, 2012 at 8:02 PM
how can i call outer class A `s method to print Outer. class A { void m() { System.out.println("outer"); } } public class TestInners { public static void main(String[] args) { new TestInners().go(); } void go() {... View Questions/Answers

Reading and querying an Excel file in JavaScript  April 19, 2012 at 7:11 PM
Hi, I'm trying to read in an excel file, search a column for containing key words (entered by a user) and then displaying the matching rows in a table. I'm fairly new to JavaScript. Can anyone help ? Thanks. ... View Questions/Answers

Uploading Excel sheet record in JSP to insert data in MySql  April 19, 2012 at 6:03 PM
Need Help how to upload Excel (.xls) file and insert data in Mysql using JSP it wil be wonder for me if any help me ... View Questions/Answers

Upload CSV File into Columns of sql table using servlets and jsp  April 19, 2012 at 5:46 PM
Hello sir, plz give me the code to upload csv file data into respective columns of table . ... View Questions/Answers

WANNA IMPORT RAINBOW TABLE IN MYSQL DATABASE  April 19, 2012 at 5:24 PM
hello, i have a website and i have rainbow table uploaded on my server. this is multipart rainbow table in .rti2 extention. i want a php code that can join all the parts of rainbow table in one and then i want to import the values of rainbow table in mysql database, pleae help that how ca... View Questions/Answers

type 4 jdbc driver  April 19, 2012 at 4:52 PM
i read in this site that type 4 jdbc driver is the fastest one so used it to connect with the database.......but not tried another drivers,....can u specifically answer me why type 4 is the fastest one ???? ... View Questions/Answers

JSP code  April 19, 2012 at 4:49 PM
I get an error when i execute the following code : <%@ 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/... View Questions/Answers

How to store two integer value in a separate file and retrieve those values  April 19, 2012 at 4:03 PM
I need to save two values so i can use those values later i came up with idea of saving those values in a separate file and updating values in file. But Don't have any idea how can i do that. Like what format of file i need, or how can i write and update value in that file ... View Questions/Answers

Sorting  April 19, 2012 at 3:03 PM
can any help me know which sorting algorithm java uses for sorting collection and arrays? ... View Questions/Answers

inserting multiple file formats into database using html  April 19, 2012 at 2:29 PM
hi the code was working fine,i want to choose the file and then upload to database,by using html.whether it is possible to upload larger file size,please explain the code with comment line. ... View Questions/Answers

I want only one method goes to sleep but both method goes to sleep together  April 19, 2012 at 1:09 PM
I built a TicTacToe game for android. And i want that there should be some time gap or time difference between User's turn and Computer's turn. Mean i want like a sleep() or any other method should be invoked between User's turn and Computer's turn. But when i call Sleep() before cpuPlay() method... View Questions/Answers

I want only one method goes to sleep but both method goes to sleep together  April 19, 2012 at 1:09 PM
I built a TicTacToe game for android. And i want that there should be some time gap or time difference between User's turn and Computer's turn. Mean i want like a sleep() or any other method should be invoked between User's turn and Computer's turn. But when i call Sleep() before cpuPlay() method... View Questions/Answers

integrate hibernate and struts2.0 in eclips ide  April 19, 2012 at 12:59 PM
I want to know how to integrate hibernate with struts2.0 in eclips ide ... View Questions/Answers

dynamic select box  April 19, 2012 at 12:48 PM
hello friends i created a form and details of city & locations have to be come from database. if city hyderabad chosen then locations of hyderabad only appear in location selectbox.plz send code it is more helpful tome. ... View Questions/Answers

how to do this?  April 19, 2012 at 11:58 AM
Given any integer 2D array, design then implement a Java program that will add to each element in the array the corresponding column number and the corresponding row number. Then, it prints the array before and after modification. For example, if the program fed with following 2D array... View Questions/Answers

inserting multiple file formats into database  April 19, 2012 at 11:56 AM
hi i want to insert multiple file format like .pdf.doc.zip into mysql database using jsp. ... View Questions/Answers

How to rectify "Bad version number in .class file" exception in Eclipse  April 19, 2012 at 10:50 AM
HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception javax.servlet.ServletException: Bad version number in .class file org.apache.... View Questions/Answers

serialization concept  April 19, 2012 at 10:47 AM
what is the exact purpose of serialization in detail ... View Questions/Answers

Pagination  April 19, 2012 at 10:11 AM
I want to know how to use pagination in jsp. I have a list object from that i want to display 3 questions per page can u help me ... View Questions/Answers

tags in struts2  April 19, 2012 at 9:00 AM
Hello I am using simple tags in struts2. Like this <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> <%@ taglib prefix="s" uri="/struts-tags" %> <!DOCTYPE html PUBLIC "-//W... View Questions/Answers

Needed jsp codes  April 19, 2012 at 12:52 AM
jsp code for employee payroll.producing a payslip of every employees monthly calculating the gross pay of a particular employee considering the income tax and producing a report which can be printed out.... ... View Questions/Answers

how to print all possible combination that sum to zero??  April 18, 2012 at 7:20 PM
? Consider the sequence of digits from 1 through N (N<=9) in increasing order: 1 2 3 4 â?¦ N ? Insert either a â??+' (for addition) or a â??-â?? (for subtraction) between each of the digits so that the resultant sum is zero. Print all possible combinations that ... View Questions/Answers

how to get mail exchange records using java dns protocol  April 18, 2012 at 6:02 PM
Hi, how to get DNS mail exchage records(MX) using struts2 framework(server:glassfishv3) Thanks, B.Sucharitha. ... View Questions/Answers

getting the excel path throuh web browser given from client(i.e thruogh .jsp)  April 18, 2012 at 5:33 PM
1)when client uploads the excel sheet through a .jsp page, 2)get that excel path from web browser and read the data from the excel and printing in a jsp page i.e response to client through jsp please provide the code in spring thanks in advance ... View Questions/Answers

Java sorting  April 18, 2012 at 5:15 PM
can somebody help me know how java sorts? means which algorithm it uses internally n all? thank you in advance ... View Questions/Answers

java  April 18, 2012 at 12:27 PM
how to convert jspcode into servlet code which method is used. ... View Questions/Answers

excel uploading in jsp  April 18, 2012 at 12:24 PM
could you provide the source code for: 1)have to upload an empty excel sheet at client side i.e if client clicks an excel icon an empty excel sheet should open 2)when they fill data in that sheet and click on save button, 3)at server side,retrieving the values what the client has given and printi... View Questions/Answers

Capture a Screenshot image in database  April 18, 2012 at 12:21 PM
Hi All, Im using the Capture a Screenshot in java program and connect to the database and store the Capture a Screenshot image in database. but Iwant every 10 min randomly taken Capture a Screenshot in Java program and connect to database store the Capture a Screenshot image. ... View Questions/Answers

Concatenate 2D arrays  April 18, 2012 at 11:59 AM
JFileChooser jf = new JFileChooser(); jf.setMultiSelectionEnabled(true); int returnVal = jf.showOpenDialog(frame); File[] file = jf.getSelectedFiles(); for(int i=0;i<file.length;i++) { System.out.println("Iteration number "+i); Wor... View Questions/Answers

Argument Passing  April 18, 2012 at 9:46 AM
hi this is my code class Test { void meth(int i, int j) { i *= 2; j /= 2; System.out.println("a=" +i); System.out.println("b=" +j); } } public class CallByValue1 { public static void main(String args[]) { ... View Questions/Answers

Passing Argument in Java  April 18, 2012 at 9:46 AM
hi this is my code class Test { void meth(int i, int j) { i *= 2; j /= 2; System.out.println("a=" +i); System.out.println("b=" +j); } } public class CallByValue1 { public static void main(String args[]... View Questions/Answers

Argument Passing  April 18, 2012 at 9:46 AM
hi this is my code class Test { void meth(int i, int j) { i *= 2; j /= 2; System.out.println("a=" +i); System.out.println("b=" +j); } } public class CallByValue1 { public static void main(String args[]) { ... View Questions/Answers

Argument Passing  April 18, 2012 at 9:46 AM
hi this is my code class Test { void meth(int i, int j) { i *= 2; j /= 2; System.out.println("a=" +i); System.out.println("b=" +j); } } public class CallByValue1 { public static void main(String args[]) { ... View Questions/Answers

Argument Passing  April 18, 2012 at 9:46 AM
hi this is my code class Test { void meth(int i, int j) { i *= 2; j /= 2; System.out.println("a=" +i); System.out.println("b=" +j); } } public class CallByValue1 { public static void main(String args[]) { ... View Questions/Answers

Argument Passing  April 18, 2012 at 9:46 AM
hi this is my code class Test { void meth(int i, int j) { i *= 2; j /= 2; System.out.println("a=" +i); System.out.println("b=" +j); } } public class CallByValue1 { public static void main(String args[]) { ... View Questions/Answers

Argument Passing  April 18, 2012 at 9:46 AM
hi this is my code class Test { void meth(int i, int j) { i *= 2; j /= 2; System.out.println("a=" +i); System.out.println("b=" +j); } } public class CallByValue1 { public static void main(String args[]) { ... View Questions/Answers

convert java Application to Java Applet  April 18, 2012 at 6:46 AM
hi every Java Master or Java Professional , my Name Is Vincent i'm java beginner can i ask a question regarding for Java application convert to Java Applet. below her is my sample application hope every master or professional can teaching me thank you. imp... View Questions/Answers

convert java Application to Java Applet  April 18, 2012 at 6:46 AM
hi every Java Master or Java Professional , my Name Is Vincent i'm java beginner can i ask a question regarding for Java application convert to Java Applet. below her is my sample application hope every master or professional can teaching me thank you. import javax.swing.*; import java... View Questions/Answers

Console messenger. How to anticipate if the user is writing something or just waiting for messages  April 18, 2012 at 1:45 AM
A console that acts as messenger. The app is Client/Server architecture. The app look for a messenger from other host and shows it as soon as receives it. The question is how to know that the user is typing a message or not because if the user is typing a message, the recieved message will int... View Questions/Answers

ArrayList in java  April 17, 2012 at 11:34 PM
sir i have a class Student.it contains id,name,marks of students and a parameteraised constructor.now i created an arraylist for storing the objects of Student class.i.e Student s1=new student(1,"ram",23); Student 21=new student(2,"ramana",35); Student s3=new student(3,"ramraju",63); Arra... View Questions/Answers

how to use one form out of multiple form from one jsp to another jsp  April 17, 2012 at 11:22 PM
Hi All. please give me your valuable advise for below requirement.. I have a .jsp( say abc.jsp) file which contains multiple Action form.I am required to add one form from abc.jsp as it is to another .jsp(say def.jsp).Your advise is appreciated ... View Questions/Answers

Session Expire  April 17, 2012 at 11:22 PM
Hello... i am new in JSP. i use in session.setAttribute and .getAttribute.But when i click on the sign out button i shows that the user is sign out but when i click on back button(chrom back button) it is again logged in. please help me..please Thanks sruti suman ... View Questions/Answers

Jfreechart chart display problem  April 17, 2012 at 10:15 PM
Using JSP and Jfreechart displays the chart fine on an internal browser in eclipse but doesnt display it on Chrome nor on Firefox. Chart.jsp <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> <%@ page import... View Questions/Answers

Java Variables Help Please!  April 17, 2012 at 10:08 PM
Hi, I just started with java and i need help with my school project, this is it so far: import java.util.*; public class ProjectCS { public static void main(String[] args) { welcome(); menu(); } public static void welcome() { System.o... View Questions/Answers

java  April 17, 2012 at 8:23 PM
how to convert jsp code into servlet code which method is used plz tell me. ... View Questions/Answers

serch document from .doc and .docx file  April 17, 2012 at 7:51 PM
how to find particular word from .doc and .docx file and that date insert into a data base ... View Questions/Answers

Arrays  April 17, 2012 at 6:27 PM
Hi I need help with the following exercises. Exercise 1: Write a Java application in which the user is prompted for the total number of integer values to be stored in an array. Initialize the array with random values in the range 1-20 inclusively. Now determine the largest and the smallest values... View Questions/Answers

static page and dynamic pages?  April 17, 2012 at 5:58 PM
what is the static page and dynamic pages adv and disadv? ... View Questions/Answers

static page and dynamic pages?  April 17, 2012 at 5:57 PM
what is the diff between static page and dynamic pages? ... View Questions/Answers

static page and dynamic pages?  April 17, 2012 at 5:56 PM
what is the static page and dynamic pages? ... View Questions/Answers

INTERPRETER  April 17, 2012 at 5:07 PM
how to write a simple interpreter in java that can execute simple commandes like adding two integers and sysout a result and calling java classes and executing the methodes in that class . ... View Questions/Answers

what is the server  April 17, 2012 at 4:09 PM
what is the server? ... View Questions/Answers

session  April 17, 2012 at 2:11 PM
how to implement login-logout session???? ... View Questions/Answers

i want to do a project using jsp and servlet....What are all the materials i need to study  April 17, 2012 at 12:52 PM
i want to do a project using jsp and servlet....What are all the materials i need to study ? ... View Questions/Answers

How to display gridview details to labels dynamically?  April 17, 2012 at 12:37 PM
I am using SQLDataSource to connect to MySQL. I have a gridview that retrieves information from MySQL database based on a selected id(dropdownlist). I need to display the gridview results on labels. I used lbDate.Text = GridView1.Rows(0).Cells(0).Text to display however, it always displays the d... View Questions/Answers

call another computer in LAN (no internet acces)  April 17, 2012 at 12:30 PM
Any idea how to develop a java application that makes VOIP calls inside an isolated (without internet access) network? Is there any (free) software solution for my problem? Thank you! ... View Questions/Answers

how to send mail with multiple attachments in jsp  April 17, 2012 at 11:50 AM
how to send mail with multiple attachments in java script ... View Questions/Answers

mail with multiple attachments  April 17, 2012 at 11:43 AM
code for sending mail with multiple attachments in jsp ... View Questions/Answers

how gave security of my pages in website????  April 17, 2012 at 11:05 AM
how gave security of my pages in website???? ... View Questions/Answers

shape looping  April 17, 2012 at 10:27 AM
can some1 help me?i have to make a shape using "*" by looping...and i dun know how...please and thank you * ** ... View Questions/Answers

insert data in the database using checkbox  April 17, 2012 at 10:26 AM
i am fetching data from the database using servlet on the jsp page and there is checkbox corresponding each row but the problem is that i am not fetching data in any textboxes so how should i insert only checked data into database on submission. ... View Questions/Answers

login  April 16, 2012 at 11:41 PM
hello i need some help please help how can identify admin from user when logging in? please make some answer and some explanation... ... View Questions/Answers

display data on text field  April 16, 2012 at 11:35 PM
I have created one table into SQL 8i. table contains 4 number data type columns. I want to retrieve data from that column and display that data on text field. String q="select * from Result1 where UserName='"+t1f.getText()+"'"; rs=st.executeQuery(q); ... View Questions/Answers

create one table into SQL 8i  April 16, 2012 at 11:35 PM
I have created one table into SQL 8i. table contains 4 number data type columns. I want to retrieve data from that column and display that data on text field. String q="select * from Result1 where UserName='"+t1f.getText()+"'"; rs=st.executeQuery(q); ... View Questions/Answers

Java  April 16, 2012 at 10:26 PM
What is java? ... View Questions/Answers

JDBC and Java Applications  April 16, 2012 at 10:26 PM
How to develop applications in JDBC and Java ... View Questions/Answers

Web Application  April 16, 2012 at 10:26 PM
Web applications for user management... View Questions/Answers

how to set class path  April 16, 2012 at 10:19 PM
how to set class path in java? ... View Questions/Answers

Java Services  April 16, 2012 at 10:17 PM
What is Java Services? ... View Questions/Answers

java basic  April 16, 2012 at 10:16 PM
Java Basics tutorials ... View Questions/Answers

Insertion sort program find calendar to array value 1000,5000,10000  April 16, 2012 at 9:49 PM
program find calendar for insertion sort in jfram to array 1000 ... View Questions/Answers

Action form  April 16, 2012 at 9:12 PM
how to store details from user and how to create asp file or etc. ... View Questions/Answers

how to open Java  April 16, 2012 at 6:59 PM
how to open java file simple Java Example... View Questions/Answers

How to write script in Java  April 16, 2012 at 6:57 PM
<html> <head> <script>alert('ok')</script> </head> </Html> ... View Questions/Answers

access data from mysql through struts  April 16, 2012 at 6:15 PM
I am Pradeep Kundu. I am making a program in struts in which i want to access data from MySQL through struts. I am using Strut 1.3.8 , Netbean 6.7.1 and MySQL 5.5. In this program ,I want to insert, delete & search data. In insert statement , i take a number variabe with lon... View Questions/Answers

Java Socket Programming  April 16, 2012 at 6:00 PM
Q.server get terminated after sleep time completion so further process stop. provide solution or any alternative of thread for following problem. //Item_Server.java import java.sql.*; import java.util.*; import java.util.*; import java.net.*; import... View Questions/Answers

how to convert java fram to java servlets  April 16, 2012 at 5:18 PM
hi every java master or java professional can you teach me how to convert JFram to Java Servlets program hope yours can reply me Thank you. below this is my own coding import javax.swing.*; import java.awt.*; import java.awt.event.*; import java.sql.*... View Questions/Answers

Displaying empty pdf with jasper reports using spring framework  April 16, 2012 at 5:14 PM
Hi, I am working with spring jasper integration to generate the jasper reports. Spring 3.0.5RELEASE,ireport 4.5.0 I generated a report template using the ireport.My spring controller class is returning the view and i am using the view resolver in the dispatcher-servlet.xml.I p... View Questions/Answers

javaFx technology  April 16, 2012 at 5:11 PM
how to call a Form to another Form in javaFx programme and need a proper professional guide with example for javaFx technology plz send as soon as possible ... View Questions/Answers

auto log out the application if its inactive for longer period  April 16, 2012 at 4:15 PM
hi all, Please tell me how to auto log out the application if its not performing any activity for longer period in jsp i tried to use session.setMaxInactiveInterval(arg0); but still its not working please reply.. thanks in advance ... View Questions/Answers

Logout if its not active for longer period in jsp  April 16, 2012 at 4:01 PM
hi all, Please tell me how to log out the application if its not performing any activity for longer period in jsp i tried to use session.setMaxInactiveInterval(arg0); but still its not working please reply.. thanks in advance ... View Questions/Answers

How to solve concurrency issue when an application is running on two machine to fetch record from one database  April 16, 2012 at 3:03 PM
I have developed an application in java to run on two machines. Program will fetch a record from database and process it. I want to make sure that when application run on two machine are not fetching/processing same record at the same time. for example: if one machine fetches few records to proc... View Questions/Answers

DMCA.com