Home Answers Questions Question and Answers


 
 

Latest Programming Questions askedAsk your question?

getting an error when set classpath  February 20, 2012 at 4:04 PM
Hello Everyone! i have used hssf model for reading excel sheet in my project & i have set classpath for that jar file but when i compile the program it will compile correctly but when i run it, it gives an error "could not find or load main" please help me..... ... View Questions/Answers

ResultSet  February 20, 2012 at 12:22 PM
I want to retrieve data of unknown datatype from database.how to do it using resultset or Resultsetmetadata.Can you please tell me what to write in the dashes specified. <%@page contentType="text/html" pageEncoding="UTF-8"%> <html> <h... View Questions/Answers

Binary tree  February 20, 2012 at 7:58 AM
a. Construct a method to implement a binary tree using an array. b. Implement the binary tree to store numbers in sorted order. ... View Questions/Answers

Advertisement

Database Connectivity  February 20, 2012 at 12:09 AM
I tried to establish database connection with sqlserver2008 through GlassFish server. When I set the path of sqljdbc.jar(E:\Glass Fish\glassfish-v2ur1\javadb\lib\sqljdbc.jar) it shows me error as " An error has occurred Class name is wrong or classpath is not set for:com.ddtek.jd... View Questions/Answers

jsf session  February 19, 2012 at 11:40 PM
How to maintain session in jsf login application? ... View Questions/Answers

jsf session  February 19, 2012 at 11:40 PM
How to maintain session in jsf login application? ... View Questions/Answers

pyramid  February 19, 2012 at 9:39 PM
How to get the code for the following pattern * * * * * * * * * * ... View Questions/Answers

pyramid  February 19, 2012 at 9:39 PM
How to get the code for the following pattern * * * * * * * * * * ... View Questions/Answers

compilation errors  February 19, 2012 at 9:18 PM
package jsptube.tutorials.servletexample; import java.io.IOException; import java.io.PrintWriter; import javax.servlet.ServletConfig; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest;... View Questions/Answers

hibernat frame work  February 19, 2012 at 4:20 PM
what is the deployment structure for 'hibernete.cfg.xml','contact.hbm.xml','Contact.java','FirstExample.java' programs into eclipse ide ... View Questions/Answers

Logic and Degin  February 19, 2012 at 2:22 PM
Need help in writing a pseudocode for this can so please help me with this just need to get started. In this lab, you are going to extend the Fireworks Checkout Stand application in Week 6. This week, we will be more efficient by using files and modularizing the program. This week, we wil... View Questions/Answers

