Home Answers Questions Question and Answers


 
 

Latest Programming Questions askedAsk your question?

server intercommunication  June 6, 2010 at 7:29 PM
how to intercommunicate between two servers by using webservices...Example :if our service is in one server(Apache tomcat5.5) and application is in other server(jboss4.0) ... View Questions/Answers

Java Servlet - matching 2 databases  June 6, 2010 at 3:33 PM
Dear Experts,I have 2 tables in a database, parents and memberparticulars resepectively.parents is the table that contains parents data.memberparticulars is the table that contains tutors data.I'm trying to match parents' who has indicated subjects wanted, qualifi... View Questions/Answers

MyEclipse  June 6, 2010 at 10:14 AM
Hi, I am using MyEclipse6.0. I have developed a struts based application. As part of that i have used struts-html tags. When i have written the following code in web.xml file it is giving errorweb.xml <taglib> <taglib-uri>/tags/struts-html</ta... View Questions/Answers

Ads

JDBC connection and SQL Query  June 5, 2010 at 11:19 PM
Hi,I'm reading a all files one after the other in a directory in java. storing the values in an array of string each time. Now I'm trying to execute a query to insert those values into an oracle DB. But I'm trying hard to figure out syntax for inserting into a table using variables. I'm ... View Questions/Answers

Java programmes  June 5, 2010 at 8:51 PM
1. Develop a Java package with simple Stack and Queue classes. Use JavaDoccomments for documentation.2. Design a class for Complex numbers in Java. In addition to methods for basicoperations on complex numbers, provide a method to return the number of activeobjects created.... View Questions/Answers

hibernate sql error  June 5, 2010 at 6:40 PM
Hibernate: insert into EMPLOYE1 (firstName, lastName, age, p-type, EMP_ID) values (?, ?, ?, 'e', ?)Exception in thread "main" org.hibernate.exception.SQLGrammarException: Could not execute JDBC batch update at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.... View Questions/Answers

help me  June 5, 2010 at 4:10 PM
help me with the principals of designing agood websites and i can start ... View Questions/Answers

help me  June 5, 2010 at 4:09 PM
help me with the principals of designing agood websites and i can start ... View Questions/Answers

Writing a file using servlets  June 5, 2010 at 3:53 PM
I'm using a servlet to read an input from a jsp file and write into a .txt file in my computer. The code is good until reading the data and creating a file in my space. but it is not writing the values. The code i tried is pasted below. I can get some value into string s, but its not writing in the ... View Questions/Answers

Core Java Doubts  June 5, 2010 at 2:43 PM
1)How to swap two numbers suppose a=5 b=10; without using third variable?2)How to sort two strings? By using collections?3)What is the difference between comparable and comparator?4)When we go for Inheritance? And when we go for Interface?5)What is difference between Abstract... View Questions/Answers

jsp excel code  June 5, 2010 at 1:37 AM
hi how to store html form data into excel sheet by using jsp?and repeat this process continuously for entire sheet? ... View Questions/Answers

string  June 4, 2010 at 7:45 PM
1)how to reverse a string without using methods in stringbuffer?2) how to retrieve username when u entered a mail id? ... View Questions/Answers

java  June 4, 2010 at 6:25 PM
how can i add items to combobox at runtime from jdbc ... View Questions/Answers

hep me  June 4, 2010 at 5:40 PM
Write a program that merges two ordered linked list of integers into one ordered linked list of integers. Method merge should receive references to each of the lists and return a reference to the merged list ... View Questions/Answers

struts1.2,EJB3.0 and Hibernate3 integration example application  June 4, 2010 at 4:46 PM
Hi all..I dont know how to develop an application by integrating struts1.2, EJB3.0 and Hibernate3.please provide me an example with source code.(complete application with structure)....please provide me as early as possible......thanku all.................................. View Questions/Answers

JDK 1.5  June 4, 2010 at 3:00 PM
HI.....this is anand frm bangalore....i was going through JDK 1.5 static imports and i am stuck upon one thing...Q. using imports can we import non static class members from another class...suppose in class A we have both static n non static members nusing ... View Questions/Answers

