Home Answers Questions Question and Answers


 
 

Latest Programming Questions askedAsk your question?

what are cookies in servlets  May 7, 2012 at 1:17 PM
what are cookies ... View Questions/Answers

what is url rewriting  May 7, 2012 at 1:17 PM
what is url rewriting ... View Questions/Answers

what are the different ways we can maintain state between request  May 7, 2012 at 1:16 PM
what are the different ways we can maintain state between request ... View Questions/Answers

Advertisement

why is http protocol called as a stateless protocol  May 7, 2012 at 1:16 PM
why is http protocol called as a stateless protocol ... View Questions/Answers

what is the architecture of a servlets package  May 7, 2012 at 1:14 PM
what is the architecture of a servlets package ... View Questions/Answers

can you explain in detail javax.servlet.http package  May 7, 2012 at 1:14 PM
can you explain in detail javax.servlet.http package ... View Questions/Answers

what is diff between generic servlets and httpservlets  May 7, 2012 at 1:13 PM
what is diff between generic servlets and httpservlets ... View Questions/Answers

how do we define an application level scope for servlet  May 7, 2012 at 1:11 PM
how do we define an application level scope for servlet ... View Questions/Answers

what is the use of servlet context  May 7, 2012 at 1:10 PM
what is the use of servlet context ... View Questions/Answers

can you explain in detail javax.servlet package  May 7, 2012 at 1:10 PM
can you explain in detail javax.servlet package ... View Questions/Answers

what are the two important api in for servlet  May 7, 2012 at 1:08 PM
what are the two important api in for servlet ... View Questions/Answers

can you explain servlet life cycle  May 7, 2012 at 1:08 PM
can you explain servlet life cycle ... View Questions/Answers

what are advantages of servlets  May 7, 2012 at 1:07 PM
what are advantages of servlets ... View Questions/Answers

what is the servlets  May 7, 2012 at 1:05 PM
what is the servlets ... View Questions/Answers

how to convert jspcode into servlet code usig which method  May 7, 2012 at 12:20 PM
how to convert jspcode into servlet code usig which method plz tell me. ... View Questions/Answers

Java Program for accepting numbers from 1 - 999 and printing them in form of words  May 7, 2012 at 12:11 PM
Program for accepting numbers from 1 - 999 and printing them in form of words ... View Questions/Answers

alert for validation  May 7, 2012 at 11:58 AM
i want to put alert on the text box that enter data should be in DD/MM/YYYY format only through javascript validation. ... View Questions/Answers

Password encryption and decryption  May 7, 2012 at 11:44 AM
Hello, I'm developing a system that requires user to login to enter the system. so I wanted to store encrypted users' password in the database so that I wouldnt know their password. Is there anyway that you could teach me how to encrypt the password and store it in database? and then call back th... View Questions/Answers

java what is an interface?  May 6, 2012 at 7:16 PM
what is an interface? ... View Questions/Answers

addActionListener(this) in java applets program or in java Frames program  May 6, 2012 at 6:25 PM
use of this keyword in addActionListener(this) in java applets program or in java Frames program. ... View Questions/Answers

upload value to php server in getmethod in j2me  May 6, 2012 at 4:32 PM
Dear Team, I successfully capture image and decode that image, here i have one doubt after getting that value i means captured decoded value i want to that value in get method to php server in j2me can you give some tips for me... Thanks and Regards Alagu... ... View Questions/Answers

How to print the following output using c program  May 5, 2012 at 9:28 PM
1) 4 3 4 2 3 4 1 2 3 4 2) A B C D E F G H I J ... View Questions/Answers

java with jdbc and stored some usernames and passwords in database  May 5, 2012 at 4:53 PM
i wrote a program in html with username and password. i also wrote a program in java with jdbc and stored some usernames and passwords in database.Now basing on that i want to store the username and passwords in database using html log in page. how? reply me plz.thanks in advance ... View Questions/Answers

