Home Answers Questions Question and Answers


 
 

Latest Programming Questions askedAsk your question?

displaying a physical webpage with frames in iframe  May 31, 2012 at 5:13 PM
i have iframe in my webpage, i have done the coding part for browsing the folders and viewing files in iframe.each folder has a index.html.now i need to display the index.html in iframe.index.html page contains frames divided into 2,each from different sources.i tried to display a sample webpage ... View Questions/Answers

Concept of subqueires using JSP  May 31, 2012 at 3:59 PM
Can I implement the concept of sub queries in JSP page , if yes please tell me how this can be achieved. I have requirement where output of the SQL query should be given as input to the update query Thanks in advance ... View Questions/Answers

spring security  May 31, 2012 at 3:38 PM
Hello, first i would say sorry don't speak english very good... I use the Spring framework 2.5 to apply the security rules for hand interception on the page in my application Jee, the page must be accessible only when the user is connected. The problem is that when I do: security... View Questions/Answers

Advertisement

Java FAQ  May 31, 2012 at 2:52 PM
what is the Difference between Collection(Capital C),collection(Lower c),Collections(Capital C and ends with s) in java? how can u call RequestDispatcher in servlets? ... View Questions/Answers

jsf and spring security  May 31, 2012 at 2:45 PM
Hello, First I would say sorry I don't speak very good English... I use the Spring framework 2.5 to apply the security rules for hand interception on the main page in my application Jee, the page must be accessible only when the user is connected. The problem is that when I do: ... View Questions/Answers

String Date incremented in .jsp  May 31, 2012 at 2:38 PM
I am an utter novice in jsp, but I need to make an amendment to a .jsp file in our organization. I need to set a String in the .jsp to be a date which is derived as Todays Date plus 90 days, in a defined format. I can hardcode a date and the .jsp works fine, but I can't figure out... View Questions/Answers

