Home Answers Questions Question and Answers


 
 

Latest Programming Questions askedAsk your question?

How can we implement Pop-up in JQuery without Plugin?  December 15, 2010 at 1:05 PM
Hi Sir How can we Implement pop-up in JQuery without using plug-in. Please provide me code with detailed answer. Thanks in advance. ... View Questions/Answers

web application  December 15, 2010 at 1:02 PM
Develop a web application to print back the inputs from the user(name, date of birth, address). The solution should have a JSP file which accepts the userâ??s name and sent to Servlets which puts the name in the session and which should be forwarded to another servlet / JSP, which shall print the... View Questions/Answers

Implementing Digits restriction Using JQuery  December 15, 2010 at 12:50 PM
Hi Sir I have following field in my html form : <div>Age<input type="text" name="quantity" id="quantity" /></div> I want to implement two things : 1 if the letter is not digit then display error and don't type anyth... View Questions/Answers

Advertisement

Form validation Using Jquery Plugin  December 15, 2010 at 12:37 PM
Hello sir I want to implement form validation using JQuery Plug-in. My code is : <html> <style type="text/css"> * { font-family: Verdana; font-size: 11px; line-height: 14px; } .submit { margin-left: 125px; margin-top: 10px;} .label { ... View Questions/Answers

how to read and write an xml file using java  December 15, 2010 at 12:37 PM
Hi Can anyone help me how to read and write an xml file which has CData using java ... View Questions/Answers

Inform user to enable JavaScript  December 15, 2010 at 12:19 PM
Hi sir How can we inform user to turn on JavaScript ? Because if we have implemented validation etc with JavaScript , then it will not work. What option we have when this situation occurs ? Please mention code with your answer ? ... View Questions/Answers

header files  December 15, 2010 at 12:12 PM
do you have a all header files of java? ... View Questions/Answers

i want horizontal mlm tree structure code in php with jquery or Ajax  December 15, 2010 at 12:01 PM
i need horizontal mlm tree structure code in php with jquery or Ajax... in advance.. Thank you:) ... View Questions/Answers

how to write greater than symbol in a file using java  December 15, 2010 at 11:48 AM
Hello I want to write < and > symbol in a file but its coming like > and < Please help me ... View Questions/Answers

A Simple program  December 15, 2010 at 11:30 AM
Hi I have written the following code: class FirstRectangle{ public int rectArea(int l,int b){ int farea = l*b; System.out.println("Required Area::"+farea); return farea; }//method }//class class SecondRectangle{ public int area(int l, int b){ ... View Questions/Answers

jsp form  December 15, 2010 at 11:19 AM
hi i have one excuted jsp form.and in that the data should be dispaly on another jsp form.please help me thanks in advance ... View Questions/Answers

Changing background color using JavaScript  December 15, 2010 at 11:02 AM
Hi Sir Is there any way to change the background color using JavaScript ? Please mention code with your answer. ... View Questions/Answers

connect ftp from java program  December 15, 2010 at 10:43 AM
Hi, I need to connect to the ftp and get the files through a java program.. I wrote the following code... import org.apache.commons.net.ftp.FTPClient; import org.apache.commons.net.ftp.FTPFile; import org.apache.commons.io.FileUtils; import java.io.IOException; publ... View Questions/Answers

connect ftp from java program  December 15, 2010 at 10:43 AM
Hi, I need to connect to the ftp and get the files through a java program.. I wrote the following code... import org.apache.commons.net.ftp.FTPClient; import org.apache.commons.net.ftp.FTPFile; import org.apache.commons.io.FileUtils; import java.io.IOException; publ... View Questions/Answers

jsp:forward tag ussage  December 15, 2010 at 10:33 AM
can you give me example of how to use jsp:forward tag... i intend to call action class ... View Questions/Answers

sourse code pls  December 15, 2010 at 10:06 AM
customer registration code in java? ... View Questions/Answers

Thread for reading txt file  December 15, 2010 at 9:02 AM
how to use 3 thread to read 3 txt file? To create three threads for reading the file and three threads for getting the strings out of the queue and printing them. thanks ... View Questions/Answers

Develop application for announcements in a workplace  December 15, 2010 at 7:58 AM
Hi, If I wanted to create a mobile application for announcements in a workplace using Android and eclipse, where do I start? Given that I have already installed Android and eclipse and that I know Java basics. Reply needed ASAP :) Thanks! ... View Questions/Answers