jsp code for dynamic time table generation  June 4, 2010 at 2:02 PM
hi I am doing my academic project college automation.I want to generate time table dynamically for each btech and mca,mba branches.Pls provide a solution how to process this requirement.pls... ... View Questions/Answers

how to upload a file  June 4, 2010 at 12:09 PM
Dear sir, Give me some code for uploading a file ...also related jar files related if their....please help me ...ThanksHarini ... View Questions/Answers

Display an textbox when user Clicks checbox in struts Tags  June 4, 2010 at 11:59 AM
Hi Friend. I need an code for to Display text box when the user clicks checkbox in struts.Pls hekp me..Note:<s:checkbox>,<s/textfield>... using this kind of tags alone..Thanks in Advance. ... View Questions/Answers

string  June 3, 2010 at 3:32 PM
How can we find out the repeated characters in a particular string taken from the keyboard? ... View Questions/Answers

jsp  June 3, 2010 at 1:21 PM
wat is Struts ... View Questions/Answers

xml in java  June 3, 2010 at 12:01 PM
how to create a database in xml and then display its content in html table? ... View Questions/Answers

ChartFrame in Jfreechart  June 3, 2010 at 10:39 AM
Dear roseindia team, I am Ragavendran.R.. I am under the project where i need to develop some charting application.. I am developing line chart in JSP and the code is:<%@page import="java.io.*"%><%@page import="java.sql.*"%>&l... View Questions/Answers

java  June 3, 2010 at 8:02 AM
hi sir/mam i'm Gomathi...... what is called interface? it has any definition? ... View Questions/Answers

java  June 2, 2010 at 11:38 PM
Given:int a = 5;int b = 2;Question: Swop the values of this variables without declaring the 3rd variable; ... View Questions/Answers

java  June 2, 2010 at 11:37 PM
Given: <BR>int a = 5;<BR>int b = 2;<BR><BR>Question: Swop the values of this variables without declaring the 3rd variable; ... View Questions/Answers

XML parsing using Java  June 2, 2010 at 11:36 PM
I'm trying to parse a big XML file in JAVA.The goal is like i will take console input from user until "Coverage" in element "MIRate"(THE XML code is below).once he enters coverage rate I need to display initial and renewal rate. Like if he enter all the attribute valu... View Questions/Answers

JSF Code  June 2, 2010 at 11:04 PM
I'm having difficulty persisting or insert web application programmed with Java Server Faces into the database?I need a code on how to create a user account and store the variables using the JSF Technology? ... View Questions/Answers

can we mark the class with abstract..with out having any mothed in tit as abstract!!!  June 2, 2010 at 8:55 PM
hi, can we wite an calls without any abstract methods in it ... View Questions/Answers

how to learn xml...any suggested sited  June 2, 2010 at 8:47 PM
hi all, is there any suggested sites to learn xml quickly..how far this xml is useful in java ... View Questions/Answers

java-graph help  June 2, 2010 at 5:33 PM
sir/madamI wanted to design a shortest path Algorithm.i wanted to show the shortest path in graphical format in the way it looks in the books.I have drawn circlec and lines between the circles but am not able to print distance in between the circles.please help me with the tip.how to pri... View Questions/Answers

Sun App Server  June 2, 2010 at 3:13 PM
Dear Roseindia Team, I am Ragavendran.R.. I need to be clarified with a thing regarding J2EE1.4 Sun App server.. As everyone is aware, the web application can be executed using say http://localhost:8080/Index/index.jsp or http://142.1.0.123:8080/decorate/Beauty.jsp etc.. Is that port n... View Questions/Answers

java  June 2, 2010 at 1:35 PM
What is the basic thing we should know while using java ... View Questions/Answers

pdf image extractor  June 2, 2010 at 11:09 AM
hi deepak , can u pls tell me how to extract a text from a image in a pdf in java. for example bank stmt. i want to extract text from thet image which is in pdf.pls help me.Regards,Prashant. ... View Questions/Answers

