Home Answers Questions Question and Answers


Latest Programming Questions askedAsk your question?

Servlets  March 18, 2010 at 11:28 AM
Hello Sir, can you give me an example of a serve let program which connects to Microsoft sql server and retrieves data from it and display it on the browser.just provide me connection string ..and there is a problem with connection string in oracle 8 can you tell me the url... View Questions/Answers

what is diference between the vector and arraylist with realtime example  March 18, 2010 at 9:56 AM
what is diference between the vector and arraylist with realtime example ... View Questions/Answers

Java Objects  March 18, 2010 at 1:53 AM
Hi I have the following question, What method in Java is used to destroy your objects.Thanks in advance ... View Questions/Answers


hi  March 18, 2010 at 12:39 AM
hi sir, i want to create a jtable(with check boxes) by using vector(i am add a columnames and data by using vector) and i want to add a check box for every row in jtable.and when i am selected a check box in that row i want to get the values of that row into another t... View Questions/Answers

Java swing in NetBeans  March 17, 2010 at 11:46 PM
thanks a lot sir for everything you answered for my last questions now sir i just have another 3 questions that isQ 1.i will specify a swing code for JTable using NETBEANS so would you tell me is it correct code for JTable and is there other way of specifying it.c... View Questions/Answers

java swing  March 17, 2010 at 9:02 PM
how i can insert multiple cive me exampleolumn and row in one JList in swing?plz g ... View Questions/Answers

pagination in php  March 17, 2010 at 8:20 PM
i want to fetch my data base in view page...i hav done pagination...i don't want the order....like...1234...lasti want the order in...1 2 3 4 56 7 8 9 10... View Questions/Answers

Hello Friend, I want INTERACTIVE TRANSMISSION OF JPEG2000 IMAGES USING WEB using jsp .. Can you help me? ... View Questions/Answers

Eclipse instalation error  March 17, 2010 at 5:40 PM
hi,I have down loaded latest eclipse (eclipse-jee-galileo-SR2-win32.zip). while double clicking on eclipse.exe its is giving an error. I am operating this on windows xp sp3 and i'm using jre and set the environmental for JAVA_HOME AND PATH.is there any thing else in environmental variabl... View Questions/Answers

swing program plz urgent sir  March 17, 2010 at 5:31 PM
hi sir,i waan a jtable swings program table having column names "itemid","price".Initially table having single empty row.whenever we click the "enter" button automatically new row will be insert into Jtable and itemid value is manually entered by user and price ... View Questions/Answers

create, edit ,open simple documents using java  March 17, 2010 at 3:24 PM
In my program I have a text area.How to create document which will contain text in text area with font style like bold,italic etc. and with font size of text in text area? Then how to transfer text in that document back to text area? Please ... View Questions/Answers

spring  March 17, 2010 at 3:24 PM
hi,I need sample example user update profile using spring with hibernate and spring jsp.I need the sample code very urgently.Please send it to me.Thanks,Valarmathi ... View Questions/Answers

Java Programming using Netbeans  March 17, 2010 at 1:58 PM
Hello Dear sir,i got one scenario where i have to pick the data of the student like id , name , class , age & address using netbeans jframe then i have to store these data into my package so that i can edit it as well as delete some data.. ... View Questions/Answers

JAVA CORE  March 17, 2010 at 12:44 PM
what is the library function to take input from parallel port of laptop in JAVA????? ... View Questions/Answers

Session timeout message need to be displayed  March 17, 2010 at 12:42 AM
Hi, I want to display a session timeout on website. i want to find session - remaining time set in web.xml.ThanksManu ... View Questions/Answers

