Home Answers Questions Question and Answers


 
 

Latest Programming Questions askedAsk your question?

jsp with database..  May 28, 2010 at 12:34 PM
Hello i need code for.....I have a car brandimage on my front page.on clicking it it is directed to a model.jsp page.....what i need is on clicking a particular brand only the corresponding models of that brand should be retrieved from database.i have created a table in database which ha... View Questions/Answers

Line Graphs in java  May 28, 2010 at 11:21 AM
Hi...I need to generate a graph by using the database values using javaI know about the JFreeChart class...But by using that...I'm unable to display the values in the chart.I'm just getting the points...I need to get the values also at the specific point in the ch... View Questions/Answers

java  May 28, 2010 at 11:21 AM
please help to retrieve image from database when a search query is given from a text box in java code using oracle as a backend database ... View Questions/Answers

Advertisement

Jsp code to enable and disable certain links using jsp code  May 28, 2010 at 10:25 AM
Hi Everyone,I have a doubt in JSP,I have created a web application which has priviledges of a superuser and guest..now if a superuser logs in the page gets redirected to home page where all the links under a menu should be visible and enabled whereas when a guest logs in he should be red... View Questions/Answers

java  May 28, 2010 at 12:08 AM
does java support call by reference? ... View Questions/Answers

export data to excel sheet  May 27, 2010 at 8:49 PM
Hi.. how to export data to excel sheet from jsp? and how to update the excel sheet from jsp? and how to get the data from excel sheet? and how to make calculations in excel sheet like total avg from jsp?Pls..... ... View Questions/Answers

jsp drop down without refresh  May 27, 2010 at 6:13 PM
Sir I have tried two depenedent jsp dropdown in jsp page,But the probleam is when i select first drop down its totaly reload the page and selected item is vanish, Similirally when i used 2nd jsp same probleam also arise. Please tell me how to use the drop down without refresh and what chang... View Questions/Answers

Graphs in java  May 27, 2010 at 5:43 PM
Hi...I need to generate a graph by using the database values using javaI know about the JFreeChart class...But by using that...I'm unable to display the values in the chart.I'm just getting the points...I need to get the values also at the specific point in the ch... View Questions/Answers

java code  May 27, 2010 at 4:43 PM
to setup echo server and echo client. ... View Questions/Answers

file download in struts  May 27, 2010 at 4:17 PM
Hello...I've designed an application where i need to download an xml file by creating it...so...i used dom for it..I need to enter a meterid and then according to the meterid i've to generate an xml file from database..Everything's going on well...Now what my prob... View Questions/Answers

writing aprogram  May 27, 2010 at 2:10 PM
Write a program to reverse any string ... View Questions/Answers

how to use a session.removeAttribute  May 27, 2010 at 12:25 PM
Dear Sir, I am sending a mass emails with different matter.Reading a excel file i am getting a values to send a mail to all employees when i upload a file.I am storing a different matters in a arraylist,and that arrylist am storing in a session.My probs is that in frontend am showing ... View Questions/Answers

How I call the function union from the main  May 27, 2010 at 9:44 AM
Please, from public static void main(String[] args) I would like to call the function union and I have to pass to the functions two parameters, means two matrix mat1 and mat2 declared in main function//-------------------------------package model;... View Questions/Answers

java  May 27, 2010 at 9:14 AM
What is HTML. How we can use in Java Applications ... View Questions/Answers

How to program an application for?  May 26, 2010 at 11:39 PM
How do you write an application to count the number of both odd and even integers of several positive integerss? Then the final display is the total of how many odd numbers were entered and the total of how many even numbers were entered? ... View Questions/Answers

generating random numbers  May 26, 2010 at 8:35 PM
We would like to be able to predict tomorrow's price of a share of stock. We have data on past daily prices. Based on that we will make a prediction. Our plan is to use a weighted average of the 5 most recent prices as the prediction.We will choose the appropriate weights as the ones that woul... View Questions/Answers

