Home Answers Questions Question and Answers


Latest Programming Questions askedAsk your question?

java  June 9, 2010 at 12:58 PM
Hi,how to create a drop down menu and it is automatically inserted into the database. ... View Questions/Answers

get the servlet feature  June 9, 2010 at 12:14 PM
when the servlet get servlet feature? ... View Questions/Answers

servlet as final  June 9, 2010 at 12:08 PM
whether we can declare final for a servlet or not? and give the reason ... View Questions/Answers


Servlet - JSP Programming  June 9, 2010 at 11:17 AM
Hi,I'm writing a jsp page as shown below. I have to buttons of type submit. Any time only one is selected(either add to cart or checkout). I'm programming in a servlet getting the input parameters. But when i try the command request.getparameter to know which submit button is clicked, I'... View Questions/Answers

How to get a values  June 9, 2010 at 10:43 AM
Dear sir, I have a one form with a multipart/form-data as follows<form action="../jsp/newMESWithUpload.jsp" method="post" name="upform" enctype="multipart/form-data"><table align="center" width="100%"><... View Questions/Answers

Charting  June 9, 2010 at 10:13 AM
Hi, This is Ragavendran.R.. I found that the drill down charts can be achieved through "CustomURLGenerator" in Jfreechart.. Can u provide me an example program for creating drill down for pie chart?Its very Urgent..Regards,ragav..... ... View Questions/Answers

java  June 9, 2010 at 8:42 AM
Question-Write a recursive function in java to findsum of n terms of the following series :1+1/2 + 1/3 + 1/4 +................ ... View Questions/Answers

java  June 9, 2010 at 8:39 AM
Ques-Give the output of the following code :class numeric {static int fact (int n){int p=1;int i=n;while (i >=2){i--;p=p*i;)refurn p;}public static void main (String args []){int X=4;System.out.println... View Questions/Answers

java  June 9, 2010 at 8:29 AM
int a=3, b=6;int c=a&bint d=a^bint e=(~a&b)|(a&~b)calculate & print the values of c, d & e. ... View Questions/Answers

ASP.NET  June 9, 2010 at 8:06 AM
Please tell me how to use ad rotator in ASP.Net send me Examples ... View Questions/Answers

displaying data based on criteria from 2 tables having same type of data  June 8, 2010 at 3:37 PM
Dear Experts,First, thanks for replying my question regarding my servlet.My mind was very confused then. I realise that I can't use a servlet to process search criteria without having a form.I have recently read up about DAO pattern and I think it might be able t... View Questions/Answers

java exception handling  June 8, 2010 at 1:11 PM
hi to all , this afsar i have one doubt.please clarify it. while handling exception write try catch and finally blocks. the scenario is P v S main(---) throws exception{ try{ ------- ------- ) catch(exception e){} finally{ ---... View Questions/Answers

how to declare a auto increment in sql  June 8, 2010 at 12:40 PM
Dear sir, How to declare a auto increment insql? i used a identity but it is nt working in sql,so please helpme sir..Thanks and RegardsHarini Veerapur ... View Questions/Answers

Sequence generator problem  June 8, 2010 at 11:27 AM
Dear sir, I have created one table by name massemailsendingdetails.CREATE TABLE MASSEMAILDETAILS(ID NUMBER,SUBJECT VARCHAR2(20),MATTER ... View Questions/Answers

styling jsp  June 8, 2010 at 11:23 AM
Hi,I need to style my jsp file, to have a header,footer and left margin and rest goes my body. And I'm going to include a different jsp for each of those(header,footer and left margin). I'm doing this for header and footer by calling like this<%@ include file="header.... View Questions/Answers

Charting  June 8, 2010 at 10:06 AM
Hi, This is Ragavendran.R.. I have used jfreechart and i am able to get the data from the database, But now i am looking for drill down charts to be applied in my application.. For example, if i click on pie chart part it will open some bar chart.. Can any one please provide a sample ho... View Questions/Answers

project  June 8, 2010 at 10:02 AM
code for front-end of any JDBC compatible database ... View Questions/Answers

java  June 8, 2010 at 6:49 AM
what is querystring? ... View Questions/Answers

java code  June 7, 2010 at 6:26 PM
hi i have made an application in which i have a fuctionality. in which i get the location of xml files as links on jsp page and when they are clicked .they opn in xml format..it works fine when i run the server with eclipse...but when i run server manually and deploy it in the tomcat work directly..... View Questions/Answers

Java  June 7, 2010 at 6:25 PM
1.Write a Java program to read a file that contains DNA sequences of arbitrary lengthone per line (note that each DNA sequence is just a String). Your program shouldsort the sequences in descending order with respect to the number of 'TATA'subsequences present. Finally write the se... View Questions/Answers

How to write javascripts  June 7, 2010 at 5:22 PM
Dear sir, I got u r code ,thanks for posting me ,but i have a problem.In a table if no of rows are present then its works fine,when their is only a single row then if i select that row for to do some operation den a alert message is showing that "You must select a radio button&quo... View Questions/Answers

How to write javascripts  June 7, 2010 at 2:59 PM
Dear sir, How to write a java scripts? I have a one table in that i have a radio button and soon..And also i have a submit button.If i didnt select any radio button and click on a submit button i have to get a one popup message...else if i select a any one row and submitted it has to p... View Questions/Answers

Java files  June 7, 2010 at 7:13 AM
i want to get an example on how to develop a Java OO application which reads, analyses, sorts, and displays student project marks. In particular, the application should do the following:1. Load a list of student mark records from a plain-text file in Comma-separated-value (CSV) format. ... View Questions/Answers

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

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:<[email protected] import="java.io.*"%><[email protected] 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 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