Home Answers Questions Question and Answers


Latest Programming Questions askedAsk your question?

saritha project  June 16, 2010 at 12:12 PM
HTTP Status 404 - /OnlineRecruit--------------------------------------------------------------------------------type Status reportmessage /OnlineRecruitdescription The requested resource (/OnlineRecruit) is not available.-------------... View Questions/Answers

saritha project  June 16, 2010 at 12:10 PM
HTTP Status 404 - /OnlineRecruit--------------------------------------------------------------------------------type Status reportmessage /OnlineRecruitdescription The requested resource (/OnlineRecruit) is not available.-------------... View Questions/Answers

i have split a string by space ,done some operation and now how to properly order them for sending a mail in java or jsp  June 16, 2010 at 11:20 AM
Dear sir, I have a text area in that i typed a some matter this is in one jsp .Then i got that matter in another jsp and stored in a string using getParameter(),then i splitted a string by space and collected some special charactor in that and done some operation on that and stored tha... View Questions/Answers


Java Script  June 16, 2010 at 12:52 AM
hi,im having a problem in updating the cart. below is the code for that.what i want is i need to enter the how much quantity by entering in the textbox and when i click on the update cart i need to display the total amout (i.e multiply the quantity with the amount) at the palce of lable.... View Questions/Answers

Java cryptography  June 15, 2010 at 9:12 PM
Hello,I am trying to encrypt/decrypt pdf, image file. but no luck.Can you help me in this regard.- m ... View Questions/Answers

java  June 15, 2010 at 5:47 PM
How to read the values of XMLStreamConstants.CDATA in simple java ... View Questions/Answers

jdbc & sql related project  June 15, 2010 at 2:59 PM
code using jdbc,odbc,swing,MySql classes to create front-end of any jdbc that allows the user to select any database from a list and execute any sql query related to the selected database e.g if a student database is selected by the user from the list then he should be able to execute any query rel... View Questions/Answers

jsp code  June 15, 2010 at 12:06 PM
hii am doing project work i am generating time table for this i have taken formcourseyear textboxsemistername textboxno of periods per day textboxno of classes per subject in a week textboxno of lab subjects textboxno of theory subjects textboxduration... View Questions/Answers

java program  June 15, 2010 at 10:23 AM
FLAMES PROGRAM ... View Questions/Answers

servlet  June 15, 2010 at 8:28 AM
create a project which displays the login page and page need to accept the username and password and validate whether the user is available or not project?for this create a html program which displays the static content and write a servlet program to validate the user. ... View Questions/Answers

servlet  June 15, 2010 at 8:22 AM
In the employee project we need to create a form which takes employee number,name, address, designation from the user and we need to store the data on to data base? ... View Questions/Answers

java programs  June 14, 2010 at 6:55 PM
I am trying to write a program that prompts the user to enter the month and year and displays the number of days in the month. Need help ... View Questions/Answers

Exception  June 14, 2010 at 6:40 PM
Hi team, This is Ragavendran.R. I am getting java.lang.StringIndexOutOfBoundsException: String out of range : 6 error while compiling the following program in JSP charting application:<html><body><%@ page contentType="image/jpeg; charset=UTF-8... View Questions/Answers

Uses of abstract class & interface  June 14, 2010 at 4:21 PM
Dear sir, I'm new to java. I knew the basic concepts of interface and the abstract class. But i dont know where can i use them. Still i'm struggling with this concepts. Please clear my doubtThank you ... View Questions/Answers

what is difference between jdk1.5 and jdk1.6  June 14, 2010 at 3:04 PM
what is difference between the jdk1.5 and jdk1.6 in java ... View Questions/Answers

htmlcode problem  June 14, 2010 at 12:44 PM
If I press html button at that time one textbox is displayed, it is done only for 4 times otherwise it will be ristricted to display textboxpls send me code for this Thank you for this help ... View Questions/Answers

htmlcode problem  June 14, 2010 at 11:28 AM
My Question : If I want to Create one button in html,then pressed that button one textbox is displayed dynamically .what is the code for this.Is it possible in html.pls send answer anyone as son as possibleThank you ... View Questions/Answers

java code  June 13, 2010 at 11:48 PM
can u please post java code for zoom in and zoom out an bufferedImage class image ? ... View Questions/Answers

JSP  June 13, 2010 at 3:45 PM
thanks for ur post it is working welland i need one more thing that by clicking the edit pic we need to access the data display the data in the text boxes of html page then modify the data then when i click the edit then it should be update in the data base ... View Questions/Answers

Java Problem  June 13, 2010 at 10:49 AM
How to run a Simple JSP program ? what steps are necessary ... View Questions/Answers