what is the jsp  May 5, 2012 at 4:18 PM
what is the jsp ... View Questions/Answers

How to change table row color when click on Hyper Link in jsp?  May 5, 2012 at 4:14 PM
I use 5 links: Link 1 Link 2 Link 3.. table: row1 row2 row3.. when click on the link1 automatically change the the row1 color,similarly when click on the link2 automatically change the the row2 color.... ... View Questions/Answers

Read Complex XML using DOM/SAX Parser.  May 5, 2012 at 3:54 PM
I have a XML file which is having two types of Items. I want to extract all details of a type only. My XML goes something like this <Movie> <Bollywood> <Actor> Shah Rukh Khan Amir Khan Salman Khan Hrithik Roshan <Actress> <... View Questions/Answers

html code for dynamically generating multiple fields(by add more field button) in a form and jsp code to store those values in separate rows inside a table  May 5, 2012 at 3:13 PM
i need html code for dynamically generating multiple fields(by add more field button) in a form and jsp code to store those values in separate rows inside a table.it's very urgent.plz help me... ... View Questions/Answers

problem in viewing the mail's content using javamail  May 5, 2012 at 2:04 PM
i'm using the following code to view a mail in a javamail application problem i'm facing is if there are any attachments of .txt format they are also displayed as if they are body of the mail. Secondly in some mails i'm getting the following Exception : java.lang.ClassCastExcepti... View Questions/Answers

JAR Generation  May 5, 2012 at 12:54 PM
Hi, I have done this code. Can u pls tell me how to create a jar for this in eclipse, this is only a single java file? package com.dcp.ui; import java.awt.BorderLayout; import java.awt.Color; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import j... View Questions/Answers

JAR Generation  May 5, 2012 at 12:54 PM
Hi, I have done this code. Can u pls tell me how to create a jar for this in eclipse, this is only a single java file? package com.dcp.ui; import java.awt.BorderLayout; import java.awt.Color; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import j... View Questions/Answers

How to Display jrxml file on JSP page???  May 5, 2012 at 11:07 AM
I made jrxml file using jasper report but how to display on jsp page?? i tried lot but still i didnt find out solution.so pls help me as soon as possible. Thanks & Regards Divyesh Rupawala ... View Questions/Answers

Java store username and encrypted password in database  May 5, 2012 at 11:00 AM
how to a program such that i want to store username and encrypted password in database and when i retreive from database i should get username and decrypted password. plz im waiting for ur reply. thank in advance. ... View Questions/Answers

doubt about superclass reference and subclass object  May 5, 2012 at 9:46 AM
class superclass { p.bark() } class subclass extends superclass { p.bark } {p.s.v.m() superclass refvar = new subclass(); p.bark(); } Now my questions 1.Why is necessary for parent to have a method in this case whether child have it or not? i am told that a... View Questions/Answers

Dropdown menus onchange atribute  May 5, 2012 at 9:37 AM
Can I know how do we get the drop down list from database? I want to select a type of vehicle from a drop down menu. then based on the selection, it will check with the database with that type of vehicle and populate a drop down menus displaying a list of reg no of that type of vehicle.... View Questions/Answers

Logical transformation  May 5, 2012 at 9:27 AM
hello, Trying to find a way to do this transformation in Java: N = same if number < 1000 N = 1000 if number = 0 N = number%1000 if number > 1000 I can't find an answer Please help ... View Questions/Answers

java array Two cells is a matrix will be called connected if they are adjacent on either x-axis or y-axis  May 5, 2012 at 9:14 AM
Two cells is a matrix will be called connected if they are adjacent on either x-axis or y-axis (but not diagonally) For. eg., a[0,0] will be connected to both cells a[0,1] and a[1,0]. But it will not connected to cell a[1,1] For this problem, lets say, cells denoted by integer <= 0 ... View Questions/Answers

