Home Answers Questions Question and Answers


 
 

Latest Programming Questions askedAsk your question?

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^d-zA-Z~!@#$%^&*()+_-'.,";Do i have any such in JSP. please let me know how to do it.. ... View Questions/Answers

Advertisement

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

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

DMCA.com