Constructors .equals method  May 31, 2012 at 2:19 PM
Hi, my two dates never match using .equals method and two different constructors. o/p is like examples.Pdate@192d342Blah dateexamples.Pdate@6b97fd Code: package examples; public class Pdate{ int Pday; i... View Questions/Answers

Constructors .equals method  May 31, 2012 at 2:19 PM
Hi, my two dates never match using .equals method and two different constructors. o/p is like examples.Pdate@192d342Blah dateexamples.Pdate@6b97fd Code: package examples; public class Pdate{ int Pday; i... View Questions/Answers

Java Related Question  May 31, 2012 at 1:57 PM
hi, Why java doesn't has primitive type as an object,whats an eligibility to have a primitive type as an object by the languages. ... View Questions/Answers

Java synchronized method  May 31, 2012 at 1:52 PM
Hi, I have written below program for synchronized method in java but it is not working please help me. program class SynchronizedModel extends Thread { static String msg[]={"Welcome","mangal","to","java"}; String name; ... View Questions/Answers

Java synchronized method  May 31, 2012 at 1:48 PM
Dear Friend, I have written below program for synchronized method in java but it's not working plz help me. program class SynchronizedModel extends Thread { static String msg[]={"Welcome","mangal","to","java"}; String name; ... View Questions/Answers

Need Help To Connect XML as backend in Java-Swing  May 31, 2012 at 1:45 PM
Seat arrangment swing screenshot I made XML program to connect to swing like this. <?xml version="1.0" encoding="iso-8859-1"?> <BUISNESS-CLASS> <PERSON> <CATEGORY>BUSINESS</CATEGORY> <NAME>Selva</NAME>... View Questions/Answers

how to create a zip by using byte array  May 31, 2012 at 1:14 PM
hi, How to convert byte array to zip by using java program.can u plz provide it...... Thanks, krishna ... View Questions/Answers

Reading the body of mail excluding the signature  May 31, 2012 at 11:52 AM
Consider the body of mail as given below- Hi, How do you do? XYZ (Image) xyz@abc.com Disclaimer .................................................................................... View Questions/Answers

at one click to reveal the paricular part of a web page  May 31, 2012 at 11:17 AM
How to reveal the hidden code of particular part of a web page? Note:That hidden code coming from database(in while loop) ... View Questions/Answers

jrxml in Jsp prntviewer  May 31, 2012 at 10:57 AM
Hi this is Mohan, I'm new to ireport. I have a requirement. I want to view jrxml in jsp. I was searching in google for few days but could not find the correct solution. My actual problem is that i dont want to direct my report to PDF or excel directly. i want to user to select it after he... View Questions/Answers

about pdf file handeling  May 31, 2012 at 10:53 AM
i have downloaded a jar file containing packages for writing in pdf files . in which folder i should copy it ? i'm using windowsXP os.pls give whole path. ... View Questions/Answers

Heilighting error field in struts 1  May 31, 2012 at 10:47 AM
Hi, I am trying to change field color on error occur to a particular field. But i m not able to do it.I try to use errorStyleClass and errorStyle as well bt it giving me an error as This attribute is not recognized. I am using struts 1.2................. Please help me out... View Questions/Answers

Java Delete non empty file  May 31, 2012 at 10:21 AM
f.delete() works when the file is empty.if a file be non empty how to delete it??? ... View Questions/Answers

Toolkit.getDefaultToolkit  May 31, 2012 at 9:13 AM
Toolkit audio sound how to create a different type of coding ... View Questions/Answers

What are collections?  May 31, 2012 at 8:41 AM
what is Collections? ... View Questions/Answers

Java Program  May 31, 2012 at 8:18 AM
How can i calculate the sum for the given string variable "7 A B Z 6 2 ".The output should be 15. ... View Questions/Answers

Login page  May 31, 2012 at 12:13 AM
how to create Login page in java ... View Questions/Answers

what is difference between throw and throws  May 30, 2012 at 10:27 PM
what is difference between throw and throws ... View Questions/Answers

Critical Table  May 30, 2012 at 10:25 PM
How to create 2 columns within 1 column using JFrame. ... View Questions/Answers

enum  May 30, 2012 at 10:02 PM
enum concept is developed based on class concept,but we can extend any class from our class,but why it is not passiable to extend by enum? every class in java directly and indirectly child class of Object class,every enum indirectly child class of java.lang.Enum? ... View Questions/Answers

what is oops in java  May 30, 2012 at 8:52 PM
what is oops in java. ... View Questions/Answers

what is oops in java  May 30, 2012 at 8:52 PM
what is oops in java. ... View Questions/Answers

Case-insensitive search using Hibernate Query Language(HQL).  May 30, 2012 at 7:33 PM
What is Case-insensitive search using Hibernate Query Language? ... View Questions/Answers

OR operator in hibernate.  May 30, 2012 at 7:32 PM
How to use OR operator in hibernate? ... View Questions/Answers

AND operator in hibernate.  May 30, 2012 at 7:30 PM
How to use AND operator in hibernate? ... View Questions/Answers

Hibernate criteria disjunction.  May 30, 2012 at 7:27 PM
What is criteria disjunction in hibernate? ... View Questions/Answers

Hibernate criteria conjunction..  May 30, 2012 at 7:22 PM
What is criteria conjunction in Hibernate? ... View Questions/Answers

DataSource in hibernate.  May 30, 2012 at 7:20 PM
What is DataSource in hibernate? ... View Questions/Answers

DriverClass hibernate mysql connection.  May 30, 2012 at 7:17 PM
What is DriverClass in Hibernate using mysql connection? ... View Questions/Answers

How could I use Socket in my application?  May 30, 2012 at 6:49 PM
I created an application dealing with the management of a supermarket using Hibernate and Swing. I found out today that I have to use also Socket and I don't know exactly what I could do with it in my project. Sorry for being too general. But maybe someone has an idea. Any idea would be really he... View Questions/Answers

java Problem  May 30, 2012 at 5:57 PM
I want to create a binary tree for displaying members in Downline. i am creating a site for MLM(Multi-Level MArketing). tree must be dynamically populated from database. is there any help for me. Thanks in advance ... View Questions/Answers

I want to store the value of local variable into Global variable  May 30, 2012 at 5:51 PM
<%=cnt%>=x; is it a valid Statement ... ???? ... View Questions/Answers

open document  May 30, 2012 at 5:01 PM
open a word document using jsp ... View Questions/Answers

open word document  May 30, 2012 at 4:54 PM
how to open a word document ?? ... View Questions/Answers

open word document  May 30, 2012 at 4:54 PM
how to open a word document ?? ... View Questions/Answers

open word document  May 30, 2012 at 4:54 PM
how to open a word document ?? ... View Questions/Answers

extracting phone number n storing in excel  May 30, 2012 at 4:44 PM
i need a program to open a doc file n extract phone numbers from it and store it in a excel sheet?? plz do reply and help me out with the problem ... View Questions/Answers

extracting phone number n storing in excel  May 30, 2012 at 4:44 PM
i need a program to open a doc file n extract phone numbers from it and store it in a excel sheet?? plz do reply and help me out with the problem ... View Questions/Answers

retrieve in xml file in struts2  May 30, 2012 at 4:14 PM
i am using struts2 and trying to populate the text box for the corresponding number entered by retrieving it from properties file using ajax. i now put the values from properties file to map inside the bean class and based on the number entered i retrieve the name. now how can i get back the valu... View Questions/Answers

java  May 30, 2012 at 2:56 PM
I have good knowledge of java core can you please give me some coding problem to solve that in order to give me money i am very poor having pc and internet connection only,or can you provide me a chance to work in you company. ... View Questions/Answers

can i know the error in this code... am unable to run this code  May 30, 2012 at 2:26 PM
class DemoArray { public static void main(String args[]) { int arr[]={12,13,14,15}; int n=arr.lenght; System.out.println("length of array:"+n); for(int i=0;i System.out.println(arr[i]); } } ... View Questions/Answers

java script  May 30, 2012 at 12:35 PM
I want to display set of radio buttons after i select one option of the combobox ... View Questions/Answers

login page code in asp.net  May 30, 2012 at 12:13 PM
i need front end and backend code for login page in vb asp.net using sql server....having code for submit button in it. ... View Questions/Answers

please any one can help me to write a code for this question?  May 30, 2012 at 11:22 AM
Q 1) In a class first day 25 students are joined. After two days that total students will increased to 60. We can develop a program by using ArrayList concept? ... View Questions/Answers

how to create month wise serial number in java?  May 30, 2012 at 10:35 AM
Ex: For 1)January-serial number is 1/001,1/002,1/003 etc. ... View Questions/Answers

how to create customise shortcut keys in jsp?  May 30, 2012 at 10:30 AM
I want to use shortcut keys in my application. keys like' EX: 1)S-Slag 2)ex-Exposure etc. ... View Questions/Answers

how to browse folder and directory in jsp  May 30, 2012 at 10:11 AM
how to browse folder and directory in my jsp page.i have done my coding part for browsing directory but dont know how to get files after that.and also i want to show limited directories based on last modified date for eg:if the directory contains 10 folders i need to show 5 folders based on last... View Questions/Answers

jsp webapplication  May 30, 2012 at 7:11 AM
hai Good mring to all ... View Questions/Answers

jsp  May 30, 2012 at 7:08 AM
hai good morning all jsp beginner myself is sathishkumar i am developing a web application jsp. in this application i generate id card.how can u autogenerate the id in jsp.if u have sample source code available send me.post me sample source code ... View Questions/Answers

Iphone call  May 30, 2012 at 6:32 AM
Do you have other method to make a call on Iphone,without openUrl ... View Questions/Answers

enum  May 29, 2012 at 10:23 PM
why we are not created child for enum type? why we are not extending any from enum? ... View Questions/Answers

why alert box is not appearing in servlets...?  May 29, 2012 at 7:58 PM
//example.java import java.io.*; import javax.servlet.*; import javax.servlet.http.*; public class adduser extends HttpServlet { public void init(ServletConfig config) throws ServletException { super.init(c... View Questions/Answers

Hibernate: ORDER BY using Criteria API.  May 29, 2012 at 6:50 PM
How to display record in order using Criteria API? ... View Questions/Answers

Case-insensitive ordering using Hibernate Criteria.  May 29, 2012 at 6:41 PM
What is Case-insensitive ordering in Hibernate Criteria? ... View Questions/Answers

Case-insensitive equals using Hibernate Criteria.  May 29, 2012 at 6:37 PM
How to use Case-insensitive equals with Hibernate Criteria? ... View Questions/Answers

Hibernate Criteria Case Insensitive Search.  May 29, 2012 at 6:28 PM
How to use Case Insensitive Search in Hibernate? ... View Questions/Answers

How to create a JTable cell containing Image hyperlink?  May 29, 2012 at 6:01 PM
I'm trying to find out how to create a JTable cell which contains Image, which should be clickable like an hyperlink. I'm able to load Image using default image renderer. Can somebody explain me how to add hyperlink (mouse listener) for the each image (cell) in the last column of my ta... View Questions/Answers

i am unable to identify the error in my code  May 29, 2012 at 5:59 PM
class Program { public static void main(String[] args) { BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); System.out.println("enter a character"); char ch=(char)br.read(); System.out.println("the entered character is:"+ch); }... View Questions/Answers

i am unable to identify the error in my code  May 29, 2012 at 5:59 PM
class Program { public static void main(String[] args) { BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); System.out.println("enter a character"); char ch=(char)br.read(); System.out.println("the entered character is:"+ch); }... View Questions/Answers

difference between enum and final class?  May 29, 2012 at 4:11 PM
what is the difference between enum and final class in java? ... View Questions/Answers

How to Assign struts2 property to jsp variable  May 29, 2012 at 3:52 PM
In Struts2 <s:property value='count'/> I wants to assign <% int count = %><s:property value='count'/><% ; %> But its not working. ... View Questions/Answers

How to Assign struts2 property to jsp variable  May 29, 2012 at 3:52 PM
In Struts2 <s:property value='count'/> I wants to assign <% int count = %><s:property value='count'/><% ; %> But its not working. ... View Questions/Answers

Uploading a Software and storing in the database  May 29, 2012 at 12:33 PM
I want to upload a software(may be of maximum 20mb) through JSP, and store it in the database. The coding present in the site for uploading and storing in the database, is not working for softwares of bigger size. It just does it for small files. Please help me with the code for uploading... View Questions/Answers

Read the file Contents  May 29, 2012 at 11:50 AM
Ravi Raj,Vijay45Shankar,234 Guna,345,Meet me,654,Cow Read file contents and Print the no.of words and Numbers./p> Thanks, Dinesh Ram ... View Questions/Answers

arrays  May 29, 2012 at 11:09 AM
write a program that reads in a text typed in by the user and produces a list of disinct words in alphabetical order and how many times each word appears in the passage. ... View Questions/Answers

arrays  May 29, 2012 at 11:09 AM
write a program that reads in a text typed in by the user and produces a list of disinct words in alphabetical order and how many times each word appears in the passage. ... View Questions/Answers

arrays  May 29, 2012 at 11:09 AM
write a program that reads in a text typed in by the user and produces a list of disinct words in alphabetical order and how many times each word appears in the passage. ... View Questions/Answers

jdk  May 29, 2012 at 9:01 AM
which is the latest version of jdk and how can i get it to develope applications? ... View Questions/Answers

Oracle Certified Java Programmer Assistance  May 28, 2012 at 10:10 PM
Hi all I wanted to know that I have recently completed my graduation and heading towards Post Graduation. I wanted to know that if I pass the OCJP certification will it be useful after 3 years. Or do i need to pass the latest OCJP again as my post graduation course will be of 3 years? Please help... View Questions/Answers

Hibernate criteria count.  May 28, 2012 at 6:28 PM
How do we count rows using criteria in hibernate? ... View Questions/Answers

Hibernate criteria count.  May 28, 2012 at 6:27 PM
How do we count rows using criteria in hibernate? ... View Questions/Answers

JTable populate with resultset.  May 28, 2012 at 6:15 PM
How to diplay data of resultset using JTable? ... View Questions/Answers

how to save html form data into .csv file using only jsp.  May 28, 2012 at 5:13 PM
Dear all, I am developing a website only using jsp and html. i need to save the form data into a .csv file using jsp. can anyone give me any sample solution or tutorial in this regard. thanks in advance mehedi ... View Questions/Answers

sorting folders automatically  May 28, 2012 at 4:10 PM
i want to sort folders automatically,let say the folders to be displayed in a webpage(hyperlinked to its resource).the page should display only the folder that belongs to last 15 days.it should be done automatically.whenever a folder is created it should automatically get updated. ... View Questions/Answers

Ajax not working in jsp  May 28, 2012 at 3:22 PM
I'm using Netbean, Ajax validation in the following code is not working the code succesfully run for first UID validation adn also for ee-mail but does not enter if else for firstname field please help me out.. The files used are a zxml.js A IncrementalFormValidation.js function v... View Questions/Answers

How to integrate core java with Hibernate  May 28, 2012 at 3:10 PM
How to integrate core java with Hibernate How to integrate core java with Hibernate ... View Questions/Answers

Login Form  May 28, 2012 at 1:57 PM
I have 8 jsp pages.Each of them has three columns:Left,Middle and Right.The left column consists of menu while the right column consists of News and Events. These two are same for every page.There's also an image of +,on clicking which a login form appears. Only the middle column is diff... View Questions/Answers

Login Form  May 28, 2012 at 1:57 PM
I have 8 jsp pages.Each of them has three columns:Left,Middle and Right.The left column consists of menu while the right column consists of News and Events. These two are same for every page.There's also an image of +,on clicking which a login form appears. Only the middle column is diff... View Questions/Answers

Arrays, loops and string handling  May 28, 2012 at 1:04 PM
How would i go about in creating a program to mark and grade a set of multiple choice test results. this is a console program that uses JOptionPane dialog boxes as well. Read a set of 10 correct answers using JOptionPane dialog box and store the entire answer as on string in one variable.... View Questions/Answers

how I make the numbers in descending order ?  May 28, 2012 at 12:28 PM
public class Quiz1 { public static void main (String [] abdo){ Scanner sc = new Scanner(System.in); int number [] = new int [20]; int num =2; for(int i =0; i< number.length; i++){ System.out.print("Insert value number"+(i+1)+":"); number[i]= sc.nextInt(); ... View Questions/Answers

i need a school appication using struts frame work with oracle 10g using myeclipse6.0  May 28, 2012 at 12:22 PM
hi i need a school apllication using struts frame work backend 10g xe using myeclipse 6.0 ... View Questions/Answers

login dao file for referece (source code for reference)  May 28, 2012 at 3:35 AM
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <tit... View Questions/Answers

login controller.servlet file.. (good coding stuff for reference)  May 28, 2012 at 3:34 AM
package com.tcs.ilp.controller; import java.io.*; import java.util.*; import com.tcs.ilp.model.*; import java.sql.*; import java.io.IOException; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet... View Questions/Answers

delete retailer jsp file (sir..is this a good logic.. jsp file is useful for what purpose)  May 28, 2012 at 3:29 AM
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <tit... View Questions/Answers

view jsp file (reference file). is the way of coding good ?  May 28, 2012 at 3:25 AM
<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> ... View Questions/Answers

java validations  May 28, 2012 at 3:11 AM
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <title>Insert title here</title> &l... View Questions/Answers

RetDAO.java (part2) .. will give good points to everyone. Is this logic good?  May 28, 2012 at 2:48 AM
public static int delete(Connection conn,String ret_id) throws Exception { st=conn.createStatement(); rs=st.executeQuery("select * from retailer where retailer_id='"+ret_id+"'"); rs.next(); String s1=rs.getString(1); ... View Questions/Answers

RetDAO.java (part1) ..reference. Is this logic good?  May 28, 2012 at 2:43 AM
public static int searchDelete(Connection conn,String ret_id) throws Exception { //System.out.println(ret_id); st=conn.createStatement(); //System.out.println("Where"); ResultSet rs=st.executeQuery("select * from RETAILER where RETAILERID='"+ret... View Questions/Answers

RetDAO.java (part1) ..reference. Is this logic good?  May 28, 2012 at 2:43 AM
public static int searchDelete(Connection conn,String ret_id) throws Exception { //System.out.println(ret_id); st=conn.createStatement(); //System.out.println("Where"); ResultSet rs=st.executeQuery("select * from RETAILER where RETAILERID='"+ret... View Questions/Answers

RetController.java (do get) (my file for reference for a test.. IS LOGIC good Enough ?  May 28, 2012 at 2:32 AM
try { Connection conn=Create_Connection.conOpen(); System.out.println(conn); String submit=request.getParameter("submit"); System.out.println(submit); if(submit.equals("View")) { try { Arr... View Questions/Answers

The Unix error  May 28, 2012 at 12:27 AM
var a=document.check.username.value; if(a=="" ) { alert("Enter a valid UserName"); return false; } if(!isNaN(a) ) { alert("Enter a valid UserName"); return false; } var b=document.check.password.value; if(b=="") { { ... View Questions/Answers

how to create a xml page  May 28, 2012 at 12:10 AM
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta name="Description" content="Information archi... View Questions/Answers

how to use ajax in html file  May 27, 2012 at 11:56 PM
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta name="Description" content="Information archi... View Questions/Answers

maria sharapova  May 27, 2012 at 11:48 PM
import java.sql.*; import java.util.ArrayList; import javax.servlet.RequestDispatcher; public class MyHelper { static Connection conn=null; static Statement st=null; static ResultSet rs=null; static String password=null; public static ArrayList<Ret... View Questions/Answers

DMCA.com