previous values in servlet  June 2, 2010 at 10:56 AM
Hi...I've an application where there are two links link1 and link2when i clicked link1 there's a form with relevant drop down lists and text boxes...and similarly to link2...there's another form..when i filled the form of link1 and submitted it...and when i again ... View Questions/Answers

jsp excel code  June 2, 2010 at 9:34 AM
Hi how to insert form data into excel file using jsp? ... View Questions/Answers

Help needed for J2me and PHP  June 1, 2010 at 7:57 PM
Hello SirI am a degree student. I have a small CRM application using J2me and PHP. I want to do cryptography using bouncy castle and decrypt the same in php with mcrypt extension. I did try but getting gibrish value. I tried with blowfish in bouncy castle with Hex encoding but could not ... View Questions/Answers

how to send a mail  June 1, 2010 at 5:48 PM
Dear sir, I am able to send a mail.But when a receiver gets a mail ,the matter will be shown in a single line .I am sending a following matter Dear Harini , U r bonus is 2000 .RegardsHr. But when a receiver got a this mail as a ... View Questions/Answers

retriving image from database  June 1, 2010 at 5:39 PM
how to retrive image from mysql database by using servlet programming ... View Questions/Answers

link+wp-insert  June 1, 2010 at 5:12 PM
http://kettlenetics.oan9.com 442 http://theimmunesystem.org 440 http://prokuso.com 447 http://www.healthnode.org 429 http://discoverph.com 432 http://hemroid-central.com ... View Questions/Answers

installation problem  June 1, 2010 at 4:18 PM
A configuratio error occured during startup.please verify the performance field with the prompt:Tomcat JDK nameThis is error i s coming while running project in myeclipse ... View Questions/Answers

exception  June 1, 2010 at 4:16 PM
the selected server is enabled but is not configured properly.Deployment to it will not be permitted until the problem is corrected.Please navigate to the server perfomance pages and verify the field with the prompt:Tomcat JDK name ... View Questions/Answers

Exception  June 1, 2010 at 4:14 PM
An error occured while creating project in eclipse.andvalidation monitor has encountered,An internal error occured during "validation monitor" in eclipse ide ... View Questions/Answers

java + grid  June 1, 2010 at 3:45 PM
i need to give the output of the application in the form of a grid in XY-plane,the grid should have different colors for regions of different value range. ... View Questions/Answers

java + excel data +graph  June 1, 2010 at 3:41 PM
i am doin' a project in which i need to take up data from excel sheets and work upon them mathematically and finally draw a graph with the facility of drawing a trendline(in the graph)...also i need to be able to select points in the graph and draw the graph again between those points. ... View Questions/Answers

java  June 1, 2010 at 1:17 PM
diffrence between final and static keywords?legacy class means what?Difference between throw and throws? ... View Questions/Answers

java  June 1, 2010 at 1:15 PM
difference between abstract and interface?Why abstract class needed? ... View Questions/Answers

Class files for Jfreechart  June 1, 2010 at 12:29 PM
Respected Sir/Madam, I am Ragavendran.R.. I have downloaded Jfreechart 1.0.13 in my system for performing Charting application in JSP.. I have also compiled around 100 files for it.. Though, I found some of the class files are missing.. So, I request you to send the class file fo... View Questions/Answers

JSP:Passing query as parameter  June 1, 2010 at 11:56 AM
Hi Friends,I have a real tough time in finding the solution of a problem. I am here to find a real solution of my problem. Please help me solve this problem.My Problem is:I have 3 query..String qry1="select id from table1";String qry2="select ... View Questions/Answers

JSP:Passing query as parameter  June 1, 2010 at 11:54 AM
Hi Friends,I have a real tough time in finding the solution of a problem. I am here to find a real solution of my problem. Please help me solve this problem.My Problem is:I have 3 query..String qry1="select id from table1";String qry2="select ... View Questions/Answers