Simple ATM Java Code...  December 15, 2010 at 7:20 AM
You are required to write a Graphical User Interface that simulates an ATM by building on the program you wrote for the midterm exam. Specifically, you will be reading customer information into an array list, following which your ATM becomes operational for use by your customers for checking a... View Questions/Answers

Regular Expression Help Help HELP!!!!  December 15, 2010 at 1:43 AM
HI all I am very new to java, but i have this problem i got a string e.g Courses['07001'].Title = "International Students 1"; So i need to extract only the "international Students", i did that by using this expression String regex = "Courses\[\'[^\']+\'\]\.Title *= *\"(... View Questions/Answers

Servlet Counter  December 14, 2010 at 9:37 PM
public class SimpleCounter extends HttpServlet{ int counter = 0; public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType("text/html"); PrintWriter pw = response.getWriter(); ... View Questions/Answers

Password need to encrypt while inserting into DB and need to decrypt while responding to forgot password  December 14, 2010 at 7:17 PM
Hi, I need the functionality in JSP to encrypt the password while inserting into DB and need decrypt logic while responding to forgot password. please help me out. Regards, GRR ... View Questions/Answers

output error  December 14, 2010 at 6:48 PM
this is my program import java.io.*; public class separate { public static void main(String[] args)throws IOException { BufferedReader keyin=new BufferedReader(new InputStreamReader(System.in)); String x; int ct=0; String str; System.out.pri... View Questions/Answers

Find Cylinder area By inputting value from user  December 14, 2010 at 6:35 PM
Hello Sir I need the code for calculating the area of a cylinder in which it asks radius value from user and then calculate area using this radius value. Please provide me complete code. Hope you will not disappoint me. ... View Questions/Answers

java code  December 14, 2010 at 6:14 PM
Write a function Model-of-Category for a Tata motor dealers, which accepts category of car customer is looking for and returns the car Model available in that category. the function should accept the following categories "SUV", "SEDAN", "ECONOMY", and "MINI" which in turn returns "TATA SAFARI" , ... View Questions/Answers

java code  December 14, 2010 at 6:13 PM
Write a program which performs to raise a number to a power and returns the value. Provide a behavior to the program so as to accept any type of numeric values and returns the results. ... View Questions/Answers

java code  December 14, 2010 at 6:13 PM
Create Vehicle having following attributes: Vehicle No., Model, Manufacturer and Color. Create truck which has the following additional attributes:loading capacity( 100 tonsâ?¦).Add a behavior to change the color and loading capacity. Display the updated truck details. ... View Questions/Answers

java code  December 14, 2010 at 6:12 PM
Create Book having following attributes: Book ID, Title, Author and Price. Create Periodical which has the following additional attributes: Period (weekly, monthly etc...) .Add a behavior to modify the Price and the Period of the periodical. Display the updated periodical details ... View Questions/Answers

java code  December 14, 2010 at 6:12 PM
Create Product having following attributes: Product ID, Name, Category ID and UnitPrice. Create ElectricalProduct having the following additional attributes: VoltageRange and Wattage. Add a behavior to change the Wattage and price of the electrical product. Display the updated ElectricalProduct d... View Questions/Answers

java code  December 14, 2010 at 6:09 PM
Create an Employee class which has methods netSalary which would accept salary & tax as arguments & returns the netSalary which is tax deducted from the salary. Also it has a method grade which would accept the grade of the employee & return grade. ... View Questions/Answers

java code  December 14, 2010 at 6:09 PM
Create a Bank class with methods deposit & withdraw. The deposit method would accept attributes amount & balance & returns the new balance which is the sum of amount & balance. Similarly, the withdraw method would accept the attributes amount & balance & returns the new ba... View Questions/Answers

java code  December 14, 2010 at 6:08 PM
Create a class called Student which has the following methods: i. Average: which would accept marks of 3 examinations & return whether the student has passed or failed depending on whether he has scored an average above 50 or not. ii. Inputname: which would accept the name of ... View Questions/Answers

java code  December 14, 2010 at 6:08 PM
Create a calculator class which will have methods add, multiply, divide & subtract ... View Questions/Answers

java code  December 14, 2010 at 6:07 PM
Create a washing machine class with methods as switchOn, acceptClothes, acceptDetergent, switchOff. acceptClothes accepts the noofClothes as argument & returns the noofClothes ... View Questions/Answers

java code  December 14, 2010 at 6:06 PM
Develop a program that accepts an initial amount of money (called the principal), a simple annual interest rate, and a number of months will compute the balance at the end of that time. Assume that no additional deposits or withdrawals are made and that a month is 1/12 of a year. Total interest i... View Questions/Answers

java code  December 14, 2010 at 6:05 PM
Develop a program that computes the distance a boat travels across a river, given the width of the river, the boat's speed perpendicular to the river, and the river's speed. Speed is distance/time, and the Pythagorean Theorem is c2 = a2 + b2. ... View Questions/Answers

java code  December 14, 2010 at 6:05 PM
Develop the program calculateHeight, which computes the height that a rocket reaches in a given amount of time. If the rocket accelerates at a constant rate g, it reaches a speed of g · t in t time units and a height of 1/2 * v * t where v is the speed at t. ... View Questions/Answers

java code  December 14, 2010 at 6:04 PM
Develop the program calculateCylinderArea, which accepts radius of the cylinder's base disk and its height and computes surface area of the cylinder. ... View Questions/Answers

java code  December 14, 2010 at 6:03 PM
An old-style movie theater has a simple profit program. Each customer pays $5 per ticket. Every performance costs the theater $20, plus $.50 per attendee. Develop the program calculateTotalProfit that consumes the number of attendees (of a show) and calculates how much income the show earns. ... View Questions/Answers

java code  December 14, 2010 at 6:03 PM
Utopias tax accountants always use programs that compute income taxes even though the tax rate is a solid, never-changing 15%. Define the program calculateTax which determines the tax on the gross pay. Define calculateNetPay that determines the net pay of an employee from the number of hours work... View Questions/Answers

java code  December 14, 2010 at 6:02 PM
Develop the program calculateCylinderVolume., which accepts radius of a cylinder's base disk and its height and computes the volume of the cylinder ... View Questions/Answers

java code  December 14, 2010 at 6:01 PM
Develop a program that accepts the area of a square and will calculate its perimeter ... View Questions/Answers

java code  December 14, 2010 at 6:00 PM
Write a program to find the difference between sum of the squares and the square of the sums of n numbers? ... View Questions/Answers

Test hidden element using JQuery  December 14, 2010 at 5:29 PM
Suppose i have an element which i am hiding and showing, using .hide(), .show() or .toggle().How do you test to see if that element is currently hidden or visible on the screen? Please provide code with your answer. ... View Questions/Answers

Select all childs except first using JQuery  December 14, 2010 at 5:14 PM
Hello Sir I Have following code : <ul> <li>First item</li> <li>Second item</li> <li>Third item</li> </ul> And i need to add a class to 2nd & 3rd element or child as follows : ... View Questions/Answers

hibernate update problem  December 14, 2010 at 4:19 PM
HI, I integrated the struts and hibernate and wrote the following query in the databean to update the user table login time SessionFactory sessionFactory = (SessionFactory)context.getAttribute(HibernatePlugin.KEY_NAME); Session session = sessionFactory.open... View Questions/Answers

Cursor hiding in jQuery  December 14, 2010 at 3:55 PM
Hello sir I want to hide the mouse cursor in entire web page. I heard from one of my friend that it is possible using JQuery. Please give me code ? ... View Questions/Answers

Connection pooling  December 14, 2010 at 3:44 PM
Sir, In my project i want to implement connection pooling with ms-sql server 2005. i wrote the code in JSP like this... <% Connection con=DbCon.getConnection(); Statement stmt =... View Questions/Answers

Last modified time of a webpage  December 14, 2010 at 3:38 PM
how can we get the last modified time of a webpage using java? ... View Questions/Answers

java  December 14, 2010 at 2:21 PM
what is the difference between vb and vb.net? ... View Questions/Answers

java  December 14, 2010 at 2:21 PM
what is the difference between vb and vb.net? ... View Questions/Answers

java  December 14, 2010 at 2:21 PM
what is the difference between vb and vb.net? ... View Questions/Answers

java  December 14, 2010 at 2:20 PM
hoe to find largest number without using array ... View Questions/Answers

 December 14, 2010 at 2:19 PM
what is the difference betwen vb and vb.net? ... View Questions/Answers

 December 14, 2010 at 2:19 PM
what is the difference betwen vb and vb.net? ... View Questions/Answers

java  December 14, 2010 at 2:13 PM
strong textwhat to do to put arry in descendind order using sort()? ... View Questions/Answers

Siverlight JSON  December 14, 2010 at 2:13 PM
how to use JSON in silverlight, i need to populate dynamic data by using JSON CAN ANY HELP ME ... View Questions/Answers

java  December 14, 2010 at 2:13 PM
strong textwhat to do to put arry in descendind order using sort()? ... View Questions/Answers

inhertence  December 14, 2010 at 2:11 PM
how many types of inheritence in java according to sun specification? ... View Questions/Answers

HACKING  December 14, 2010 at 2:06 PM
how to hack gmail? ... View Questions/Answers

java  December 14, 2010 at 1:59 PM
how to print special series using java literals ... View Questions/Answers

how to find square and cube of five number  December 14, 2010 at 1:58 PM
how to find square and cube of five number ... View Questions/Answers

About Store Procedure  December 14, 2010 at 12:02 PM
Create Procedure CMTSPCasesByWorkstream AsBEGIN DECLARE @paramdateincrement int = 24 DECLARE @paramstartdate datetime = Cast((Cast(dateadd(day,-7,cast(getdate() as Date)) as varchar) + ' 23:59:59') as Datetime) -- 'yyyy-mm-dd hh:mm:ss' Declare @start... View Questions/Answers

How to take control of diffrent system or computer  December 14, 2010 at 2:45 AM
I want to connect to different computers and want have full control remotely. How can java help me in this? ... View Questions/Answers

plz plz rply as soon as possible  December 14, 2010 at 12:12 AM
by using c programs * * * * * s s s s s * s s o s s s s s s s s s s s s s s s s s s s s s s s ... View Questions/Answers

plz plz plz inform me as soon as possible  December 14, 2010 at 12:03 AM
``by using c programs how to type * * * * * * ... View Questions/Answers

checking index in prepared statement  December 13, 2010 at 11:45 PM
If we write as follows: String query = "insert into st_details values(?,?,?)"; PreparedStatement ps = con.prepareStatement(query); then after query has been prepared, can we check the index of "?". If yes then how? ... View Questions/Answers

string  December 13, 2010 at 10:39 PM
how do i extract words from strings in java??? ... View Questions/Answers

Retrieving attribute value from XML  December 13, 2010 at 9:37 PM
I have an XML as below to parse: <LoadTicketRequest> <LoadTicket LoadTicketID="S-123345"> ..... But am not able to fetch the value of LoadTicketId attribute. My code snippet is as below: DocumentBuilder db = DocumentBuilderFactory.newIn... View Questions/Answers

html  December 13, 2010 at 9:10 PM
HTML document with Javascript to count the number of vowels in a text typed in text area. please send the code. ... View Questions/Answers

Struts 2 Radio without Label  December 13, 2010 at 8:19 PM
I Use a s:radio tag to create a grid to choice one option, but when i render my jsp the value of the radio is showed like a label, I don�´t want the label. What can i do to solve this? ... View Questions/Answers

login  December 13, 2010 at 8:14 PM
i want to now how i can write code for form login incolude user and password in Jcreator 4.50 ... View Questions/Answers

Adding checkbox to List as item  December 13, 2010 at 8:09 PM
can we add checkox to List ... View Questions/Answers

how to copy the directory in to ftp server using java  December 13, 2010 at 8:05 PM
how to copy the directory in to ftp server using java ? ... View Questions/Answers

Login validation doubt  December 13, 2010 at 7:27 PM
Hi, 1)login.jsp: <%@page import="java.sql.*"%> Username: Password: ... View Questions/Answers

Show me the code for that  December 13, 2010 at 5:51 PM
JVM on my machine? And how do I know whether its working or not? ... View Questions/Answers

jsp form  December 13, 2010 at 5:45 PM
hai... GoodEvening I have one doubt on jsp.please wil u clarify it. how to move one jsp form to another jsp form with out using forward tag ... View Questions/Answers

retrievin xml data  December 13, 2010 at 5:13 PM
If i need to retrieve some node elements from xml and then store it in seperate file!! ... View Questions/Answers

how to draw lines,circles, rectangles on JSP (using Java Graphics)  December 13, 2010 at 4:52 PM
how to draw lines,circles, rectangles on JSP (using Java Graphics) ... View Questions/Answers

accessing xml using java  December 13, 2010 at 4:44 PM
I need to retrieve some elements in xml file using java ... View Questions/Answers

Get session value in javascript  December 13, 2010 at 4:44 PM
How to iterate session value onebyone in JavaScript ... View Questions/Answers

JSP basic doubt  December 13, 2010 at 4:44 PM
String user = request.getParameter("username"); in this "user" value is null or not how to validate? before going further action. ... View Questions/Answers

Text event in jsp  December 13, 2010 at 4:09 PM
Hi I am doing project in jsp with mysql as database.My quens is ,in my webform when I enter value (numeric) in 1st textbox then remaing below textbox must be fill with value that coming from database. So for that purpose which textevent should i used. I have to do without button. Please suggest s... View Questions/Answers

transient keyword  December 13, 2010 at 3:03 PM
how to use transient keyword? ... View Questions/Answers

link hibernate to MS ACCESS database  December 13, 2010 at 2:04 PM
how to link hibernate to ms access database instead of sql database ... View Questions/Answers

a interview questioon  December 13, 2010 at 1:57 PM
write a programme so the it can print each substring of a string like "saswat" is the string then it will print s,a,w,t,sa,swa,sta,as,aws,ats,sasw all posible sub string with out repeating ... View Questions/Answers

JSP  December 13, 2010 at 12:58 PM
how to open and view a flat file in browser using java code in jsp? ... View Questions/Answers

toolbar in java  December 13, 2010 at 12:50 PM
how we can create a toolbar like as file(open,close etc),edit(cut,copy,paste etc)...etc in a frame. ... View Questions/Answers

student info  December 13, 2010 at 12:21 PM
code of insert,delete,update,view,search of student information using jsp and servelts ... View Questions/Answers

Struts - Hibernate Integration  December 13, 2010 at 12:07 PM
Hi, I need to integrate the struts with hibernate.. can u pls tell me the process of configuring etc etc WITHOUT USING ANT Thanks in Advance ... View Questions/Answers

Java  December 13, 2010 at 11:45 AM
What's problem with this code? why output is not displaying? how can i solve it? Thanks, package com; import java.util.HashMap; public class BookDemo { HashMap<String, Integer>hm=new HashMap<String, Integer>(); public static void main(String[] args) { BookDemo bm=new Boo... View Questions/Answers

html  December 13, 2010 at 11:34 AM
Can we Access database through html page and how,if not then why? ... View Questions/Answers

JQuery Spinner  December 13, 2010 at 10:07 AM
I am working in JQuery and i want to create SPinner for getting Credit Card Expiry Date in the form of MM/yyyy . Will you Please help me How to create the Spinner . Thank you. Regards Arun ... View Questions/Answers

Spring framework implementation  December 13, 2010 at 9:21 AM
Hi, I am new to springs. Can someone help me in implementing the below case in spring? Coffee Take out problem: Order is taken by a front desk assistant Billing is carried out by the front desk assistant Front desk assistant marks each of the cups with dri... View Questions/Answers

Having a hard time writing program to calculate test scores..........  December 13, 2010 at 4:25 AM
i need a program that does this:Standardized Test Scores A local high school is giving a standardized test to all of its students. There are 50 questions on the test and the school would like you to gather some statistics on how the students performed. Scores can range anywhere from 0 ... View Questions/Answers

Java GUI code  December 13, 2010 at 1:16 AM
Write a GUI program to compute the amount of a certificate of deposit on maturity. The sample data follows: Amount deposited: 80000.00 Years: 15 Interest rate: 7.75 Total Amount: Hint** to solve this problem, computer 80000.00 (1+7.75 /100)^15 ... View Questions/Answers

How to get the position of the comments in the pdf  December 12, 2010 at 6:26 PM
how to get the postion of comments, in the extracted xml, from pdf ... View Questions/Answers

image displaying in java  December 12, 2010 at 6:25 PM
how to display an image by using load image button in applet viewer? ... View Questions/Answers

How to get the position of the comments in the pdf  December 12, 2010 at 6:23 PM
how to get the postion of comments, in the extracted xml, from pdf ... View Questions/Answers

UITableView delegate method  December 12, 2010 at 6:04 PM
Hi, Please let's know the UITableView delegate methods. Give me full code UITableView delegate methods. Thanks ... View Questions/Answers

DMCA.com