java  February 19, 2012 at 12:46 PM
i need out put for prgm frnds........ import java.io.*; import java.util.*; import com.lowagie.text.*; import com.lowagie.text.pdf.*; public class ConvertPDFToTEXT { public static void main(String[] args) throws IOException { try { Document document = new Document(); document.o... View Questions/Answers

java applet  February 19, 2012 at 11:37 AM
I want code to implement (1) user will enter how many nodes (2)it should allow that no. of clicks and circle should be displayed at that position. ... View Questions/Answers

spring JEE module tutorial  February 19, 2012 at 10:48 AM
Hi, I want spring Jee module tutorial and spring ORM module tutorial plz send me.......................... ... View Questions/Answers

online shopping project  February 19, 2012 at 10:18 AM
Hi, i want online shopping project modules description and screens. ... View Questions/Answers

online shopping project  February 19, 2012 at 10:18 AM
Hi, i want online shopping project modules description and screens. ... View Questions/Answers

sample e-commerce project desc& screens  February 19, 2012 at 10:02 AM
Hi, I want Sample e-commerce project description and screens and registration, cataloge module...............plz send me. ... View Questions/Answers

i got an error while compile this program manually.  February 18, 2012 at 10:33 PM
import javax.servlet.http.*; import org.apache.struts.action.*; public class ActionOne{ public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletRespon... View Questions/Answers

Java and JSP help  February 18, 2012 at 8:41 PM
I have a website, on my website i have made a form which allows the user to enter a question, this question is then saved on a file, i have the following code: <html> <head> <title>JSP Form</title> <style> ... View Questions/Answers

Java and JSP help  February 18, 2012 at 8:41 PM
I have a website, on my website i have made a form which allows the user to enter a question, this question is then saved on a file, i have the following code: <html> <head> <title>JSP Form</title> <style> ... View Questions/Answers

Java and JSP help  February 18, 2012 at 8:41 PM
I have a website, on my website i have made a form which allows the user to enter a question, this question is then saved on a file, i have the following code: <html> <head> <title>JSP Form</title> <style> ... View Questions/Answers

Java and JSP help  February 18, 2012 at 8:41 PM
I have a website, on my website i have made a form which allows the user to enter a question, this question is then saved on a file, i have the following code: <html> <head> <title>JSP Form</title> <style> ... View Questions/Answers

Java and JSP help  February 18, 2012 at 8:41 PM
I have a website, on my website i have made a form which allows the user to enter a question, this question is then saved on a file, i have the following code: <html> <head> <title>JSP Form</title> <style> ... View Questions/Answers

Java and JSP help  February 18, 2012 at 8:41 PM
I have a website, on my website i have made a form which allows the user to enter a question, this question is then saved on a file, i have the following code: <html> <head> <title>JSP Form</title> <style> ... View Questions/Answers

Java and JSP help  February 18, 2012 at 8:41 PM
I have a website, on my website i have made a form which allows the user to enter a question, this question is then saved on a file, i have the following code: <html> <head> <title>JSP Form</title> <style> ... View Questions/Answers

Java and JSP help  February 18, 2012 at 8:41 PM
I have a website, on my website i have made a form which allows the user to enter a question, this question is then saved on a file, i have the following code: <html> <head> <title>JSP Form</title> <style> ... View Questions/Answers

Java and JSP help  February 18, 2012 at 8:41 PM
I have a website, on my website i have made a form which allows the user to enter a question, this question is then saved on a file, i have the following code: <html> <head> <title>JSP Form</title> <style> ... View Questions/Answers

Java and JSP help  February 18, 2012 at 8:41 PM
I have a website, on my website i have made a form which allows the user to enter a question, this question is then saved on a file, i have the following code: <html> <head> <title>JSP Form</title> <style> ... View Questions/Answers

Java and JSP help  February 18, 2012 at 8:41 PM
I have a website, on my website i have made a form which allows the user to enter a question, this question is then saved on a file, i have the following code: <html> <head> <title>JSP Form</title> <style> ... View Questions/Answers

Java and JSP help  February 18, 2012 at 8:41 PM
I have a website, on my website i have made a form which allows the user to enter a question, this question is then saved on a file, i have the following code: <html> <head> <title>JSP Form</title> <style> ... View Questions/Answers

Java and JSP help  February 18, 2012 at 8:41 PM
I have a website, on my website i have made a form which allows the user to enter a question, this question is then saved on a file, i have the following code: <html> <head> <title>JSP Form</title> <style> ... View Questions/Answers

project  February 18, 2012 at 8:00 PM
hi , we r working on one project related to our results. we using java and for back end sqlserver 2005. In dis we are trying to retrieve result from some site and store it in our data base so that we can perform operations such as calculating percentage, avg, comparing the results with previou... View Questions/Answers

Linear Regression  February 18, 2012 at 7:52 PM
hi........ Can u give me a simple code for Linear Regression in java swings????????? thanks in advance plz reply......... ... View Questions/Answers

code  February 18, 2012 at 3:19 PM
code for android sample program ... View Questions/Answers

how to use button in array  February 18, 2012 at 2:34 PM
plz tell me how to code for button in array, ... View Questions/Answers

how to add components (like button , checkbox etc) in a table column in core java  February 18, 2012 at 2:32 PM
plz tell me how to add components(like button, checkbox, radiobutton etc)in a table column in core java ... View Questions/Answers

the specified dsn contains an architecture mismatch between the driver and application windows 7  February 18, 2012 at 2:20 PM
sir, i m using windows 7 64-bit , 32-bit java version 7, ms office 2007 32-bit, so plz tell me how to resolve the following error--- the specified dsn contains an architecture mismatch between the driver and application ... View Questions/Answers

c++  February 18, 2012 at 1:59 PM
Write the definition of the class dayType that implements the day of the week in a program. The class dayType should store the day, such as Sunday for Sunday. The program should be able to perform the following operations on an object of type dayType: a. Set the day. b. Print the day. c. Return t... View Questions/Answers

C++  February 18, 2012 at 1:58 PM
. Consider the definition of the following class: class CC { public: CC(); //Line 1 CC(int); //Line 2 CC(int, int); //Line 3 CC(double, int); //Line 4 . . . private: int u; double v; }; ... View Questions/Answers

c++  February 18, 2012 at 1:57 PM
Consider the following declarations: class xClass { public: void func(); void print() const; xClass (); xClass (int, double); private: int u; double w; }; xClass x; a. How many members does class xClass have? b. How many private members does class xClass have? c. How many constructors does class ... View Questions/Answers

c++  February 18, 2012 at 1:56 PM
Consider the following declarations: class xClass { public: void func(); void print() const; xClass (); xClass (int, double); private: int u; double w; }; xClass x; a. How many members does class xClass have? b. How many private members does class xClass have? c. How many constructors does class ... View Questions/Answers

c++  February 18, 2012 at 1:56 PM
Characterize the following algorithm in terms of Big-O notation. for (int i = 1; i <= n; i++) for (int j = 1; j <= n; j++) for (int k = 1; k <= n; k++) cout << i + j + k ... View Questions/Answers

c++  February 18, 2012 at 1:55 PM
Characterize the following algorithm in terms of Big-O notation. Also find the exact number of additions executed by the loop. (Assume that all variables are properly declared.) for (int i = 1; i <= n; i++) sum = sum + i * (i + 1); ... View Questions/Answers

c++  February 18, 2012 at 1:54 PM
Consider the following function: int funcExercise7(int list[], int size) { int sum = 0; for (int index = 0; index < size; index++) sum = sum + list[index]; return sum; } ... View Questions/Answers

binding data with textbox on dropdown click  February 18, 2012 at 10:47 AM
Hello friends,Divyesh here. i have jsp page and i would like to bind data with text box on dropdown click. in dropdown employee id are load.and when we select perticular id than how to display all information of perticular id in text box.. pls reply me as soon as possible. ... View Questions/Answers

download file Error in struts2 action class  February 18, 2012 at 10:16 AM
Hi, i am using bellow block of code for download file : public void downloadGreeting(String filename,HttpServletRequest request, HttpServletResponse response){ String strPrefix = System.getProperty("astsoundsfolderoriginal"); F... View Questions/Answers

unable to display image using html tag in servlet.(image src is in a variable.....). i am using netbeans IDE. plz..........do help  February 17, 2012 at 11:33 PM
import java.io.IOException; import java.io.PrintWriter; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javazoom.upload.MultipartFormDataRequest; import javazoom.uploa... View Questions/Answers

how to write quesry results into spread sheet  February 17, 2012 at 10:27 PM
Hello sir/madam, I need a solution/code for the below scenario. In jsp, based on the date range selection we need to pull the records from the table and to write into spreadsheet and pop up the spread sheet in the jsp to save option. thanks ... View Questions/Answers

java  February 17, 2012 at 8:56 PM
how to determine the bandwidth utilization for nodes(system) using java. ... View Questions/Answers

how can i do group tagging in portlet factory  February 17, 2012 at 7:10 PM
how can i do group tagging in portlet factory ... View Questions/Answers

add XMl to JTable  February 17, 2012 at 6:23 PM
Hi.. i saw the program of adding add XMl to JTable using DOM parser,but i need to do that in JAXB ,is it possible to do? help me .. ... View Questions/Answers

Error in using jstl tags  February 17, 2012 at 5:31 PM
I'm trying to use jstl tags in jsp.i've included the jstl.jsr file in lib folder of my project and also written the foll. tag statement in jsp page <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> but still i'm getting the error "CANNOT FIND THE TAG LIBRARY DESCR... View Questions/Answers

FileUpload and Download  February 17, 2012 at 5:10 PM
Hello Sir/Madam, I have used the below coding for Upload and download file, but it is not stored in database and also it s not download the file with its content... just it download doc with 0 Bytes what should be modify here to get correct solution my database contain the table name as files ... View Questions/Answers

FileUpload and Download  February 17, 2012 at 5:10 PM
Hello Sir/Madam, I have used the below coding for Upload and download file, but it is not stored in database and also it s not download the file with its content... just it download doc with 0 Bytes what should be modify here to get correct solution my database contain the table name as files ... View Questions/Answers

FileUpload and Download  February 17, 2012 at 5:09 PM
Hello Sir/Madam, I have used the below coding for Upload and download file, but it is not stored in database and also it s not download the file with its content... just it download doc with 0 Bytes what should be modify here to get correct solution my database contain the table name as files ... View Questions/Answers

FileUpload and Download  February 17, 2012 at 5:09 PM
Hello Sir/Madam, I have used the below coding for Upload and download file, but it is not stored in database and also it s not download the file with its content... just it download doc with 0 Bytes what should be modify here to get correct solution my database contain the table name as files ... View Questions/Answers

FileUpload and Download  February 17, 2012 at 5:09 PM
Hello Sir/Madam, I have used the below coding for Upload and download file, but it is not stored in database and also it s not download the file with its content... just it download doc with 0 Bytes what should be modify here to get correct solution my database contain the table name as files ... View Questions/Answers

dynamic query  February 17, 2012 at 5:07 PM
DECLARE QUERY VARCHAR2(32767); FIN_QUERY VARCHAR2(32767); CURSOR C IS (select distinct PORTFOLIO from MPE_TEST1); CURSOR C2 IS SELECT DISTINCT PORTFOLIO_LEVEL, PORTFOLIO FROM MPE_TEST1 ORDER BY PORTFOLIO_LEVEL; TYPE ARRAY IS TABLE OF VARCHAR2(50... View Questions/Answers

Upload and Download multiple files  February 17, 2012 at 4:03 PM
Hello Sir/Madam, I need a simple code for upload and download multiple files(it may be image,doc and txt)which has to be store in database and also retrieve the file from database using jsp with sqlserver ,can you please provide a proper coding for it and also database connection. thank... View Questions/Answers

null pointer exception cannot be removed  February 17, 2012 at 3:52 PM
class list { public int integer; public String elem; public list next; private Exception nothing; public int r; public list() { this(null,null,0); } public list(String e,int i) { this.elem = e; this.next = null; th... View Questions/Answers

About Wicket Framework  February 17, 2012 at 3:39 PM
When i am going to install plugins for Wicket 1.5.3 . This error is shown pls help me unable to connect to the new provider because of zero sized file reported at http://blogs.oracle.com/geertjan/resource/NetBeans4Wicket.xml ... View Questions/Answers

About Wicket Framework  February 17, 2012 at 3:34 PM
When i am going to install plugins for Wicket 1.5.3 . This error is shown pls help me Unable to connect to the new provider because of zero sized file reported at ... View Questions/Answers

struts tiles implementation  February 17, 2012 at 3:28 PM
referred above site... im implementing Tiles using Struts.. I have seen the Result Example posted by this site. "Have a look at the following link: Struts2 Tiles Example" but still there is one error in baseLayout.jsp. error is showing at the first line of... View Questions/Answers

struts tiles implementation  February 17, 2012 at 3:26 PM
im implementing Tiles using Struts.. I have seen the Result Example posted by this site. **"Have a look at the following link: [Struts2 Tiles Example][1]"** [1]: http://roseindia.net/answers/viewqa/Framework/23935-tiles-using-struts2.html ... View Questions/Answers

Can anyone give me guideline how i write the trigger in MySQL and JSP? Can anyone give me guideline how i write the trigger in MySQL and JSP?  February 17, 2012 at 2:17 PM
I want to show some message after insert/update record. So I going with trigger can any one give me guideline, I using mysql database(PHPMyAdmin - admin panel) and my application in JSP. Plz Help me, how do it successfully? ... View Questions/Answers

Java  February 17, 2012 at 1:50 PM
Sample java program for employee recruitment status ... View Questions/Answers

java.lang.NullPointerException  February 17, 2012 at 1:34 PM
Hello! I would be very gratefull if you could find where is my problem and how can I fix it. (java.lang.NullPointerException) index.html: <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.... View Questions/Answers

tiles using struts2  February 17, 2012 at 12:46 PM
hello, im implementing tiles using struts2 in eclipse. i am having following problem occurred during execution.i have created all neccessary settings of jar files. plz help me. org.apache.jasper.JasperException: Mandatory TLD element tlib-version missing or empty in TLD /WEB-INF/struts-... View Questions/Answers

java  February 17, 2012 at 11:46 AM
is java purely object oriented language? ... View Questions/Answers

Annotations are using now a days?  February 17, 2012 at 11:22 AM
i have a doubt in Annatation, if we use Annatation we must hardcoding the code/data but sunmicrosystem itself says that hardcoding is not recommended. ... View Questions/Answers

i got an exception while accept to a jsp  February 17, 2012 at 11:06 AM
type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.jasper.JasperException: java.util.MissingResourceException: Can't find resource for bundl... View Questions/Answers

set background image in javafx  February 17, 2012 at 10:13 AM
Hi, How to add backgroung image in javafx integrated with jswing? ... View Questions/Answers

JPA CriteriaBuilder - How to use ?IN? comparison operator  February 17, 2012 at 8:17 AM
Can you please help me how to convert the following codes to using "in" operator of criteria builder? I need to filter by using list/array of usernames using "in". ***I also tried to search using JPA CriteriaBuilder - "in" method but cannot find good resu... View Questions/Answers

text file  February 17, 2012 at 6:35 AM
Hi can you help me I have to modify the program below so that all the data held in it is stored in an external text file.So there should not be any variables in the program which are assigned values like 12 or paint.The variables should be replaced by variables which get their values from at the ... View Questions/Answers

help Needed with requirements  February 16, 2012 at 10:57 PM
Following are my requirements : * Maintain a student database *Based on a student's test results ,reports should be generated so as to project details such as a students weakness in a particular subject /chapter etc. *That report with proper formatting,structure and content should be sent to the ... View Questions/Answers

using ajax and jsp (struts) to login and remain on same page.  February 16, 2012 at 9:53 PM
I am a fresher... I can forward my login page to success page using struts, but I want to remain on same login page and just want to display loggers name ... I don't know how to use struts to remain on same page. What about config file:- <form-bea... View Questions/Answers

dropdown box  February 16, 2012 at 6:35 PM
i need to have country,state and city in drop down box using ajax and use db2 database ... View Questions/Answers

int to byte in java  February 16, 2012 at 6:17 PM
How to convert int to byte in Java? ... View Questions/Answers

prevent browser refresh  February 16, 2012 at 6:00 PM
prevent browser from refresh in Javascript. ... View Questions/Answers

sum of the series  February 16, 2012 at 5:46 PM
Program to sum the series 1+1/1!+1/2!+1/3!+....n ... View Questions/Answers

print the below pattern  February 16, 2012 at 5:42 PM
to write a program using a function ti initialize a character 'A' and print the following pattern of characters upto six lines A A B A B C A B C D A B C D E A B C D E F ... View Questions/Answers

Bean  February 16, 2012 at 5:35 PM
What is BaseEJB What is ProcessEJB What is BLEJB What is BaseEJB What is ServiceEJB What is EntityManagerEJB ... View Questions/Answers

Text Editor Image upload  February 16, 2012 at 5:33 PM
how to browse an image from text editor instead of giving url of particular image using javascript ... View Questions/Answers

program to input marks  February 16, 2012 at 5:32 PM
program to input marks ,name in computer application 7 annual fees to be paid .Decide the scholarship amount as per the given criteria Marks Scholarship(%)on Annual Fees =90 35% =70<90 20% <... View Questions/Answers

program to print total marks  February 16, 2012 at 5:26 PM
program to input total marks out of 600 marks as an argument and print the stream allotted using the following criteria 401 & above - PCM 301-400 - ZBC 201-300- Commerce 101-200 - Arts otherwise(<101)-Admission not granted.you are in waiting list ... View Questions/Answers

how to add dynamic data  February 16, 2012 at 5:11 PM
how to add dynamic data to an existing web application? ... View Questions/Answers

using variable loop  February 16, 2012 at 5:06 PM
program to print alphabets from a-z along with ASCII codes of each alphabets in two columns using a character variable loop...can anyone help me in this?? ... View Questions/Answers

switch case  February 16, 2012 at 5:04 PM
program to input 2 numbers and a choice.Using switch case we need to perform all the mathematical operation.Print a suitable error message if the choice is wrong ... View Questions/Answers

switch case  February 16, 2012 at 5:04 PM
program to input 2 numbers and a choice.Using switch case we need to perform all the mathematical operation.Print a suitable error message if the choice is wrong ... View Questions/Answers

validation error value is not valid  February 16, 2012 at 5:02 PM
How to recognize and throw error like "validation error value is not valid"? ... View Questions/Answers

Spring Framework  February 16, 2012 at 4:51 PM
using Spring framework how to get filename output with date example:NSR_CURRENTDATE.TXT <property name="resource" value="F:/garryworkspae/NseSpring/output/output% schedule.date%.txt"/> how to get current date. ... View Questions/Answers

uitextfield disable keyboard  February 16, 2012 at 4:39 PM
How to disable keyboard of UITextView in iPhone SDK application? ... View Questions/Answers

using switch case  February 16, 2012 at 3:58 PM
Define a class MENU to perform the following operation depending upon the users choice using switch case 1)print square root of the number 2)print rounded down value of a number(in decimals) 3)print rounded up value of a number(in decimals) 4)Quit ... View Questions/Answers

Using Nested loops  February 16, 2012 at 3:55 PM
How to use nested loops in java when I want to print the 10 multiples of numbers 2 to 15(in multiplication table) ... View Questions/Answers

FileUpload and Download  February 16, 2012 at 2:42 PM
Hello sir/madam, I need a simple code for File upload and Download in jsp using sql server,that uploaded file should be store in database with its content and also while downloading it should be download with its full content...can you please help me... im in urgent i have to implement that ... View Questions/Answers

Text Area  February 16, 2012 at 2:27 PM
how to browse an image in text area instead of giving url of particular image ... View Questions/Answers

store and retrieve data  February 16, 2012 at 2:11 PM
sir,i want to store the entering data in a word file and retrieve it when i need.i am try to develop a video portal.in which user can watch video and write comments.the comments are stored in a file and when the user remove the video comments are also removed.what is the solution for this? ... View Questions/Answers

read value from database & alert it is available in database or not  February 16, 2012 at 1:02 PM
how to read value from text box and alert whether it is available in database or not? ... View Questions/Answers

passing value from javascript popup  February 16, 2012 at 12:52 PM
How to take user input and pass that input value using popup in Javascript? ... View Questions/Answers

identifier not found  February 16, 2012 at 12:44 PM
Getting compilation error " identifier not found " please explain ? ... View Questions/Answers

DMCA.com