java  June 13, 2010 at 2:08 AM
can u please provide me the source code for image processing operations like loading an image, blurring, grey scale conversion, increase and decrease brightness nad contrast,negative of an image, flip, mirror effect,rotation, cropping ,scaling,edge detectin and zoom in ,zoom out operations. ... View Questions/Answers

Java_Weblogic  June 12, 2010 at 9:46 PM
How to run as service bea weblogic server on unix mode ... View Questions/Answers

using class and methods  June 12, 2010 at 2:48 PM
Sir,Plz help me to write this below pgm. here is the question:Assume a table for annual examination results for 10 students. write a program to read the data and determine the following:a) Total marks obtained by each studentsb) The highest marks in each subject and rol... View Questions/Answers

JSP Text Box properties.  June 12, 2010 at 2:26 AM
How do I restrict a text box created in JSP page only for numbers..example: I have a function something like this in actionscriptUserID_txt.restrict = "0-9abc^[email protected]#$%^&*()+_-'.,";Do i have any such in JSP. please let me know how to do it.. ... View Questions/Answers

Exception  June 11, 2010 at 3:31 PM
Hi, I am Ragavendran.R.. Regarding to the IllegalStateException: getOutPutStream() has already called for this response... Here is the code: <html><body><%@ page contentType="image/jpeg" import="com.sun.image.codec.jpeg.*,swiftc... View Questions/Answers

Exception  June 11, 2010 at 3:11 PM
Hi, I am Ragavendran.R.. I am using swiftchart for my chart application.. For this purpose, I am using ServletOutputStream sos=response.getOutputStream(); in my JSP Page.But, I am getting IllegalStateException: getOutputStream() has already called for this respo... View Questions/Answers

java  June 11, 2010 at 2:50 PM
How to send out an email using simple java ... View Questions/Answers

coding  June 11, 2010 at 12:49 PM
i need to start coding but i don't know how to start it so plz help me ... View Questions/Answers

coding  June 11, 2010 at 12:47 PM
i need start coding but don't have any idea to start plz help me ... View Questions/Answers

Servlet - JSP  June 11, 2010 at 12:31 PM
i used arraylist in servlet as shownArrayList <Integer> total = new ArrayList <Integer>();...total.add(k[i]);session.setAttribute("efg",total);when I code this like in my jsp<%ArrayList<Integer> data= new ArrayList&... View Questions/Answers

ArrayList  June 11, 2010 at 12:25 PM
i used arraylist in servlet as shownArrayList <Integer> total = new ArrayList <Integer>();...total.add(k[i]);session.setAttribute("efg",total);when I code this like in my jsp<%ArrayList<Integer> data= new ArrayList&... View Questions/Answers

Java  June 11, 2010 at 12:10 PM
How to export data from database to excel sheet using simple java ... View Questions/Answers

Recursion  June 11, 2010 at 10:05 AM
Create a method called, rangeMult, that uses recursion to multiply a range of array elements. The method takes the following arguments: an int array that contains the range of elements to be multiplied, an int specifying the starting element of the range, and an int specifying the ending element of ... View Questions/Answers

Exceptions  June 11, 2010 at 10:00 AM
Write a program that prompts the user to enter a series of integers from the command line (-1 to stop). Use Java's Exception handling to ignore invalid input.Thank You ... View Questions/Answers