Event Handling  March 17, 2010 at 12:02 AM
import javax.swing.*;import java.awt.*;import java.awt.event.*;public class Calculator extends JFrame{ JLabel lblNumber=new JLabel("Number"); JLabel lblSquareRoot=new JLabel("Square Root"); JLabel lblCubicRoot=new ... View Questions/Answers

java swing  March 16, 2010 at 8:03 PM
how to add image in JPanel in Swing? ... View Questions/Answers

Servlets vs JSP  March 16, 2010 at 6:06 PM
What is the main difference between Servlets and JSP? ... View Questions/Answers

Lucene Search in JSP  March 16, 2010 at 12:26 PM
Hello Sir,I want to Develop lucene - Search engine in Jsp page which can Search full text from XML file..through XML parser..Example:in Search interface there are one textbox after putting some value press search button and it will search over xml file.. from (tag,values...)<... View Questions/Answers

sir  March 16, 2010 at 7:41 AM
when i press enter in my jtable,i want to add a row to my jtable and the database records are placed in that added row, plz provide the program in swings,how to add and place the results in added row ThanQ ... View Questions/Answers

sir  March 16, 2010 at 7:38 AM
hi sir,Happy ugadi,how to place the database records into jtable ,i am using the oracle database plz provide the program how to retrieve the database records and placed into a jtable,i want one more column is added to my jtable,that column contains check boxes plz provide program how to add checkb... View Questions/Answers

Jsp  March 16, 2010 at 2:33 AM
PlaceAd.jsp<%@page import="java.sql.*"%><%@page import="java.io.*"%><%@page import="java.lang.*"%><%Connection con=null;Statement stmt=null;int Num=0;try{Class.forName("sun.jdbc.odbc.J... View Questions/Answers

JSP  March 16, 2010 at 2:25 AM
Registers.jsp<%@ page language="java" import="java.io.*,java.lang.*,java.sql.*,java.util.*,java.text.*,java.text.SimpleDateFormat" %><% Connection con=null; ResultSet rs=null; Statement stmt=null; int Urid=0;<... View Questions/Answers

JSP  March 16, 2010 at 2:18 AM
PlaceOrd.jsp<%@ page language="java" import="java.io.*,java.lang.* ,java.sql.*,java.util.*,java.text.*,java.text.SimpleDateFormat" %><% Connection con=null; //ResultSet rs=null; Statement stmt=null; int No=0;i... View Questions/Answers

Entity relationship model  March 15, 2010 at 9:39 PM
For each of the projects, do the following: a. Draw an ER diagram. Make sure each entity type has at least one key attribute. Document any assumptions you make. Avoid diagrams with a single entity. b. For each attribute, determine its domain of values, whether null is an acceptable val... View Questions/Answers

flex didn't know how to drag and drop video and audio in flip book  March 15, 2010 at 7:57 PM
hello sir in my project in flex flip book it is book which can be flip.our target to add the video audio and photo in this book i am able to add the photo in this book but i didn't able to add video and audio so pls help me for my project it is very urgent. ... View Questions/Answers

Sending query with variable  March 15, 2010 at 3:54 PM
While displaying pages in frames concept, one page contains links and other page contains messages for that links. The links page is not static one. Links page displays the contents from database and query should have a variable at the end. While using this variable we have to use... View Questions/Answers

JFileChooser  March 15, 2010 at 3:09 PM
How to create a GUI application that allows a user to select a text file (using the JFileChooser). The program will then count the number of words in the selected file and display the result containing the name of the file, its size (in bytes) and the number of word it contains. (Hint: Y... View Questions/Answers

GUI and how to convert a distance  March 15, 2010 at 3:07 PM
i need help..how to create a GUI application that can be is used to convert a distance unit in miles into its corresponding units in kilometer, meter, inches and centimeter. When a user enters a mile value in a text field and followed by pressing a button, its equivalent values in unit of kil... View Questions/Answers

websphere message broker  March 15, 2010 at 1:46 PM
how can i find the heapsize of the execution group in the message broker using command console syntax ... View Questions/Answers

jstl  March 15, 2010 at 11:00 AM
hi,I need sample code for auto increment the serial number fro mthe table using jstl.Please send the sample code urgently needed.Thanks,Valarmathi ... View Questions/Answers

validating  March 14, 2010 at 11:36 PM
hi another problem i am facing in swing is that is i have got many textfeildsex:Roll No:Name:Address:so Roll No TextField have to Contains only Numbers.Name TextFields have to contain only Alphabets no special or numbers;soplz help m... View Questions/Answers

validating text fields  March 14, 2010 at 11:30 PM
hi i am using NETBEANS IDE so when i want to validate TEXTFEILDS if one textfield is blank then it should focus on that particular textfield so help me with this plz...../* * To change this template, choose Tools | Templates * and open the template in the editor. */... View Questions/Answers

path setting  March 14, 2010 at 9:23 PM
Hello friends, I download file uploading coding from the following url:http://www.roseindia.net/jsp/file_upload/Sinle_upload.xhtml.shtml. And i changed the file saving path into a different folder. While setting this path i need to give the full path from drive name, ... View Questions/Answers

plz answer  March 14, 2010 at 8:50 PM
Write a Binary Search program that searches an array of ordered data. Compose an ordered array of 500 integers that contains the following series of numbers and run the search on it:1, 2, 3, 5, 8, 13, 21, 34, 55, 89, ... ... View Questions/Answers

jsp  March 14, 2010 at 6:19 PM
hi friends how to add an information into a table dynamically which should be updated the table at back end. ... View Questions/Answers

Java code to run unix command  March 14, 2010 at 5:20 PM
Hi,I need a java code to connect to a remote unix server and run a unix command.Please help.Regards,Pratyush ... View Questions/Answers

Java JTable Question or Datagrid  March 14, 2010 at 2:38 PM
Hello Sir How I can Display data in to JTable or grid which is Stored in MS Access Databse with Add,Update,Deletetion of Records.plz Help Me ... View Questions/Answers

java netbean  March 14, 2010 at 7:32 AM
To develop an airline reservation system.The system should be able to provide the following:- Accept passenger information.- Assign an appropriate seat.- Display the boarding pass.Outcomes:1. Apply the object-oriented programming techniques of Java.... View Questions/Answers

jsp runtime error  March 13, 2010 at 10:51 PM
sir, when i am running ur prog...from this website....http://www.roseindia.net/jsp/poi/readingWriting.shtmli did the same as per guidelines...but i got error..!!!!org.apache.jasper.JasperException: Unable to compile class for JSPNote: sun.tools.javac.Main has been... View Questions/Answers

Swings Menu Bar  March 13, 2010 at 6:10 PM
Hello,I created a menu bar using Java Swings...n New Record, Edit Record etc are the menu items.Now, I want to display the appropriate fields according the menu Item selected..below it..i.e.If we selected New Record,then Desired TextFields and new butt... View Questions/Answers

session concept  March 12, 2010 at 7:45 PM
Hello friends, How can we track unexpectedly closing a window when a jsp project running with session concept. And this tracking should update the log in status in data base. Thanks. ... View Questions/Answers

jsp  March 12, 2010 at 2:43 PM
My code is not working please anyone help me to store retrieved data from database in a string variable.Data cannot be stored into a String variable.<%@page contentType="text/html" pageEncoding="windows-1252"%><%@page import="java.sql.*"... View Questions/Answers

about java swing  March 12, 2010 at 10:12 AM
How to send date in data base if i use the combobox like as dd,mm,yyyy.plz replythanx a lot ... View Questions/Answers

Multiple session problem  March 12, 2010 at 8:55 AM
I am working in a Linux based java swing application.Problem:I have optimized JDialog and JPanel for my use .A JPanel can only have one JDialog at a time.But mupltiple JPanel(on different JFrames) can be launched.While switching between JPanels I am facing issue that JDialog... View Questions/Answers

FileIO Java Compilation  March 11, 2010 at 10:07 PM
Expert:ChelseaI want to write a complete java program that catenates the file named "first" with the named "second" and produces a file named "third". If either input file "first" or "second" does not exist in the current working directory, giv... View Questions/Answers

Java class method  March 11, 2010 at 10:02 PM
I have created a method that's supposed to return a basetime value, returning a string value, the problem is that i need to have it return a basetime to use it later. How can i modify this code to have it returning the basetime value im looking for? public String plus(BaseTime that) {... View Questions/Answers

resize a panel slowly  March 11, 2010 at 9:21 PM
How to code to resize a panel slowly with netbeans ... View Questions/Answers

jsp  March 11, 2010 at 7:39 PM
hi i need coding for sending a mail using jsp with file attachment. ... View Questions/Answers

jsp  March 11, 2010 at 7:26 PM
hi friends how to get a table which contain many rows but it should be shown five by five at a time using next and previous button for example like emails in the inbox. ... View Questions/Answers

Pager taglib  March 11, 2010 at 5:51 PM
how to use pager taglib for index provide the example,jar files ... View Questions/Answers

jsp image problem  March 11, 2010 at 3:25 PM
hi everyone,How to display multiple images from mysql database to jsp page.please help me........... ... View Questions/Answers

hi  March 11, 2010 at 3:19 PM
hi sir,my table is this, SQL> desc introducer; Name Null? Type ----------------------------------------- -------- ------------------ INTRODUCERNAME NOT NULL VARCHAR2(20) PHONENO ... View Questions/Answers

java code  March 11, 2010 at 2:38 PM
there is an error like the headerfiles does not exists(poi header files)...when i compiled insertingTextInShape.java.....what should i do for including such headerfiles....plzzzz do replyyy........i downloaded poi package........what to do with this package for including such header files???????????... View Questions/Answers

convert .txt file in .csv format  March 11, 2010 at 2:37 PM
Dear all,I hope you are doing good.I am looking to convert .txt file in .csv format.The contents might have different names and values.e.g.start:id:XXXXname:abcaddress:xyzstart:age:29height:5'9start:... View Questions/Answers

Pagination  March 11, 2010 at 2:36 PM
I want to display only 10 records but my arraylist contains for example about 100 records...My jsp page should contain 10 records along with the pagination below....likeprev 1 2 3 4 5 nextI am using struts1.2 and tomcat 5.5Any help would be appre... View Questions/Answers

java http 404 status error  March 11, 2010 at 1:55 PM
I have tried to call a servlet from html page.. but it is showing http 404 status error..and the description is "The requested resource is not available".I hav tried in all ways.. Plz give me the solution..Thank you.. ... View Questions/Answers

j2ee  March 11, 2010 at 1:13 PM
hi guys can any send me the spring mvc example,thanks in advance ... View Questions/Answers

Java Compilation  March 11, 2010 at 12:37 PM
I want to write a complete java program that catenates the file named "first" with the named "second" and produces a file named "third". If either input file "first" or "second" does not exist in the current working directory, give an appropriate err... View Questions/Answers

Java Compilation  March 11, 2010 at 12:32 PM
How would i write a complete java program which, using a do-while loop, reads integers from the keyboard and sums them until the sum hits or exceeds 30. Then print out the sum.is it like this:import java.util.Scanner;public class Sum{ public static void ma... View Questions/Answers

Infix to Prefix  March 11, 2010 at 11:31 AM
Hello, I needed help on converting from an infix expression to a prefix expression using stacks. ... View Questions/Answers

JSP  March 11, 2010 at 10:24 AM
Hi,Can you please tell me how to load the values in selectbox which are stored in arraylist using struts-taglibsNote:I am neither using form nor bean...I want the arraylist values to be dispalyed in selectbox..thanks in advance ... View Questions/Answers

avoid java code in jsp  March 11, 2010 at 9:31 AM
i want to show the arrayList values in a drop down box in struts the front page is jsp ,i am using struts1.3 ,i want to avoid java code in my jsp ... View Questions/Answers

how to get the next option  March 11, 2010 at 9:27 AM
i was getting values from the database it was bulk so i want to keep the next option how to do in the jsp ... View Questions/Answers

jsp problem  March 11, 2010 at 12:24 AM
here is a code for Retrieving image from mysql database through jsp.but i cann't set size of image when it was display so what should i do??when the image retrieve from the database i want to set its size to how can and if one can set size of photo before store into database then also t... View Questions/Answers

jsp problem  March 11, 2010 at 12:10 AM
here is a code for Retrieving image from mysql database through jsp.but i cann't set size of image when it was display so what should i do??when the image retrieve from the database i want to set its size to how can and if one can set size of photo before store into database then also t... View Questions/Answers

regarding-update the Jsp page itself  March 10, 2010 at 11:09 PM
Joined: Aug 17, 2009Messages: 12 [Post New]posted Today 10:39:52 PMQuote Edit [Up]I have two Jsp pages named bestschool.jsp and schoolnames.jsp.I am calling schoolnames.jsp from bestschool.jsp.I want when I click the link on INDUS Sch... View Questions/Answers

creating a java bean application  March 10, 2010 at 8:07 PM
hi,i want to create a java bean using BDK. please tell me all the steps for creating a simple java bean application.i have also a confusion about the properties of java bean.please explain me the properties of java bean in detail with a suitable example.please help me to solv... View Questions/Answers

java and oracle  March 10, 2010 at 5:46 PM
hai i am doing a project in which i have stored some data (think as 50 records) in database. Now i want to retrive the data from the database(20 records at each time but should be different for each time)..........please help me for this.............. ... View Questions/Answers

IO File  March 10, 2010 at 5:09 PM
Write a java program which will read an input file & will produce an output file which will extract errors & warnings. It shall exclude the standard errors & warnings. The standard errors & warnings you can find out from the log file.This is the task ass... View Questions/Answers

Synchronization  March 10, 2010 at 3:43 PM
If in a class a method is synchronised then the accessing thread is going to get the object lock to the whole class or lock is given only on the synchronized method ... View Questions/Answers

Multiline graphs in java  March 10, 2010 at 3:39 PM
How to draw a multiline graph in java, One will b constant straight line and the other is changing ... View Questions/Answers

servlet code problem  March 10, 2010 at 3:11 PM
This is my JSP code index.jsp<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>Sync Data</title></head><body><h1>Sync Data</h1><... View Questions/Answers

servlet code problem  March 10, 2010 at 2:45 PM
This is my JSP code index.jsp<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>Sync Data</title></head><body><h1>Sync Data</h1><... View Questions/Answers

swings  March 10, 2010 at 2:03 PM
i created one button in jframe. i want to call a method when i am pressing the button how can i do this............. ... View Questions/Answers

Java Compilation error  March 10, 2010 at 1:55 PM
hi i m vipul chauhan , i having a problem with this package i download package from the location http://commons.apache.org/downloads/download_fileupload.cgi and i got file commons-fileupload-1.2.1-bin.zip and when i extract it i got file folder lib,site then i to into the lib folder an... View Questions/Answers

ftp  March 10, 2010 at 1:27 PM
Hello Friends, I got image upload coding from rose india at the url http://www.roseindia.net/jsp/file_upload/Sinle_upload.xhtml.shtmlMy doubt is weather it requires ftp for uploading or it sends image only in data format. Help me. Thanks. ... View Questions/Answers

Spring MyEclipse Code  March 10, 2010 at 11:47 AM
How To Configure Spring in MyEclipse ? ... View Questions/Answers

java swing  March 10, 2010 at 11:39 AM
How to set the rang validation on textfield, compare validation textfields , and also if we create a groupbutton like male female, if we want to send the selected item in database , how to send , plz help .........thanx a lot ... View Questions/Answers

Missing output from associative array  March 10, 2010 at 11:19 AM
the following foreach loop does not print all of the keys from the array, any ideas as to why?<?php $Salespeople = array( "Hiroshi Morninaga"=>57, "Judith Stein"=>44, "Jose Martinez"=>26, "... View Questions/Answers

java programming  March 10, 2010 at 11:14 AM
asking for java code, solving three unknowns in three equations..I need the thx ahed ... View Questions/Answers

swings  March 10, 2010 at 11:00 AM
i created one jframe, in that i added ok button. i want to add some images with name in that frame .By selecting the image and press ok button it will display on the jpannel, how can i do this.......... ... View Questions/Answers

Remote System OS name in JAVA  March 10, 2010 at 10:26 AM
I need to print the different os names of the all computers in my local network. I know that with System.getProperty("os.name"), I get the os name of my computer but for the other computers, I have no idea.Could you help me please ?Do you have any idea ? ... View Questions/Answers

Multi line graph  March 10, 2010 at 9:53 AM
Hi,I want a multi line graph on a single chart using jfree in java....Can you please let me know the code...thanks in advance ... View Questions/Answers

how to generate the pdf file with scroolbar from jsp age  March 10, 2010 at 9:35 AM
How to generate the pdf file with scroolbar from jsp.i am not able to see the all the columns in pdf file now .it is very urgent for me plz help ... View Questions/Answers

Struts + HTML:Button not workin  March 9, 2010 at 11:00 PM
Hi,I am new to struts. So pls bare with me if my question is fundamental.I am trying to add 2 Submit buttons in same JSP page.As a start, i want to display a message when my actionclass is called.JSP code --------<td><html:submit property=&quo... View Questions/Answers

Servlet error  March 9, 2010 at 7:22 PM
Can't we place the java files instead of class files in classes folder of our application in webapps..so that there's no need to compile the java files separately and then place the class files in classes folder..?? ... View Questions/Answers

Servlet error  March 9, 2010 at 7:03 PM
I installed Jdk and tomcat successfully and all the examples provided by the tomcat are running successfully...But i'm unable to run my own servlet program..The error i'm facing is...exceptionjavax.servlet.ServletException: Wrapper cannot find servlet class Ex1 or... View Questions/Answers

struts  March 9, 2010 at 4:46 PM
Tag libs in struts ... View Questions/Answers

Jsp  March 9, 2010 at 4:08 PM
Hi,if i declare <%!string="a"%> in declaration & same in <%string="a"%> scriptlets, then can anybody please tell me what is the difference between these two??, why should i make use of declaration tag if i can declare variable in scriptlets tag??... View Questions/Answers

swings  March 9, 2010 at 2:28 PM
i want to display a window while pressing a button, the window contains only ok,cancel buttons ... View Questions/Answers

e-mail engine pregamming  March 9, 2010 at 1:39 PM
Hi guysam a 4th year student at University of Namibia (doing computer science major and IT minor), i would love to ask anyone to tell me what should i do and what language is best to use in my 4th year project. i want to program an e-mail system for our department.. to conclude, what do ... View Questions/Answers

swings  March 9, 2010 at 10:39 AM
i want to display a texture in a particular polygon......... ... View Questions/Answers

How to use find method in Java  March 9, 2010 at 10:34 AM
Hello,I want to write a class that gets a web page, parses it, and tries to find an object with certain properties. How can I do this?I was thinking, maybe get child objects of the browser class, then somehow parse through the class's objects/sub-objects, and use find().... View Questions/Answers

Java - search/find a word in a text file  March 9, 2010 at 10:27 AM
Hello,I would like to know how to find from a list of lets say 10 but could be more, .txt files, how to search them for a word. The word will be PASS or it can be FAIL.If PASS I want to do nothing, if FAIL, I want to record in 1 master output file, the name of the file that ... View Questions/Answers

swings  March 9, 2010 at 10:14 AM
i want to display a window while pressing a button .In that window i want to add images, by selecting the image it will display on the jpannel.how can i do this........ ... View Questions/Answers

how i can add an horizontal scrollbar at my PdfAnnotation ?  March 9, 2010 at 9:47 AM
How to add the an horizontal scrollbar at my PdfAnnotation ?for exampledocument d=new document(0.document.open();...... ... View Questions/Answers

how to add the scrollbar to the pdf page when generating the pdf file from jsp  March 9, 2010 at 8:50 AM
I am not able to see all the columns when i generated the pdf file from jsp.i have 12 colums so how to add the scrollbar ? ... View Questions/Answers

Java with OOP assignment (Eclipse)  March 9, 2010 at 4:16 AM
"THREE Ts GAME"*Description*A "tic-tac-toe" game is a two player's board game where the game board is made of 3 X 3 grids. The two players, one being assigned with 'O' and the other with 'X', where each if the two players take turns marking the spaces in a... View Questions/Answers

spring  March 9, 2010 at 12:15 AM
Hi sir how compile spring application on jboss5.1.0 server how run spring application on jboss5.1.0 serverthanks ... View Questions/Answers