To make toggle by default hidden  May 5, 2012 at 12:32 AM
i have done this coding in javascript. <script type="text/javascript"> $(document).ready(function(){ $("#pw1").click(function(){ $("#1").toggle(); }); }); </script> <a href='#' id="pw1">Comments</a> <p id=1></p> ... View Questions/Answers

Store a table with students and information (name, ID, password, crypted password, etc) in a multi-dimensional array "stud"  May 5, 2012 at 12:03 AM
Arrays and Strings: Store a table with students and information (name, ID, password, crypted password, etc) in a multi-dimensional array "stud". Output the stud table in form of a table. ... View Questions/Answers

C# program for grading system  May 5, 2012 at 12:02 AM
Create a C# program for the following scenario: The grading system of a college is as follows: Marks : 80 -100 display "Distinction" 70 - 80 "Very Good 60 - 70 "Good" 50 - 60 "OK" 40 - 50 "Average" Less than 40 "Poor" Ask the ... View Questions/Answers

C# registration form If user fails to enter for example User Name then the Message box should pop up with "Please Enter your User Name!!"  May 5, 2012 at 12:01 AM
Write the code for the following form based on the criteria given below: User is required to provide all the details mentioned in the following registration form If user fails to enter for example User Name then the Message box should pop up with "Please Enter your User Name!!" .It sho... View Questions/Answers

C# how to calculate discount  May 4, 2012 at 11:59 PM
We are selling Monitors. We have decided to give discounts based on the following items. i. CRT monitors attract 10% discount User is required to provide all the details mentioned in the following registration form If user fails to enter for example User Name then the Messag... View Questions/Answers

oracle data backup  May 4, 2012 at 9:19 PM
how to take oracle tables data backup and use in another system? ... View Questions/Answers

Highest average score among 25 students  May 4, 2012 at 7:40 PM
a program that prompts the user to enter grades of 25 students in a class and grade them into 4 lessons (grades should range between 10 and 20, otherwise the user is prompted to enter again the grade) calculate average per student and will calculate the highest average among students who should b... View Questions/Answers

Stumped with NOT NULL AUTO_INCREMENT  May 4, 2012 at 6:38 PM
I've almost made it through my webpage without asking questions, but this problem has me stumped. I am trying to create a new table with the ID column being NOT NULL AUTO_INCREMENT. The table will create if I do not have NOT NULL AUTO_INCREMENT, but it WILL NOT create if I add th... View Questions/Answers

Implement Java code which takes 2 dimensional integer array as input and prints out heaviest island  May 4, 2012 at 5:31 PM
Implement Java code which takes 2 dimensional integer array as input and prints out heaviest island. ... View Questions/Answers

Web programming  May 4, 2012 at 4:25 PM
Write a program in servlet by using JDBC to display the records of employees from a table called employee ... View Questions/Answers

C# Alert message  May 4, 2012 at 4:23 PM
1) Write the related code for the following Form based on the Criteria given below: a) When user will not enter Employee Name a message should be displayed stating ??Please enter Employee Name b) When user provide all the details a message should popup ??The Details have ... View Questions/Answers

Create a Solution by name Bank with Classes Account.cs, SavingsAccount.cs and savingsTest.cs to Demonstrate Abstract Classes in C#  May 4, 2012 at 4:18 PM
1st question : Create a Solution by name Bank with Classes Account.cs, SavingsAccount.cs and savingsTest.cs to Demonstrate Abstract Classes in C#. ... View Questions/Answers

Java programs on students assesment  May 4, 2012 at 4:11 PM
1) Write a Java program that reads the details of student and do the mark assessments. (i) Input the name of the student and student id from the user. (Use String variable to hold the student name and long variable to hold the student id) (ii) The number of subjects is 3. Use an a... View Questions/Answers