Inheritance  June 11, 2010 at 9:58 AM
class StdOps { //method: fileRead(String s) //purpose: opens up file s and reads (output to the screen)- one int per line //void fileRead(String s) {System.out.println("fileRead reached");} //method: filewrite(String s, int[] a) //p... View Questions/Answers

Interface  June 11, 2010 at 9:49 AM
Assignment: You are given the following interface: interface Stats { double getAverage(); //returns the average of scores in grades.txt int getHighest(); //returns the highest score in grades.txt int getLowest(); //returns the lowest score in gra... View Questions/Answers

Servlet - JSP  June 11, 2010 at 8:06 AM
Here is my complete code. all my code is running with out any error. the for loop in servlet is running as many times as my checkboxes were checked.the number and price were being read correct. But my total array list is not working fine. its not returning the product when i try printing in th... View Questions/Answers

Printing ArrayList  June 11, 2010 at 6:03 AM
I have a code in servlet like thisArrayList <Integer> total = new ArrayList <Integer>();session.setAttribute("efg",total);RequestDispatcher rd;rd = request.getRequestDispatcher("/checkout.jsp");rd.forward(request,respon... View Questions/Answers

Servlet-JSP population  June 11, 2010 at 5:50 AM
In refernce to this Questionhttp://www.roseindia.net/answers/viewanswers/9843.htmlI reduced my servlet code and JSP code as shown below. I have one problem. If I check all the items i'm displaying in my jsp page my code is working fine. If I dont check any of the item in my table i... View Questions/Answers

Servlet-JSP population  June 11, 2010 at 4:00 AM
Hi,this is regarding my previous questionhttp://www.roseindia.net/answers/viewanswers/9839.htmlActually my aim is to take the number of items of checked values and multiply with the price and display in the next page.I changed my servlet code something like ... View Questions/Answers

dynamic multiplecheckbox values insertion  June 11, 2010 at 1:17 AM
hiHow to insert dynamically generated checkbox values to store in mysql data base using jsp? ... View Questions/Answers

java compilation error  June 10, 2010 at 2:01 PM
hi, i have made an registration page whosevalues should be inserted into database. i have used hibernate and eclipse it is working fine. but when i make a war file and deploy it using ant and then run it it gives me exception saying that configure url cannot find and null ponter exception. actually ... View Questions/Answers

ArrayList from JSP to Servlet  June 10, 2010 at 1:19 PM
Hi,I have an arraylist declared in a scriplet in a jsp page. how can i access the arraylist in a servlet which it redirects.it something looks like this<% Arraylist<String> am = new Arraylist<String>(); Arraylist&... View Questions/Answers

Servlet-JSP population  June 10, 2010 at 12:31 PM
Hi,I got my code worked. now I have another task. My jsp page on submit gets redirected to another servlet update cart. if I give my checkbox names as Box1,Box2... how should I check if something is checked or not. I know I need to use some thing like String item = request.getParameter(&... View Questions/Answers

Servlet-JSP population  June 10, 2010 at 11:56 AM
HiI have a login page which accepts inputs and take to a servlet, servlet makes a jdbc connection to oracle server to validate the login and password. I have got all this right. once he gets logged in I redirect to a JSP page which populates a list of items available at that time i... View Questions/Answers

Java code for conversion between .xls and .xlsx or vice versa  June 10, 2010 at 11:41 AM
I've some problems in my Project. I'm working on a web based application which is developed using Servlets and JSP.My project allows clients to Upload / Download MS Excel sheets. The problem is I'm using MS Excel 2003 (.xls format) and clients may be using MS Excel 2007 / 2010 (.x... View Questions/Answers

jdbc front end  June 10, 2010 at 11:09 AM
a code written using JDBC,ODBC,SQL and swing only that allows the user to select the required driver related to a specific database that can execute the SQL queries related to that database. ... View Questions/Answers

Jfreechart setting Legends  June 10, 2010 at 11:00 AM
Hi...i am using JfreeChart in my web app. for creating charts.I am trying to make the legends as vertical in Stacked bar chart. Does anybody know How to set the legends in any graph as vertical...????please reply me if you know it...thanks in advance..... ... View Questions/Answers

JSP output in Console  June 10, 2010 at 10:53 AM
Q:An input text should be read and the same should be printed in the CONSOLE.Actually i was able to do it in the browser, but unable to get in the CONSOLE.Can anyone tell me how could i do that ? ... View Questions/Answers

How to implement session variables  June 9, 2010 at 11:23 PM
Hi,I have a servlet which gets parameter from a jsp page(x). it is stored in a variable in servlet as shown below. the servlet response is another jsp page(y). I should put the value of amp_num in the Jsp page (y).How should i do it? I'm trying using session.getAttributeSERVL... View Questions/Answers

Java code for converting between .xls to .xlsx and vice versa  June 9, 2010 at 5:02 PM
I've a web application which allows clients to upload or download MS Excel sheets. I need a solution in Java from which i can upload in MS Excel 2003 and download in MS Excel 2007/2010 or vice versa. ... View Questions/Answers

Variables in a Servlet  June 9, 2010 at 2:20 PM
Hi,I'm using some variables in a servlet1(which i get from a jsp, like "String x = request.getParameter("xyz");"). the servlet response is a jsp page which after taking some more parameters gets redirected to another servlet2. I want to use same vari... View Questions/Answers

How to set the pdfptable as pdf page header when generating the pdf from jsp page.  June 9, 2010 at 1:34 PM
how to set the pdfptable column headers as a header of the documet.i need to display the column headers for every pdf page if pdf documt is 20 more page.for exampleDocument document =null;document = new Document(PageSize.A4.rotate(), 0, 0, 20, 20);PdfPTable table=... View Questions/Answers

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:<%@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

Tutorial Topics
Questions by Category