reflex.js  May 26, 2010 at 4:11 PM
var tmp = navigator.appName == 'Microsoft Internet Explorer' && navigator.userAgent.indexOf('Opera') < 1 ? 1 : 0;if(tmp) var isIE = document.namespaces ? 1 : 0;if(isIE) { if(document.namespaces['v']==null) { var e=["shape","shapety... View Questions/Answers

real+contact  May 26, 2010 at 4:08 PM
<?php/** * @package WordPress * @subpackage Default_Theme *//*Template Name: Contact*/get_header(); ?> <div id="content"> <div class="pageCenter"> <div class="floatleft"><... View Questions/Answers

real+finance  May 26, 2010 at 4:06 PM
<?php/** * @package WordPress * @subpackage Default_Theme *//*Template Name: finnancial Planning*/get_header(); ?> <div id="content"> <div class="pageCenter"> <div class="floatlef... View Questions/Answers

real+function  May 26, 2010 at 4:06 PM
<?php/** * @package WordPress * @subpackage Default_Theme */if ( function_exists('register_sidebar') ) { register_sidebar(array( 'before_widget' => '<li id="%1$s" class="widget %2$s">', 'after_widget' => '</li>... View Questions/Answers

real+page  May 26, 2010 at 4:04 PM
<?php/** * @package WordPress * @subpackage Default_Theme */get_header(); ?><div id="content"> <div class="pageCenter"> <div class="floatleft"> <?php if (have_posts()) : w... View Questions/Answers

real+footer  May 26, 2010 at 4:01 PM
<?php/** * @package WordPress * @subpackage Default_Theme */?><div id="footer"> <span class="blue">Copyright 2010 P.A. Property | Web Design Brisbane by </span><img src="<?php bloginfo('template_url');... View Questions/Answers

real+header  May 26, 2010 at 4:00 PM
<?php/** * @package WordPress * @subpackage Default_Theme */?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999... View Questions/Answers

real+index.php  May 26, 2010 at 3:59 PM
<?php/** * @package WordPress * @subpackage Default_Theme *//*Template Name: Home*/get_header(); ?> <div id="content"> <div class="pageCenter"> <div class="floatleft">... View Questions/Answers

realsetate+css  May 26, 2010 at 3:58 PM
/*Theme Name: Real EstateTheme URI: Description: Version: 1.0Author: Author URI: Tags: */body { margin: 0; padding: 0; background: #63AAD7; color: #000000; font-family: Myriad Pro; font-size: 14px; ... View Questions/Answers

DOM  May 26, 2010 at 3:29 PM
Hi...I created an xml file through java by using DOMNow..I need to get the prompt for download when i clicked the button...I used downloadaction...for thisBut it didn't worked..Its jus viewing the xml file in browser..instead of prompting for download<... View Questions/Answers

DOM  May 26, 2010 at 12:57 PM
Hello....I'm creating an xml file from java using DOM...from the database values...and saving it in a fileBut the created xml file is generating all its files in a single line..But i need to get the next tag in next linehow to get this..??T... View Questions/Answers

call a function  May 26, 2010 at 12:38 PM
Please i want to call the function union via mainHow I can do it???Here you find my codeWith my best Regards,//--------------------------------package model;import java.awt.event.WindowAdapter;import java.awt.event.WindowEvent;<... View Questions/Answers

java beginners  May 26, 2010 at 8:23 AM
pl. let me know the answers of the following questions : 1) A program is unable to create objects of a class declared globally. what could be the problem wtih this construcotr2) what is the benefit of giving a constructor with default arguments. 3) ... View Questions/Answers

JDBC CONNECTIVITY  May 26, 2010 at 2:46 AM
String jclass="sun.jdbc.odbc.JdbcOdbcDriver"; Class.forName(jclass); String dsn= "Jdbc:Odbc:Employee"; Connection con= DriverManager.getConnection(dsn); PreparedStatement p = con.prepareStatement("insert into detail values(?,?,?,?)");... View Questions/Answers

javascript  May 25, 2010 at 6:57 PM
how to reduce the pageloading time in javascript?can you give example code for the way of executing homepage with css and javascript ... View Questions/Answers

pls send reply  May 25, 2010 at 4:17 PM
i get the errorError Occurred:java.sql.SQLException: Access denied for user 'root'@'localhost' (using password: YES) how to remove ... View Questions/Answers

Please convert this SQL query to hibernate  May 25, 2010 at 4:12 PM
I have a SQl query, which needs to be converted to HQL query, but i am not successfull, please help meselect a.msisdn,sum(b.amount) 'amount'from account a inner join accrued_Transaction b on a.msisdn = b.msisdn where a.account_group = 300 and a.opt_in_date is nul... View Questions/Answers

pls send reply  May 25, 2010 at 3:58 PM
i get the errorError Occurred:java.sql.SQLException: Access denied for user 'root'@'localhost' (using password: YES) how to remove ... View Questions/Answers

java  May 25, 2010 at 2:27 PM
Explain the concept of searching and various searching techniques ... View Questions/Answers

java  May 25, 2010 at 2:26 PM
What is SCJP and write its benefits. How it is useful for JAVA programmers. ... View Questions/Answers

java  May 25, 2010 at 2:26 PM
We need to give input to be processed by computer and generate output. Therefore in Java suggest how to accept input from the user and display it on screen(Interactive Input/Output) ... View Questions/Answers

java  May 25, 2010 at 2:25 PM
All programming languages have different pattern of data declaration, data types and operators it supports. ... View Questions/Answers

connectivity  May 25, 2010 at 12:32 PM
How can we connect sql server using Java ... View Questions/Answers

java  May 25, 2010 at 12:28 AM
Sir,I would like to add attribute to all the elements in the XML document while i am parsing the file using SAX event based parser. In the method startElement(), i would to like to add the attribute value to the element. I don't know how to use the Attribute in the packages org.xml.sax.* ; pl.... View Questions/Answers

jsp dropdown refresh  May 24, 2010 at 5:03 PM
Sir Thank u for your jsp code for dependent dropdown list, i used it in different table for data extraction but the probleam during data extraction when i select first drop down its refresh then 2nd drop down it also refresh. so i cannot get the selected data. Please kindly give some s... View Questions/Answers

Applet JSP communication  May 24, 2010 at 3:40 PM
Hi..I've an application where i need to get the data from the applet to JSP...How can i do this..??can anyone explain with a sample code..? ... View Questions/Answers

validations  May 24, 2010 at 12:55 PM
log in page with validations user name must be special character and one number and remining is alphabetes in struts ... View Questions/Answers

PDF creation in JAVA  May 24, 2010 at 12:02 PM
HI!Good morning....I want to create pdf file and i want to write something into pdf file....before creation. Upto creation i have done but how to write data into pdf. File Writer is not working....Please help me...Thanks in advance.... ... View Questions/Answers

how to find a dynamic string in a string & how to replace tgat wth with another string  May 24, 2010 at 11:16 AM
Dear sir,i have a ArrayList in that i have stored a values from a excel sheet specified column values and i have one string that is as followsDear ~2 ,Your cl is ~3 ,el is ~4 and bonus is ~5 . Thanks Hrin another arraylist i have a values ~2,~3,~4,~5 v... View Questions/Answers

javac is not ecognised as internal and external command  May 24, 2010 at 4:20 AM
i have installed jdk6u20 develpment kit on my pc and followed all the instructions about setting the classpath in system variable.but still i am getting the error i.e javac is not recognised as internal and external command.please reply me as soon as possible ... View Questions/Answers

Java Query  May 23, 2010 at 5:07 PM
Q. Write a program to display on command prompt as if the user enters 123,it should be display in word like "One Hundred and Twenty Three"? ... View Questions/Answers

Java Query  May 23, 2010 at 5:04 PM
Q.What is "Identifier Expected Error" in Java and when does it occur? Send me a list of causes related this error. ... View Questions/Answers

JSP:NEED RESPONSE ASAP PLEASE!  May 23, 2010 at 6:00 AM
Hi freind,If you could respond to my previous thread which hasn't been addressed for over a week, I'd really appreciate it. and most important if you could just respond to below. thank youI have a javascript that captures data from a highlighted row in a table and then sends this d... View Questions/Answers

JAVA  May 22, 2010 at 3:39 PM
Hi Friends,can u please tell me what are the thread safe and thread unsafe methods in servlet?mail: balla.rajaramesh@gmail.com ... View Questions/Answers

JAVA  May 22, 2010 at 3:35 PM
Hi Friends,can u please tell me the difference between ServletConfig and ServletContext object?mail: balla.rajaramesh@gmail.com ... View Questions/Answers

dependent drop down box  May 22, 2010 at 11:52 AM
haloo sir Please give me the solution how to extract data from dependent drop down box with page refresh, If possible please give some example for better understanding. With regards ... View Questions/Answers

Java  May 22, 2010 at 11:24 AM
HI, This is Ramesh. can u please tell me the difference between applet and servlet?mail: balla.rajaramesh@gmail.com ... View Questions/Answers

csp convert  May 22, 2010 at 2:53 AM
Hi guys,Can anyone teach me How this CSP be converted into JCSP pls?REDPARCEL(size,id) = enterRed!size!id -> STOPBLUEPARCEL(size,id) = enterBlue!size!id -> STOPThanks in advance,Sakai ... View Questions/Answers

How to Extract row from table view using JSP Code  May 21, 2010 at 5:54 PM
Hi Friends,This is vinay here. Hope this mail finds u all in condition.I am totally new to java world and trying to design a web page using NetBeans IDE 6.8.My problem exist with retrival of row from a table on click of link.Table Structure is given bellow: ... View Questions/Answers

Add text into the pdf File  May 21, 2010 at 5:41 PM
Hi friend,How can i insert or Add text into the pdf file from the exsting one in java..Thanks in Advance... ... View Questions/Answers

JavaMail and Gmail  May 21, 2010 at 5:28 PM
In my previous question, I forgot to mention that following exception is arising when trapped in catch:javax.mail.MessagingException: can't determine local email address Kindly let me know the solution asap. ... View Questions/Answers

wbdb.sql  May 21, 2010 at 4:31 PM
-- phpMyAdmin SQL Dump-- version 3.2.0.1-- http://www.phpmyadmin.net---- Host: localhost-- Generation Time: May 21, 2010 at 10:59 AM-- Server version: 5.1.36-- PHP Version: 5.3.0SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";/*!... View Questions/Answers

comment.css  May 21, 2010 at 4:16 PM
#comments #respond input, #comments #respond textarea{ background: #1E1E1E; margin: 2px; color: #757575; font-size: 10px; padding: 4px; width: 165px; border:1px solid #909090;}#comments { background: #424242; padding: 8px ... View Questions/Answers

comments.php  May 21, 2010 at 4:15 PM
<?php/** * @package WordPress * @subpackage Default_Theme */// Do not delete these lines if (!empty($_SERVER['SCRIPT_FILENAME']) && 'comments.php' == basename($_SERVER['SCRIPT_FILENAME'])) die ('Please do not load this page directly. Thanks... View Questions/Answers

fn for footbar menu  May 21, 2010 at 2:00 PM
function get_footer_menu() { $output = ''; $count = 0; $pages = get_pages(); foreach ($pages as $page) { if($count > 0) { $output .= ' | '; } $output .= '<a href="'.get_page_link($page->ID).'">'.$page->post_title.'</a>'; $c... View Questions/Answers

css for sidebar border and newer and oder post  May 21, 2010 at 1:59 PM
/*Theme Name: cmmTheme URI: Description: Version: 1.0Author: Author URI: Tags: */body { margin: 0; padding: 0; background: #000000;}#page { width: 960px; margin: auto;}... View Questions/Answers

swapping  May 21, 2010 at 11:58 AM
How to swap values of two variable without using third variable.Eg: if a=10 b=20after swap a=20 b=10 ... View Questions/Answers

java  May 21, 2010 at 8:13 AM
explain the concept of tree and its applications in java ... View Questions/Answers

java  May 21, 2010 at 8:13 AM
What is SCJP and write its benefits. How it is useful for JAVA programmers. ... View Questions/Answers

java  May 21, 2010 at 8:12 AM
What are Classes in JAVA. How it is related to structure in C. ... View Questions/Answers

java  May 21, 2010 at 8:10 AM
Every Language has its own programming structure likewise Java has its own method to write a program. Write the structure of a Java program. Write a sample program to display college name ... View Questions/Answers

java  May 21, 2010 at 8:08 AM
Every Language has its own programming structure likewise Java has its own method to write a program. Write the structure of a Java program. Write a sample program to display college name ... View Questions/Answers

query  May 20, 2010 at 11:32 PM
hi sir i have 2 tables,one is user_details and the other is employee in my database.in user_details i have given a userid varchar(10) primary key,username varchar(20),password varchar(10).This is login process of my proj.And in employee table also i have to give userid,username,... View Questions/Answers

JavaMail and Gmail in Windows  May 20, 2010 at 6:30 PM
Hello!I made a java program to send and receive emails through Gmail SMTP server. It worked fine in Windows 7 but when I try to run the same program in Windows XP in a different machine, then the mail is not going. Either Messaging exception or SendMail exception comes. I have used JDK1.... View Questions/Answers

how to store a dynamic values  May 20, 2010 at 2:26 PM
Dear sir, i have a ArrayList in that i have stored a values from a excel sheet specified column values and i have one string that is as followsDear ~2 , Your cl is ~3 ,el is ~4 and bonus is ~5 . Thanks Hr in another arraylist i have a valu... View Questions/Answers

jsp applet communication  May 20, 2010 at 1:01 PM
Hi...We've an application where v need to create an object in the jsp and send that to an applet...For this v used <jsp:plugin> in which we passed object as a parameter...v created a connection object in jsp and sending that as a parameter in <jsp-param>... View Questions/Answers

Applet database access  May 20, 2010 at 11:57 AM
HI...I'm having an applet where we should display the database values in the applet...It works fine in the local system...but when its in the server, we r getting null values in the local system..I created a policy file and also added that url in java.security but therz no ch... View Questions/Answers

FileOutputStream  May 19, 2010 at 9:06 PM
When uploading a file in JSP through FileOutputStream object it requires the full file path to be given. Otherwise it shows an error as writing the file with the already existing one and writing the ontent in the same file. But, while giving the path from drive it does not show any error. ... View Questions/Answers

Changing pictures  May 19, 2010 at 6:32 PM
I found some html code that allows pictures to be changed on a web page. I copied the code and saved it as an html file. when I click on it, my browser does display the pictures in sequence as it is supposed to using my Firefox browser. With Internet Explorer (version 8) it blocks the active-x unles... View Questions/Answers

Struts Hibernate Spring  May 19, 2010 at 11:39 AM
HI Deepak,This is reddy.i want expamle for struts hibernate spring example. ... View Questions/Answers

qurey  May 18, 2010 at 6:55 PM
hello sir i have 2 tables,one is user_details and the other is employee.in user_details i have given a userid varchar(10) primary key,username varchar(20),password varchar(10).This is login process of my proj.And in employee table also i have to give userid,username,password.Th... View Questions/Answers

concept Understatnding problem  May 18, 2010 at 4:52 PM
Even though I have studied in detail inheritance & interfaces in java , I fail to understand "How Interfaces Help in Multiple Inheritance ?" . Pls. Supplement ur ans. with an example. Thanx . ... View Questions/Answers

dropdown wth checkboxes  May 18, 2010 at 4:50 PM
Hi Friends,Instead of using Ctrl key i want to put checkboxes inside the dropdown,then we can check the options whatever we want.Please give me the html code(only html & javascript).Thanks in advance. ... View Questions/Answers

java programming  May 18, 2010 at 2:59 PM
write a program that prints its own source code? ... View Questions/Answers

regarding object references  May 18, 2010 at 2:55 PM
How can we find the number of instances created to an object in java? Write a program for this? ... View Questions/Answers

java sample program  May 18, 2010 at 1:34 PM
haii need a sample program for polymorphism ... View Questions/Answers

java sample code  May 18, 2010 at 1:34 PM
hai......i need a full sample program fo inheritance......... ... View Questions/Answers

java beginners  May 18, 2010 at 10:04 AM
pl. let me know the the following 1) difference between parameters and arguments2) differentiate between recursive funciton and overloaded functionthanks ... View Questions/Answers

getting contacts from gmail  May 18, 2010 at 7:29 AM
hi there, would you please tell me step by step how can i integrate the gmail contacts with my web application. please reply me asap. I'll be greatfull to you. Rajesh ... View Questions/Answers

Java  May 18, 2010 at 7:15 AM
a) Design and test a class to represent a bank account,members areName of the depositor,Acc No,Type of Acc, and Balance AmountMethods:To assign initial valuesTo deposit an amountRo withdraw after checking balanceTo display the name and balance. ... View Questions/Answers

Logic  May 17, 2010 at 11:23 PM
Hi All,I have jsp page which contains 9 labels.. 4 labels stores in one table and remaining from another table...I need to collect the data from two tables(select,update,insert)...how to iterate those values and displaying on my jsp page..Thanks<... View Questions/Answers

JAVA COMPILATION  May 17, 2010 at 6:34 PM
A real estate office handles 50 apartment units.When the rent is $600 per month, all the units are occupied. However, for each $40 increase in rent, one unit becomes vacant. Each occupied unit requires an average of $27 per month for maintenance. how many units should be rented to maximize the profi... View Questions/Answers

java compilation  May 17, 2010 at 6:01 PM
Design and implement the class Day that implements the day of the week in a program. The class Day should store the day, such as Sun for sunday. The program should be able to perform the following operations on an object Day:a.Set the day.b.Print the day.C.Return the day.... View Questions/Answers

java copilation  May 17, 2010 at 5:49 PM
Write a program that converts a number entered in Roman numerals to decimal. Your program should consist of a class, say, Roman. An object of type Roman should do the following:a.Store the number as a Roman numeral.b.Convert and store the number into decimal.c.Pri... View Questions/Answers

java compilation  May 17, 2010 at 5:40 PM
Write a program that allows the user to enter students' names followed by their test scores and outputs the following information(assume that the maximum number of students in class is 50): a.class averageb.Names of all the students whose test scores are below the class avera... View Questions/Answers

java compilation  May 17, 2010 at 5:33 PM
In a gymnastics or diving competition, each constestants score is calculated by dropping the lowest and the highest scores and then putting the remaining scores. Write a program that allows the user to enter eight judges' scores and then outputs the points received by the contestant. Format your out... View Questions/Answers

java  May 17, 2010 at 3:46 PM
hi gud afternoon friend's can any one help me regarding jboss.when i am deploying web application using net beans ide6.5,i am getting an error that 8080 port is already in use,when i change the port number in server.xml as 8081,the jboss server is running but when i am opening it in browser with url... View Questions/Answers

Getting an exception  May 17, 2010 at 1:09 PM
Dear sir,while executing this code i am getting a following error ,i am sending my code also please help me sir...//following is a codeint a = 0, b = 1, c = 2, d = 3, e = 4,f=0; //int a, b, c, d, e, f; EmployeeDataBaseDAO employeeDataBase = new EmployeeDataBaseDAO();... View Questions/Answers

help in uml  May 17, 2010 at 7:40 AM
you are required to produce a design in UML and an implementation of the design in Java .the design should represent the following scenario.The scenarioA car company hires out vehicles to the general public. the vehicles can be cars or light van . for each vehicle the make and ... View Questions/Answers

java run time textfield and use with map  May 16, 2010 at 1:29 PM
i want to program which read data from file and store in map and display in different textfields which are generated at run time like a text file store informationclass a1attr.name = name1attr.value = 1class a2attr.name = name2attr.value = 2... View Questions/Answers

interface variables  May 16, 2010 at 12:32 PM
why interface variable is by default final? what was the necessisity to make it final? plz explain me with good java prog? ... View Questions/Answers

RMI  May 16, 2010 at 11:00 AM
DEAR SIR,I WANT TO LEARN RMI USING NETBEAN 6. PLEASE HELP ME WITH A STEP-BY-STEP, ON NETBEAN.THANK YOU AND BEST REGARDS,KUMAR.S ... View Questions/Answers

interface variables  May 16, 2010 at 12:35 AM
why interface variables are final? explain me with good program example?? i knw why the variable is static but,i dont knw why it is final by default?thanks in advance.. ... View Questions/Answers

interface variables  May 16, 2010 at 12:35 AM
why interface variables are final? explain me with good program example?? i knw why the variable is static but,i dont knw why it is final by default?thanks in advance.. ... View Questions/Answers

DMCA.com