Home Answers Questions Question and Answers


Latest Programming Questions askedAsk your question?

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.<[email protected] contentType="text/html" pageEncoding="windows-1252"%><[email protected] 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

java code  March 8, 2010 at 11:17 PM
This program generates a list of repeat permutation result. For example, ifgiven a string "abc", the program prints all the possible permutations like:aaaaabaacabaabbabcacaacbaccbaababbac....tot... View Questions/Answers

Java Program  March 8, 2010 at 10:05 PM
Write a Program that display JFileChooser that open a JPG Image and After Loading it Saves that Image using JFileChooser ... View Questions/Answers

threads  March 8, 2010 at 9:29 PM
how one thread will know that another thread is being processing ... View Questions/Answers

java code  March 8, 2010 at 9:27 PM
write a program for immutable class ... View Questions/Answers

Java Code  March 8, 2010 at 7:20 PM
Write a Program using Swings to Display JFileChooser that Display the Naem of Selected File and Also opens that File ... View Questions/Answers

java  March 8, 2010 at 5:45 PM
why we use classpath.? ... View Questions/Answers

swings  March 8, 2010 at 4:24 PM
i want to display a background pattern in mappannel, which we can change the color . i dont have background patterns too.how can i get the background patterns, is there any inbuilt background patterns in java and how can i display it in a shape(polygon).. ... View Questions/Answers

java programming  March 8, 2010 at 4:01 PM
asking for the java code for solving mathematical equation with two unknown .thnx ahead.. ... View Questions/Answers

swings  March 8, 2010 at 3:35 PM
I know how to add an image in a Panel with Netbeans but I want to add a background pattern with Netbeans in a Panel - you just have to provide the pattern and the background is filled with it whatever the dimensions of the Panel. ... View Questions/Answers

java run time error  March 8, 2010 at 3:23 PM
when i compile my program it didnt show any error in my program.but i cant run my program, if i run my program means it will show error like as followingException in thread "main" java.lang.ArrayIndexOutOfBoundsException: 0 at Armstrong.main(Armstrong.java:22)Java ... View Questions/Answers

swings  March 8, 2010 at 2:56 PM
how to add different patterns in java ... View Questions/Answers

Tree Grid using JSF  March 8, 2010 at 2:40 PM
Hi All,I am using Trinidad TLD for JSF.I have implemented simple table, but having problem with Tree grid using same.I have read all document on Trinidad site for Tree grid, but they didn't mention about how we can fill data in tree grid by using Backing Bean.Next I dow... View Questions/Answers

swings  March 8, 2010 at 2:33 PM
hii am using jcolorchooser in my application, in that there are no patterns and it have swatches,hsb,rgb options, just i want to add some different style patterns for back ground appearence. If any inbuilt patterns are there in java please send me the information........... ... View Questions/Answers

jsp code problem  March 8, 2010 at 12:35 PM
hi, I am going to execute the following code which has been given your jsp tutorial.retrive_image.jsp:<%@ page import="java.sql.*" %><%@ page import="java.io.*" %><% // declare a connection by using Connection interface... View Questions/Answers

Travelling Sales MAn Using GA  March 8, 2010 at 11:50 AM
travelling sales man problem using gafirst i have randomly select few cities which will be called population sizeex 10 cities are there then all the possible combination will be 10!,that will be too time consumin so let say 4 wii be population sizeafet that 1 selection: i had... View Questions/Answers

dbms  March 8, 2010 at 11:20 AM
what is the process of creating new user in sql?tell me the process... ... View Questions/Answers

java beginners  March 8, 2010 at 10:10 AM
thanks for the suggestion so I am sending the patteren in place of dots i want blank spaceaaaaaaaaaaaaaaaa a............a a........a a.....a a...a athanks regards ... View Questions/Answers

caading  March 8, 2010 at 5:22 AM
how i create a soft ware wit Java code. can u please give me an example. ... View Questions/Answers

Java interval problem  March 8, 2010 at 2:26 AM
I want to create a problem that finds the common interval of some periods of hours.For example if i have the time period: 10.00-12.00 and i have the time period: 11.00-13.00, i want to find the common interval of these two (which in the example is 11.00-12.00).Which is the best way to do... View Questions/Answers

C program  March 7, 2010 at 7:54 PM
Thanks!!!!!!!!!!Please reply me some programs for DATA STRUCTURES (LINKED LISTS,ETC) ... View Questions/Answers

jsp  March 7, 2010 at 6:27 PM
hi.. how to check the employee status in an organisation using the login and logout concepts in jsp. ... View Questions/Answers

jsp  March 7, 2010 at 6:24 PM
hi.. get me the coding for logout in session while login. ... View Questions/Answers

java  March 7, 2010 at 3:05 PM
I have one xls sheet. i want to read this xls sheet in java and print this o/p.i have one xls sheet.and i downloaded jxl jar file. how to compile the Java program and how to set class path to run this java file. and where i put this jxl jar file and how to set cla... View Questions/Answers