hibernate Excetion  June 1, 2010 at 10:10 AM
The database returned no natively generated identity valueEven i mentioned in generator class as native still am getting the same error thatHibernate: insert into login (uname, password) values (?, ?)Exception in thread "main" org.hibernate.Hiberna... View Questions/Answers

how to make a proper arrangement of a string  June 1, 2010 at 9:33 AM
Dear sir, I have a string matter that is stored in a arraylist .I amgetting that string from a arraylist and passing a argument to a sendingMail method.All things are working fine.But after sending a mail when a receiver get a message,the matter is not properly arranged they are gettin... View Questions/Answers

convert javascript var to java variable  June 1, 2010 at 8:50 AM
hi how to conver javascript var to java variable? ... View Questions/Answers

java code  May 31, 2010 at 7:49 PM
how to store the online form in database using jdbcND TO RETRIVE the that data ... View Questions/Answers

jsp code  May 31, 2010 at 7:26 PM
hi my requirement is generate dynamic drop down lists, if first drop down list is selected getting that value, based on that value the second drop down list is displayed from mysql data base table by using select statement? pls provide code how to get first selected drop down list value... View Questions/Answers

Compilation error. Hibernate code  May 31, 2010 at 12:58 PM
Exception in thread "main" java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory at org.hibernate.cfg.Configuration.<clinit>(Configuration.java:152) at com.sat.Manager.main(Manager.java:10)how to rectify that error in hibernate ... View Questions/Answers

image upload and stored in database  May 31, 2010 at 12:53 PM
How can i upload a image and store that image in a database ... View Questions/Answers

image upload and stored in database  May 31, 2010 at 12:50 PM
How can i upload a image and store that image in a database ... View Questions/Answers

image upload and stored in database  May 31, 2010 at 12:48 PM
How can i upload a image and store that image in a database ... View Questions/Answers

How to pass query as parameter?  May 29, 2010 at 11:40 PM
Hi Friends,I have a real tough time in finding the solution of a problem. I am here to find a real solution of my problem. Please help me solve this problem.My Problem is:I have 3 query..String qry1="select id from table1";String qry2="select ... View Questions/Answers

JSP  May 29, 2010 at 10:18 PM
im having the problem related to the jspdata base is:create table brand (BrandName varchar(25),Description varchar(100),Image Blob);i displayed the data from my sql to the jsp page this is the code<%@ page languag... View Questions/Answers

Unable to understand Struts  May 29, 2010 at 12:27 PM
I am studying in GNIIT from NIIT.Here in 4th sem we have stuts also but I am not able to understand it.I've made an application.That application is of book entry.I have made the application but in that application when I enter the details of book, data base becomes updated but I di... View Questions/Answers

Architecture  May 29, 2010 at 10:55 AM
Describe three tier architecture in detail? ... View Questions/Answers

java  May 29, 2010 at 10:50 AM
explain the three tier architecture in detail? ... View Questions/Answers

read excel data from jsp  May 29, 2010 at 1:13 AM
Hi how to read excel file from jsp? Excel file is created manually entered data having many sheets? and read the entire sheet and also edit with jsp?pls suggest me? ... View Questions/Answers

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

java  May 28, 2010 at 7:33 PM
how to get session object ... View Questions/Answers

Processing stored procedure in MySQL  May 28, 2010 at 4:31 PM
Dear All java with mysql developer.....i need to convert my SQL procedure to MySQL database... here is my Stored procedure in SQL....create or replace procedure INVNAMES (bno in number, inv_name1 out varchar2,inv_name2 out varchar2,inv_name3 out varchar2, inv_name4 out ... View Questions/Answers

java  May 28, 2010 at 3:48 PM
Hello deepak u said that java does not support call by reference.But java support passing of object as an argument.Which means java support call by reference.So please conform me if java does not supprt call by reference then what it is called then passing an object as an argument. ... View Questions/Answers

Installing and configuring Tomcat server  May 28, 2010 at 2:00 PM
How to install and configure Tomcat server on desktop ... View Questions/Answers

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

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

DMCA.com