Home Answers Questions Question and Answers


Latest Programming Questions askedAsk your question?

dom to xml string  March 5, 2011 at 9:40 AM
Hi, I am writing a program in java that reads the xml file from a webservice. The Document object is returned in my program. I have save the dom document into xml file. How to convert dom to xml string and then save into a file? Thanks ... View Questions/Answers

PHP and MySQL BETWEEN dates with different years  March 5, 2011 at 9:10 AM
I have a database which holds a bunch of events. Each event has a start date and an end date, so they should only show on the site when the date chosen falls between those dates. I thought it made sense to make use of the SQL BETWEEN statement, but it does not work. When a user ch... View Questions/Answers

Java App - Add, Delete, Reorder elements of the buttons  March 5, 2011 at 8:57 AM
Hello, I'm developing a Java application. I created this interface with MockupScreens. Please look at these pictures. At first time, there's only one element, the user have to enter informations (title and description) then he starts adding elements as he needs. He ... View Questions/Answers


sql  March 5, 2011 at 8:54 AM
returning value from a store procedure in sql with example ... View Questions/Answers

search  March 5, 2011 at 8:53 AM
how to develop search box and how to retrive data from database.. ... View Questions/Answers

Is it modify Object data? Generally Object data can't modify............but in this program it modifies.......... Why?  March 5, 2011 at 1:07 AM
import java.io.*; public class Conversions { public static void main(String args[]) throws Exception { int a,b; DataInputStream dis=new DataInputStream(System.in); //String to Fundamental conversion System.out.print("Enter any ... View Questions/Answers

how to read values from java in xml?  March 4, 2011 at 10:13 PM
how to read values from java in xml? ... View Questions/Answers

expression and flow control  March 4, 2011 at 9:17 PM
write the program calculate and print the bill of communication telephone mobile company the company offer 2 types of services is regular (r) and premium (p) the rates are computed as follow - Regular services $ 10.00 plus first 50 minutes are free .Charges over 50 minutes are $ 0.20 per mi... View Questions/Answers

multivalued attribute?  March 4, 2011 at 8:16 PM
edit.jsp <% String accno=request.getParameter("acc"); try { Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); java.sql.Connection con=java.sql.DriverManager.getConnection("jdbc:odbc:dms","smartlib","smartlib"); ... View Questions/Answers

multivalued attribute?  March 4, 2011 at 8:16 PM
I have a problem in editing the database through form because of multivalued attribute it is creating the error and also how to write code for displaying the data when there is multivalued attribute? edit.html edit.jsp <% String accno=request.getParameter(&qu... View Questions/Answers

how to display?  March 4, 2011 at 8:10 PM
I have to write a code for searcing books in library and i have written but it is not displaying the result.I don't know where i have gone wrong.Also i want to know if there is any better idea then this and what type of validations i can give.I have written code as shown below. search.... View Questions/Answers

How to put text file numbers to array and check the position of numbers?  March 4, 2011 at 6:08 PM
I have numbers in text file data.txt 12 9 8 3 1 ... View Questions/Answers

sql q's  March 4, 2011 at 5:49 PM
Find out the job that was filled in the first half of 1983 and same job that was filled during the same period on 1984? Display the department where there are no employees? Display those emp who joined the company before 15th of the month? For the above Q's please respond ... View Questions/Answers

Converting XML to string  March 4, 2011 at 5:31 PM
Hi Friends, I had an requirement in which a java program receives an xml messages from external web application such as (jsp, php) and then it converts the received xml message into a string. could some one suggest how can I go about it or could some one provide me with sample cod... View Questions/Answers

how to add panel inside frame?  March 4, 2011 at 4:27 PM
I prepared a Frame with two labels and text fields and one button.when ever user clicks on the button two text fields should be appear(those text fields should be added to the panel) .I want to add panel after those components.but while compilation its showing errors.how to write the logic? ... View Questions/Answers

Jcombo box  March 4, 2011 at 4:27 PM
I want To add ittem in JComboBox which is stored in Mysql Database. Database Column name -Course Items -MBA,MCA,MBA IT,MBA FINANCE I want Load Database records in to my JComboBox. ... View Questions/Answers

hibernate insert image  March 4, 2011 at 4:02 PM
Sir, Today I hadposted question regarding upload image, th answer you had given is using SQL, but I am using Hibernate to insert data in the same table where I want to insert image. Plz hlp me. Thanks ... View Questions/Answers

insert image using hibernate  March 4, 2011 at 3:59 PM
Sir, Today I hadposted question regarding upload image, th answer you had given is using SQL, but I am using Hibernate to insert data in the same table where I want to insert image. Plz hlp me. Thanks ... View Questions/Answers

retrive data from oracle to jsp  March 4, 2011 at 3:26 PM
i am a beginer in jsp so please help me out..... in file create project i am entering proj details such as id name cost and manager name and storing it in the data base. in search proj fiel if user enters any one of the feild such as id name cost and manager the full details of the project should... View Questions/Answers

UITableView dataSource must return a cell from tableView:cellForRowAtIndexPath  March 4, 2011 at 3:24 PM
HI, What is the solution of UITableView dataSource must return a cell from tableView:cellForRowAtIndexPath error? Thanks ... View Questions/Answers

dual control  March 4, 2011 at 3:04 PM
how to get two controls on a single program at the same time ... View Questions/Answers

upload image using JSP Hibernate  March 4, 2011 at 2:51 PM
sir, I want to take image from user and save to database(MYSQL) using Hibernate and JSP Thanks in advance. ... View Questions/Answers

here we r getting the problem with ut data and get data????????????  March 4, 2011 at 2:26 PM
private ArrayList keys; private ArrayList values; public Menus() { keys = new ArrayList(); values = new ArrayList(); } public java.util.Set keySet() { return new TreeSet(keys); } Hashtable<String,String> hash = new Hashtab... View Questions/Answers

java i/o operations  March 4, 2011 at 2:06 PM
how to write integer data to a file in java using random access file object or file writer or data outputstream i have already tried the write and writeInt methods....plz help ... View Questions/Answers

ExecuteScalar in java  March 4, 2011 at 1:58 PM
Hello Greetings I am developing web application in java using JSP and servlets. I would like to know one thing that is there any way to extract one value from database just like executescalar in .NET. Ex. select count(*) from userdetails i want to get count without using resultset... View Questions/Answers

array ADT  March 4, 2011 at 1:21 PM
Write a program using array_ADT to retrieve a list of elements from a file ... View Questions/Answers

array ADT  March 4, 2011 at 1:16 PM
Write a program using array_ADT to retrieve a list of elements from a file ... View Questions/Answers

take variables in text file and run in java  March 4, 2011 at 1:08 PM
I have a text file which have variables 17 10 23 39 13 33 How to take "17"in java code? ... View Questions/Answers

array ADT  March 4, 2011 at 1:03 PM
Write a program using array_ADT to retrieve a list of URLs from a file. In your program take an array index as the input and delete the entry corresponding to that index. ... View Questions/Answers

json  March 4, 2011 at 12:23 PM
how to get data in json object from database ... View Questions/Answers

jsp program related  March 4, 2011 at 11:57 AM
how to run jsp program ... View Questions/Answers

how to set size of button,textfield.  March 4, 2011 at 11:52 AM
how we set size of button textfield etc and reduce problem when click maximize button the text or textfield get large how to set as a preferd size in the panel or frame .when we click maximize button not effect on text or button to their of size the set on the prefered size ... View Questions/Answers

LOGIN PAGE  March 4, 2011 at 11:45 AM
A java program with "login" as title,menus added, and a text field asking for firstname, lastname, and displaying current date and time ... View Questions/Answers

Android  March 4, 2011 at 11:02 AM
how to read input values from a dialog box to hash table and put those values to another dialog box in android???? ... View Questions/Answers

URGENT !!!!! Any PERL language Expert .  March 4, 2011 at 10:51 AM
I have input 50 amino acid sequences in NetPhos 2.0 server to know position of phosphorylation sites. I want to extract or parse the position of phosphorylated serine, tyrosine and threonine residues from result table of NetPhos 2.0 server (ExPASy tool) in MS EXCEL sheet. Can this be d... View Questions/Answers

Mobile Communication  March 4, 2011 at 10:42 AM
how two mobiles communicates? ... View Questions/Answers

error in driver  March 4, 2011 at 10:27 AM
i have done connection settings for oraclethin driver in netbeans ide 6.9.1. and i was able to view tables of my database.but when i am trying to access tables from my java class i was getting error in the driver.could you please help me. ... View Questions/Answers

TextField on the Image  March 3, 2011 at 11:47 PM
how we set label or textfield etc. on the Image ... View Questions/Answers

javascript validation  March 3, 2011 at 11:42 PM
How to do javascript validations to check whether the entered primary key is present in the database or not .Iam using jsp language ... View Questions/Answers

javascript validation  March 3, 2011 at 11:42 PM
How to do javascript validations to check whether the entered primary key is present in the database or not .Iam using jsp language ... View Questions/Answers

help with JDateChooser to insert date into sql  March 3, 2011 at 11:32 PM
TextField3 = new com.toedter.calendar.JDateChooser(); TextField3.setDateFormatString("MM-d-y‚?¶ private void buttonActionPerformed(java.awt.event.Act‚?¶ evt) { try{ DateFormat df = new SimpleDateFormat("MM/dd/yyyy"); String value1=TextField1.getText(); String value2=TextField2.getText(); ... View Questions/Answers

JavaBean tutorials  March 3, 2011 at 10:08 PM
JavaBean tutorials ... View Questions/Answers

java script  March 3, 2011 at 9:29 PM
how to write a Java script program to enter number in two text fields and then automatically display the total in another text field.. ... View Questions/Answers

multivalued attribute  March 3, 2011 at 9:22 PM
I have a author as multivalued attribute and i have inserted values for it in database but now how to insert values in the database through form .I have written query as shown below and iam getting error . String query4="INSERT INTO author_det(accno,isbn,author) VALUES ('"+accno+"','"+is... View Questions/Answers

what is the difference between pop and oop  March 3, 2011 at 9:12 PM
what is the difference between pop and oop? ... View Questions/Answers

program for default constructor in java  March 3, 2011 at 8:55 PM
class Box { double l; double b; double h; Box() { l=2.3; b=3.4; h=4.5; ... View Questions/Answers

please tell me  March 3, 2011 at 7:48 PM
i have created one table,when i close and again login, table name will be there, but its content not displayed, showing as no rows selected, please tell me the reason ... View Questions/Answers

Wt is easy way to learn UML  March 3, 2011 at 7:31 PM
Hello Friends, Please guide me,How to learn UML in easy way and efficent way. Thanks in Adavance Thanks, Abiram ... View Questions/Answers

How to trim string till indexof the string  March 3, 2011 at 6:22 PM
how to trim string till indexof the string ... View Questions/Answers

loyality application  March 3, 2011 at 6:12 PM
Loyalty Application XYZ Bank is a leading public sector bank in India and has recently launched a credit card in alliance with Visa. The credit card industry in India is currently cluttered with many cards and the senior management wanted to create an attractive Loyalty Application for its custom... View Questions/Answers

logistic case study  March 3, 2011 at 6:11 PM
Logistics Case ABC is an upcoming logistics company .The company offers air cargo services from Bangalore Airport office to 10 international locations and vice versa. They can handle cargo up to 40 kilos in a single consignment. The company offers three kinds of services-normal, express & pla... View Questions/Answers

ipms case study  March 3, 2011 at 6:10 PM
IPMS Case Study ABC company is a small software company. Due to a good delivery track record, the company started to get more projects. The CEO felt the need for an in house project management tool. This would enable the organization comply SDLC process and scale up. Most of the clients of ABC co... View Questions/Answers

dth case study  March 3, 2011 at 6:09 PM
DTH Case Study BNM Corp is a new player in the DTH (Direct to Home) satellite TV business in India. It has a sister concern BNV Corp which is a broadcaster and owns few channels. BNM corp entered into the DTH space to complement the operations of its sister concern and to get a stronghold on the ... View Questions/Answers

computer manufacture case study  March 3, 2011 at 6:09 PM
Computer Manufacturer Case Study BNM is an upcoming computer manufacturer. The company was making a mark in the desktop and laptop segment due to aggressive pricing and good products. The sales of the company increased rapidly and then the company decided to implement a software solution to impro... View Questions/Answers

caller tunes case study  March 3, 2011 at 6:08 PM
Caller Tune Case Study ABC Corp is a new telecommunication player in India. The company was a player in the GSM space and had a pan India License. The company provided very good service and as a result added millions of customers in a short span. As a value add, the company introduced ‚??caller t... View Questions/Answers

broad band case study  March 3, 2011 at 6:07 PM
Broadband Case Study LKV Company is a new firm which won a Pan India broadband spectrum in the recently concluded broadband spectrum auction. The Company decided that the market roll out will be done in a phased manner. The company decided to set up the I.T infrastructure and implement a software... View Questions/Answers

case study  March 3, 2011 at 6:05 PM
Chocolate Manufacturer Case Study CDA Company is in the business of manufacturing chocolates. The company delivers various chocolate products like- chocolate bars ,chocolate powder ,chocolate gift box and chocolate tins/packets. Their main product is the chocolate bar which comes in various categ... View Questions/Answers

please help me  March 3, 2011 at 5:47 PM
interface Test1 { String toString(); } public class Test { public static void main(String[] args) { System.out.println(new Test1() { public String toString() { return "test"; } }); }} ... View Questions/Answers

Second level cache  March 3, 2011 at 4:53 PM
Hi, I have been asked one question which I have no idea about. It's like I have enabled second level caching and the data has changed behind the scene by some other application. How do I detect the changes and how do I refresh( reload) my second level cache. Please advise, and ignore my poor unde... View Questions/Answers

Servlet error Messsage  March 3, 2011 at 4:40 PM
Sir, I have a login jsp page, after checking input in servlet, I want to display error message from servlet to the same jsp login page from which I had taken login info. thanks in advance. ... View Questions/Answers

stop word removal from text file  March 3, 2011 at 4:08 PM
i need java source code for stop word removal from a text file ... View Questions/Answers

wnidows button  March 3, 2011 at 2:58 PM
How to handle windows back and forward button in struts applications, without using java script? ... View Questions/Answers

hibernate  March 3, 2011 at 2:28 PM
can any one one explain what is hibernate ? ... View Questions/Answers

how to retrieve data from database using gwt  March 3, 2011 at 2:24 PM
how to retrieve data from database using gwt ... View Questions/Answers

how to retrieve data from database using gwt  March 3, 2011 at 2:24 PM
how to retrieve data from database using gwt ... View Questions/Answers

coding of button  March 3, 2011 at 2:10 PM
What is code of fetching the value of button in a textbox using javascript? ... View Questions/Answers

please help me.  March 3, 2011 at 2:01 PM
Please send me the validation of this below link. the link is http://www.roseindia.net/answers/viewqa/JSP-Servlet/9584-JSP-Servlet-Search-and-Edit.html Thanks Trinath ... View Questions/Answers

when refreshing the page the data is stored in data base again  March 3, 2011 at 1:26 PM
Hi, In my application, I am adding form data in database on click of submit button.But the problem is, when user refreshes the page, the data added one more time into the database and so on... What can be the solution for this, please some body give me good link for this problem.... View Questions/Answers

Please explain the logic....  March 3, 2011 at 1:17 PM
class A1 { } class B extends A1 { } public class ComingThru { static String s = "-"; public static void main(String[] args) { A1[] aa = new A1[2]; B[] ba = new B[2]; sifter(aa); sifter(ba); sifter(7); System.out.printl... View Questions/Answers

m mad  March 3, 2011 at 12:58 PM
pratiksha says - how to code the project?? :P ... View Questions/Answers

Jaca Collection  March 3, 2011 at 11:35 AM
does Java collection allow incompatible types to be stored in single collection? ... View Questions/Answers

answer me this program  March 3, 2011 at 11:33 AM
Java Code to Maintain student record,Name, Age, Marks of 5 subjects for a Student,Display Student age and name,Calculate Average of all marks and display it ... View Questions/Answers

answer me this program  March 3, 2011 at 11:33 AM
Java Code to Maintain student record,Name, Age, Marks of 5 subjects for a Student,Display Student age and name,Calculate Average of all marks and display it ... View Questions/Answers

getting byte[] at client side in SOAP Webservice framework (Axis2)  March 3, 2011 at 11:23 AM
How can I receive the byte[] data at the client side. I am serializing the Java Object, and sending as byte[], but not sure how can i get it at client side, so that I can deserialize and get my original Java Object ... View Questions/Answers

why it is throwing classCastException.  March 3, 2011 at 11:07 AM
public class Redwood extends Tree { public static void main(String[] args) { new Redwood().go(); } void go() { go2(new Tree(), new Redwood()); go2((Redwood) new Tree(), new Redwood()); } void go2(Tree t1, Redwood r1) { Redwood r2 = (Redwood)t1; Tree t2 =... View Questions/Answers

Problem while using tomcat 6.0 in eclipse with struts application  March 3, 2011 at 10:55 AM
Hi please provide solution for the following problem org.apache.jasper.JasperException: java.lang.ClassCastException: org.apache.catalina.util.DefaultAnnotationProcessor cannot be cast to org.apache.AnnotationProcessor org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletW... View Questions/Answers

please help me.  March 3, 2011 at 10:39 AM
How to read a properties file in java with a suitable example. Please send me. Thanks Trinath ... View Questions/Answers

How to Remove Repeated Characters from the String?  March 3, 2011 at 10:25 AM
Hi, I trying to develop an application which will remove the repeated characters from the string. So, kindly suggest me any example or online reference so that i will try my self. Thanks ... View Questions/Answers

How to Create Multiplication Table from 1 to 10?  March 3, 2011 at 10:20 AM
Hi, I want to develop an small application store products. So, i how to create multiplication table 1 to 10. Please suggest online example related to creating multiplication table. Thanks ... View Questions/Answers

What is the use of Print or Echo Function in PHP?  March 3, 2011 at 10:12 AM
Hi, Can anyone explain what is the use of print or Echo function in PHP? Please provide online reference for this. Thanks, ... View Questions/Answers

java  March 3, 2011 at 8:49 AM
show the reverse output for the given input ... View Questions/Answers

voice recognition in j2me  March 3, 2011 at 7:41 AM
sir, how ca i implement voice recognition in j2me?i understood that audio can be recorded and then converting it into text.but this will be time consuming.can you suggest another method in j2me? ... View Questions/Answers

calender event  March 3, 2011 at 7:35 AM
hi, how we can set an alarm in calender through j2me and sending that reminder to another mobile? thanks in advance ... View Questions/Answers

hi  March 3, 2011 at 12:34 AM
'print("code sample");`class example(){ public.static.void.main(); system.out.println("this is first pro");} ... View Questions/Answers

Voice Recognition in Visual Basic  March 2, 2011 at 11:24 PM
Sir, I'm BCA final year student and "voice recognition" is my major project,I want to make it by myself in "Visual Basic" How can it possible in 'V.B.net'. which initial step should i follow. Thank you sir ... View Questions/Answers

How to delete the row from the Database by using while loop in servlet  March 2, 2011 at 10:56 PM
Dear Sir/Madam, I am trying to delete the one user data in the Oracle SQL server database by using Servlet program (Tomcat server). In Database table have 6 users details are there. Table name is ‚??JDUSER‚?? and columns are USERS (Char), PASS (Varchar2) and CODE (Va... View Questions/Answers

Regarding Database Creation  March 2, 2011 at 9:20 PM
How to use the hibernatetutorial database for running the first application. Is it enough to just create the database on the local host or do we need to create the tables in the database. If i need to create tables please provide the schema. your advice in this regard highly appreciated. ... View Questions/Answers

what is proper way to save pictures in SQl database and call it through JSP ?  March 2, 2011 at 9:14 PM
Hi guys, I usually store picture path in DB and call them through 'getContextPath()' mehtod using this method I can call pictures and Text on same page simultaneously, But if I use BiteStream to call pictures after changing MIME type i can't see text on same page. Please tell me proper way to do ... View Questions/Answers

looping with strings  March 2, 2011 at 9:00 PM
how to print this w we wel welc welco with loop? ... View Questions/Answers

for loop  March 2, 2011 at 8:51 PM
** * ... View Questions/Answers

odd numbers with loop  March 2, 2011 at 8:49 PM
get the odd numbers till 100 with for,while loop ... View Questions/Answers

Multiple url handling  March 2, 2011 at 7:28 PM
I want to pick URLs from excel/CSV file and assign those urls to String variable and use that string variable to open the specified url from browser. I have written code to open browser using selenium libraries. Can you please help me in first part? ... View Questions/Answers

How to send massage like sms websites  March 2, 2011 at 5:19 PM
Hi sir how i can make a small project in php (send massage by website like free sms website on internet) Please advice me. ... View Questions/Answers

Function pointer in c  March 2, 2011 at 5:08 PM
What is the difference between function call with function pointer and without function pointer(normal function call)? ... View Questions/Answers

Delete database Table through hibernate and Spring  March 2, 2011 at 4:56 PM
Hi, I am using Spring,Hibernate and Tapestry to save and also fetch data simultaneously from mysql database.I am facing a problem,whenever i refresh the number of data saved and fetched is repeated all the time.Please give me a solution to get data only once without repetation,or Detete table aft... View Questions/Answers

Date Format required to change in java  March 2, 2011 at 3:51 PM
can we change the format of date like sql as per our requirements???If yes then please give the detail solution. ... View Questions/Answers

page is not getting loaded when refreshing???  March 2, 2011 at 3:11 PM
I am loading an image section(image,demo link,Zoom) in a webpage by using javascript function in JSP. It will get all details of image section from database. I am getting header section always but page is not getting loaded after the header section when I refresh the page. Note: Header s... View Questions/Answers

RFT  March 2, 2011 at 2:55 PM
Hi I am new to RFT and I am trying to automate an application using it. I need to capture a Number displayed on the screen (e.g 0000000023) using java. I am using Mozilla and Rational Functional Tester (RFT 8.2). This number is somewhere in between a paragraph, I need to find it and capt... View Questions/Answers

Recorder  March 2, 2011 at 2:55 PM
I want to create an application for recording sound in .wav format.... Now it's save in .amr format..... Mobile used for testing is Nokia c1-02............ Please help me..... Thanks in advance............. ... View Questions/Answers

time difference  March 2, 2011 at 2:29 PM
How to subtract time? 12:38:35 pm - 00:15:48 am plz raply soon.... ... View Questions/Answers