is it possible to use jsp in java script  May 4, 2012 at 3:35 PM
is it possible to use jsp inside the javascript while using java script in body tag on that time i am calculate number of records in mysql, so that i am using jsp.if count value is positive, javascript do some operation ,if count value is negative, javascript do some operation. ... View Questions/Answers

is it possible to use jsp in java script  May 4, 2012 at 3:35 PM
is it possible to use jsp inside the javascript while using java script in body tag on that time i am calculate number of records in mysql, so that i am using jsp.if count value is positive, javascript do some operation ,if count value is negative, javascript do some operation. ... View Questions/Answers

how to integrate chat application with jsp and servlet?  May 4, 2012 at 3:14 PM
I was developing online web portal in jsp and servlet , in this web portal communicate with maintain admin so i desired to integrate with chat applicaton in this web portal. please provide any help. ... View Questions/Answers

Ejb Module  May 4, 2012 at 2:13 PM
Respected Sir/Mam I m using jdk1.5 and jboss4.0.2 Here is my code File Name-sunLoginAction.java /* * sunLoginAction.java * * Created on March 18, 2012, 12:31 PM * * To change this template, choose Tools | Template Manager * and open the template in the ... View Questions/Answers

Ejb Module  May 4, 2012 at 2:10 PM
Respected Sir/Mam I m using jdk1.5 and jboss4.0.2 Here is my code File Name-sunLoginAction.java /* * sunLoginAction.java * * Created on March 18, 2012, 12:31 PM * * To change this template, choose Tools | Template Manager * and open the template in the ... View Questions/Answers

java  May 4, 2012 at 12:56 PM
using java how to show password in stars (**). but not in JSP. plz im waiting for ur reply eagerly. thanks in advance. ... View Questions/Answers

tree menu delete node  May 4, 2012 at 11:15 AM
I have crated a tree menu having various sub nodes now i want to delete parent node and also want to delete sub nodes when parent node is deleted........i am using servlet and giving nodeid to servlet using url ....i have a problem when i perform a delete operation on parent node then its subno... View Questions/Answers

java.lang.IllegalArgumentException: node to traverse cannot be null!  May 4, 2012 at 9:53 AM
Can Any body help me out regarding the above exception in Hibernate HQL. ... View Questions/Answers

Core Java  May 4, 2012 at 12:54 AM
Hi, I have written a board program using Java Swing and AWT classes. In my program I created buttons and added those buttons to JPanel, now I want to move those buttons in the JPanel to move Up and Down or Left to Right using mouse. I implemented MouseMotionListener but could not move fur... View Questions/Answers

JSP  May 3, 2012 at 10:36 PM
FILE UPLOAD-DOWNLOAD code USING JSP ... View Questions/Answers

write spreadsheet  May 3, 2012 at 6:25 PM
what is the java code to write a spreadsheet to database ... View Questions/Answers

write spreadsheet  May 3, 2012 at 6:25 PM
what is the java code to write a spreadsheet to database ... View Questions/Answers

How to ask a questions to you clearly with normal english?  May 3, 2012 at 4:39 PM
hi, i want to know how should or can i may ask a question. send me some format or explain me clearly because i am new in this web site. ... View Questions/Answers

How to display the current time  May 3, 2012 at 4:30 PM
I was develop online web portal. In this web portal i am going to display time. I am using <%= new java.util.Date() %> to display the time. But it display the time after that cannot changed. I need change time in every minutes. ... View Questions/Answers

JSP CODE  May 3, 2012 at 4:10 PM
what is the code for downloading images from database using JSP? ... View Questions/Answers

select value from autocomplete textbox using jquery in jsp from database.  May 3, 2012 at 10:15 AM
Hii Sir, Lots of thnx to ur reply .I went through both the tutorials but was unable to find out exact way to fullfill the solution of selecting value from autocomplete textbox using jquery in jsp from mysql database. Kindly send me the complete code . ... View Questions/Answers

J2SE  May 3, 2012 at 9:53 AM
How to encrypt password and retrive orginal password from database i.e decrypted form of password reply as early as possible......... Thanks in advance ravindra ... View Questions/Answers

JAVA EXPERT  May 3, 2012 at 3:47 AM
hello friends , i want to create a hexagonal region and around this six hexagonal cell, in which a object can move. how we can create in java with 2d co-ordinates. ... View Questions/Answers

JAVA EXPERT  May 3, 2012 at 3:47 AM
hello friends , i want to create a hexagonal region and around this six hexagonal cell, in which a object can move. how we can create in java with 2d co-ordinates. ... View Questions/Answers

Program to read the text from a file and display it on a JFrame.  May 2, 2012 at 11:22 PM
import javax.swing.*; import java.io.*; import java.lang.*; import java.awt.*; class MegaViewer1 extends JFrame { JTabbedPane jtp1=new JTabbedPane(); JPanel jp1=new JPanel(); JTextArea t1=new JTextArea(); MegaViewer1() throws Exception { super("Me... View Questions/Answers

Is there a data structure like a class that doesn't need to be defined as a class in it's own file?  May 2, 2012 at 10:37 PM
I am new to java, and I am trying to make a complex program with ArrayLists of objects. Within the classes of these objects, I would like to categorize my variables to better organize my program and to make ArrayLists easier. For example, I want to create the class Equipment which includes such f... View Questions/Answers

programming java qus.  May 2, 2012 at 10:09 PM
write a import statement that import all the inner class of outer class .outer class must not be imported?? ... View Questions/Answers

programming java qus.  May 2, 2012 at 10:09 PM
write a import statement that import all the inner class of outer class .outer class must not be imported?? ... View Questions/Answers

programming java qus.  May 2, 2012 at 10:09 PM
write a import statement that import all the inner class of outer class .outer class must not be imported?? ... View Questions/Answers

programming java qus.  May 2, 2012 at 10:09 PM
write a import statement that import all the inner class of outer class .outer class must not be imported?? ... View Questions/Answers

programming java qus.  May 2, 2012 at 10:09 PM
write a import statement that import all the inner class of outer class .outer class must not be imported?? ... View Questions/Answers

programming java qus.  May 2, 2012 at 10:09 PM
write a import statement that import all the inner class of outer class .outer class must not be imported?? ... View Questions/Answers

programming java qus.  May 2, 2012 at 10:09 PM
write a import statement that import all the inner class of outer class .outer class must not be imported?? ... View Questions/Answers

programming java qus.  May 2, 2012 at 10:09 PM
write a import statement that import all the inner class of outer class .outer class must not be imported?? ... View Questions/Answers

programming java qus.  May 2, 2012 at 10:09 PM
write a import statement that import all the inner class of outer class .outer class must not be imported?? ... View Questions/Answers

programming java qus.  May 2, 2012 at 10:09 PM
write a import statement that import all the inner class of outer class .outer class must not be imported?? ... View Questions/Answers

programming java qus.  May 2, 2012 at 10:09 PM
write a import statement that import all the inner class of outer class .outer class must not be imported?? ... View Questions/Answers

core java qus  May 2, 2012 at 10:04 PM
write a import statement that import an outer class including in inner class?? ... View Questions/Answers

core java qus  May 2, 2012 at 10:04 PM
write a import statement that import an outer class including in inner class?? ... View Questions/Answers

core java qus  May 2, 2012 at 10:04 PM
write a import statement that import an outer class including in inner class?? ... View Questions/Answers

J2ME  May 2, 2012 at 2:39 PM
i wann source code to find out the difference between two dates.. and i wan in detail.. plz do favour for me.. ... View Questions/Answers

what is the difference between distributed application and web application?  May 2, 2012 at 12:33 PM
what is the difference between distributed application and web application? ... View Questions/Answers

How to write program to show status of seats(i.e.free or reserve) in java?  May 2, 2012 at 12:12 PM
I have retrieved data from database table and I want to display status of seats i.e.free or reserved. ... View Questions/Answers

Database  May 2, 2012 at 11:41 AM
I am working in jsf2.Fro a demo i created database in ms access.no wi want to retrive a record from database for a particular data.I need help as I am stuck in it. ... View Questions/Answers

how to get the values from dynamically generated textbox in java?  May 2, 2012 at 10:39 AM
I have retrieved data from two table both table contains two column and I display textbox corresponding to the data. I want to get data from textboxes(generated as per the retrieved data) and I want to store textbox values into the two table. Example: Table 1.Xray (Xid,pid,type,charges... View Questions/Answers

synchronization  May 2, 2012 at 10:25 AM
what is about static method synchronization&instance method synchronization ... View Questions/Answers

synchronization  May 2, 2012 at 10:23 AM
what is the diffrenece between class level locking&object level locking,explain with examples ... View Questions/Answers

Important Question  May 2, 2012 at 10:19 AM
Respected Sir, I am Sanjay Baniwal working in BHEL as a Software Developer as a trainee for One Year. And i have been given a Project in which i have to create a JSP page with a Drop Down List in which all the UserNames in the Account table from SQL Database should come Automatically whenever... View Questions/Answers

code required  May 2, 2012 at 12:25 AM
I am making a blog in java using netbeans and database connectivity with SQL Server 2008. I am using JSP pages for the same and not the struts framework I want to provide option for the users to upload a photo(only .jpg,,png etc files) But i am not getting how to provide this option on the JSP pa... View Questions/Answers

multilevel inheritance  May 2, 2012 at 12:03 AM
import java.io.*; public class Employee { int eid; String ename; void tostring() { System.out.print("Enter Your ID:"); eid=Integer.parseInt(in.readLine()); System.out.print("Enter Your Name:"); ename=in.readLine(); } } publi... View Questions/Answers

Radiobutton in Xcode  May 1, 2012 at 11:43 PM
I am new to Xcode .I want to implement Radiobutton in Xcode (using Objective C),and when i select any Radiobutton ,it should remain selected when i open my view next time. Is it possible anyway ? Any advise would be appreciated! Thanks in advance! Any way to achieve this ... View Questions/Answers

Renaming multiple files  May 1, 2012 at 8:40 PM
Hi, I have number of files in a directory. Files are named as: 1DeoyaRohit0705$.mp4,2DeoyaRohit0705$.mp4, 3_DeoyaRohit0705$.mp4. .... Now I wanted to rename these files as: 1RohitBBorse.mp4, 2RohitBBorse.mp4, 3_RohitBBorse.mp4, .... Please suggest me thro... View Questions/Answers

[JSP] How to pass back ID to previous page.  May 1, 2012 at 4:49 PM
Hi experts, May I ask something. How to link a page to previous page which the content in previous page is selected from database where IDPRODUCT=". I don't know how to pass back the IDPRODUCT. Suppose I have ViewProducts.jsp and ViewPhotosOfProduct.jsp. ViewProducts.jsp ... View Questions/Answers

returning a value from Threads  May 1, 2012 at 3:47 PM
Hello I have worker pattern that uses ExecutorService to schedule Thread execution but getting stuck at some point when returning a value using Future.I have code snippet below: ExecutorService threadPool = Executors.newFixedThreadPool(1); for ( int i=1; i<... View Questions/Answers

To scan a image encode that image in j2me  May 1, 2012 at 2:55 PM
Hai team i am new man of j2me i have doubt to scan a image and encode the image in j2me... Please clarify that doubt... Thanks in Advance... Kumar ... View Questions/Answers

select date in desired format  May 1, 2012 at 1:39 PM
how to select date from the database in DD/MM/YYYY format, because if i am trying select data from the database i am getting value in yyyy/mm/dd and time format like below "2012-05-07 00:00:00.0" ... View Questions/Answers

DMCA.com