Home Answers Questions Question and Answers


 
 

Latest Programming Questions askedAsk your question?

jsp login code when username , password and dropdown box value is correct...  April 2, 2012 at 6:50 PM
my project has login in whic i should select the company name in dropdown box.... so when i login i all the three username,password and dropdown box value(i.e)company name should match.... pls provide code.... thanx ... View Questions/Answers

Pls provide me jsp code to get values in drop down list from another table's field....  April 2, 2012 at 6:45 PM
my project has customer registration and company registration pages..... when i insert data in company registration .. it ll have company id and company name fields .... these both fields should be automatically inserted in customer registration page and should be shown in drop down box in front ... View Questions/Answers

program to display the first ten terms of the series  April 2, 2012 at 6:08 PM
Write a program to display the first ten terms of the following series : 1) 1,-3,5,-7,9..... 2) 3,6,12,24..... 3) 2,5,10,17....... 4) 0,1,2,3,6............ 5) 0,3,8,15.......... ... View Questions/Answers

Advertisement

pause play NSTimer  April 2, 2012 at 5:08 PM
How to pause or play NSTimer? ... View Questions/Answers

Joining Multiple table in Hibernate  April 2, 2012 at 4:50 PM
Hi everyone, I'm new to Hibernate (even in JAVA), and I'm having some doubt's about one thing. I created 2 tables in PostgreSQL with 1 to many relationship, and now i'm trying to test some queries to them. Tables names are TbPessoa (one) and TbTelefone(many). ... View Questions/Answers

highlight uitableviewcell on selection  April 2, 2012 at 4:30 PM
I am unable to highlight the UITableViewCell on selection in my application. ... View Questions/Answers

J2ME count character into string  April 2, 2012 at 12:27 PM
i am new in J2ME, my problem is how to count character into number, i had been research google for almost 2 days and got nothing...some one plz give me a punch :) as an example, 1. i got a text form which allow user to input character user input helloworld then press Next c... View Questions/Answers

Delete Account  April 2, 2012 at 9:01 AM
How to delete account? ... View Questions/Answers

reduce complexity  April 2, 2012 at 8:15 AM
I want to make the logic simple.all suggestions welcomed servlet //Update3 int testid = Integer.parseInt(request.getParameter("testid")); int question1 = Integer.parseInt(request .getParameter("questionid1")); ... View Questions/Answers

chn.ilp.test  April 2, 2012 at 8:04 AM
public class Constants { public static String DRIVERNAME = "oracle.jdbc.driver.OracleDriver"; public static String SERVERNAME = "172.24.137.30"; public static String PORTNUMBER = "1521"; public static String SID = "ora10G"; public static Str... View Questions/Answers

(help me) use wait() and notify() method in Thread.  April 2, 2012 at 6:10 AM
we have to create 3 classes..1 is the main class, 1 is Thread UUM class, and another one is Thread Sintok class...we have to use wait(); and notify(); to comes out with this output:- (the output must be begin with UUM and end with SINTOK) UUM SINTOK UUM SINTOK UUM SINTOK UUM SINTOK UUM SI... View Questions/Answers

search filter and JTable  April 2, 2012 at 5:40 AM
I first im not speak englis very well, so my question is: how can i make search data in JTable of java? i wan to search records in table or textfield but the data display in JTable. Note: i dont have a table. PLEASE HELP.... THANKS ... View Questions/Answers

using the built-in Queue class  April 2, 2012 at 12:50 AM
Queues are after used to stimulate the flow of people , cars , airplanes , transactions , and so on . write a program that models checkout lines at a supermarket, using the built-in Queue class.Several lines of customer should be displayed. you can add a new customer by pressing a key. ... View Questions/Answers

Please help me to modify my java code from php code  April 2, 2012 at 12:49 AM
i want to covert this php code int java/JSP . if (isset($_POST['orders'])) { $orders = explode('&', $_POST['orders']); $array = array(); foreach($orders as $item) { $item = explode('=', $item); $item = explode('_', $item[1]); $array... View Questions/Answers

Modify Java code from PHP Code  April 2, 2012 at 12:49 AM
i want to covert this php code int java/JSP. if (isset($_POST['orders'])) { $orders = explode('&', $_POST['orders']); $array = array(); foreach($orders as $item) { $item = explode('=', $item); $item = explode('_', $item[1]); $array[... View Questions/Answers

jdbc  April 1, 2012 at 7:56 PM
is it possible to use doget & dopost method with jdbc to call in a servlet programe? ... View Questions/Answers

Servlets Programming  April 1, 2012 at 7:03 PM
Hi this is tanu, This is a code for knowing how many times a servlet has been accessed. but after executing this i am getting only 1 as output for many times of execution. I want to store the counter value once and then want to know how many times it(servlet) has been called. How to store that... View Questions/Answers

Java 2 micro editionJ  April 1, 2012 at 6:41 PM
Hello, i am using JCreator, for writing my J2ME program, after building the program, it keeps on given me the following errors: package javax.microedition.midlet does not exist package javax.microedition.lcdui does not exist package javax.microedition.i... View Questions/Answers

Full path of image to save it in a folder  April 1, 2012 at 5:48 PM
Sir ,I am trying to upload a file but only sends file name as parameter. I want a code that would help me to find that image path &upload it as well. I am just a beginner in jsp &trying to create a project. ... View Questions/Answers

Need to decide technologies to create new social site web application in java  April 1, 2012 at 5:15 PM
Hi, I want to create a social site in java, j2ee which should support thousands of user. I want to keep it very simple and light. So few of my questions are : What parameters should I consider in Initial phase of deciding the technologies? Should I choose hibernate ... View Questions/Answers

remove element from stack  April 1, 2012 at 2:01 PM
Hi there I'm looking around on the internet how to remove names from stack by asking user how many names they want to remove and if the number they enter is bigger than the stack number then show error message and if not then remove the names from stack until the stack is empty the exit... View Questions/Answers

discussion forum  April 1, 2012 at 12:16 PM
how to create discussion forum in jsp? ... View Questions/Answers

MS-Access  April 1, 2012 at 1:35 AM
I am trying to upload a image to ms-acess using jsp,and my problem is that it shows some error int the browser that "java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver]COUNT field incorrect ".I think i set wrong datatype for table column in which my image going to be... View Questions/Answers

java vs vb  March 31, 2012 at 9:55 PM
history of java and advanced products as well as vb? compared with java and vb? finalize list out the table of java and vb products? viewers i want more soon... ... View Questions/Answers

history of java  March 31, 2012 at 9:55 PM
history of java and advanced products as well as vb? compared with java and vb? finalize list out the table of java and vb products? viewers i want more soon... ... View Questions/Answers

Selection With Ajax and JSP  March 31, 2012 at 9:26 PM
I am working at a jsp page using ajax for country , state, city selection. so if he select country it will populate the state and city selection (both). After selecting country if he select city it will populate the state selection and if he select the state it will populate the... View Questions/Answers

P2P file sharing application  March 31, 2012 at 9:07 PM
Hi, I have developed a simple file sharing application in java using TCP socket. Now, the question is how do i make this application P2P? Can Distributed Hash Table (DHT) do that or there are other options that i can implement in my application to make it P2P? I would be very thankful to get some... View Questions/Answers

how to retrieve the url pattern of the requesting servlet?  March 31, 2012 at 9:06 PM
Hi friends, I need to know this. For example if you have Servlet1 and Servlet2. Now from servlet1, you are going to servlet2. So in the servlet2 how you will display the url pattern of the servlet1? This is my question. please answer me soon. Thanks praveen. ... View Questions/Answers

what's the logic for create pattern program  March 31, 2012 at 8:02 PM
1 2 3 4 5 5 1 2 3 4 4 5 1 2 3 3 4 5 1 2 2 3 4 5 1 ... View Questions/Answers

Online quiz mini project  March 31, 2012 at 6:00 PM
Sir i need a online quiz program coding using java servlet, jdbc odbc connection with ms. access. If possible send that source code to me. Thank you. ... View Questions/Answers

javascript integer to string conversion  March 31, 2012 at 5:06 PM
How to Javascript Integer to String Conversion ... View Questions/Answers

netbeans library  March 31, 2012 at 4:50 PM
Hi could someone build a program in netbeans for a book library please.The program should provide a menu of options to work with the library, including: 1) Adding a new item to the library 2) Viewing all stock in the library 3) Lending an item 4) Returning an item<... View Questions/Answers

netbeans library  March 31, 2012 at 4:49 PM
Hi could someone build a program in netbeans for a book library please.The program should provide a menu of options to work with the library, including: 1) Adding a new item to the library 2) Viewing all stock in the library 3) Lending an item 4) Returning an item<... View Questions/Answers

Importing in java . . . .  March 31, 2012 at 4:06 PM
We all know that when we are importing a class of a package in another package , the methods which are public are only available and we can use it . But suppose the method has default access specifier , yet we can use the method . With default access specifier it is only available to classes insi... View Questions/Answers

Java  March 31, 2012 at 4:00 PM
How to retrieve image from MySQL database using java? ... View Questions/Answers

calendar js  March 31, 2012 at 2:57 PM
there are two calendar on form and i want that once date chosen from first calendar , the second calendar should be disabled till that date. for eg once i have chosen date 21-03-2012 from first calendar, in the next calendar the person can't able to choose data till 21-03-2012, the dates... View Questions/Answers

to show graph  March 31, 2012 at 2:34 PM
by clicking on submit button how to show the graph by fetching data in mysql? ... View Questions/Answers

Problem in show card in applet.  March 31, 2012 at 2:02 PM
The following link contained the card demo with applet. http://www.roseindia.net/java/java-tips/45examples/30graphics/cardDemo/cardDemo.shtml Now I am trying to run this code in eclipse but Not show card in the applet, then I add a code in paintComponent method like- "g.drawImage(c.imag... View Questions/Answers

how to retrieve data from table with runtime values in sql?  March 31, 2012 at 1:20 PM
how to retrieve data from table with runtime values in sql? For example, I have table with column (date, movie1, movie2,movie3).Now whenever I pass different dates into the method(which performs database retrieval actions) My ResulSet has to execute the command with the dates which I pass. I know... View Questions/Answers

runtime exception hibernate  March 31, 2012 at 12:19 PM
runtime exception hibernate ... View Questions/Answers

avaudioplayer next track  March 31, 2012 at 11:51 AM
How to set next and previous track in AVAudioPlayer in iPhone? ... View Questions/Answers

remove special characters iphone  March 31, 2012 at 11:47 AM
remove special characters iphone ... View Questions/Answers

javascript dom error-message  March 31, 2012 at 11:35 AM
javascript dom error-message ... View Questions/Answers

arraylist in java  March 31, 2012 at 11:01 AM
arraylist in java ... View Questions/Answers

java swing button click event  March 31, 2012 at 10:51 AM
java swing button click event ... View Questions/Answers

Not sure what I am missing ? Any ideas?  March 31, 2012 at 10:49 AM
import java.util.*; public class HangMan2 { char guess; String userInputs; String word; static String[] userInput; static Scanner scan = new Scanner(System.in); static Random rand = new Random(); // The following ro... View Questions/Answers

log in  March 31, 2012 at 9:37 AM
sir i designed one login.jsp page with one form, username,login,and one submit button .if i enter username and password its been verify the mydatabase in in table in the field of username and password while it s correct means it s going to my personel.jsp..already i done this task..but problem is... View Questions/Answers

I am new to programming and I am not sure what to do next? Any ideas?  March 31, 2012 at 8:38 AM
import java.util.*; public class HangMan2 { char guess; String userInputs; static Scanner scan = new Scanner(System.in); static Random rand = new Random(); // The following routine will determin if the character c // is inside ... View Questions/Answers

Java Code to Block a website accessed by any browser in windows  March 31, 2012 at 5:53 AM
I want create an application in Java through Netbean IDE to block any website to be accessed by any browser. I also want to display only its html contents. please help... ... View Questions/Answers

jdbc  March 31, 2012 at 1:00 AM
what is the return type of BatchUpdates()? ... View Questions/Answers

how to by default chceckbox button is selected in struts  March 30, 2012 at 11:41 PM
i want to by default checkbox is selected please help me.. my is follwing <%@taglib uri="/struts-tags" prefix="s" %> in this iterator so many rows are the... View Questions/Answers

Error 404 on localhost:8080 Tomcat Apache 6.0.32 with Elipse IDE and IE/Other Browsers  March 30, 2012 at 11:37 PM
HTTP Status 404 - type Status message description The requested resource () is not available.Apache Tomcat/6.0.32 I have checked the following: http://localhost:8080 - 404 not found http://localhost:8005 - cannot display http://localhost:8009 - cannot display On the IDE wi... View Questions/Answers

Addintion in year fields of sql date in a java page  March 30, 2012 at 11:01 PM
In my database i have a field StartDate and EndDate Now entering date from my jsp and fetching it in the servlet protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { ... View Questions/Answers

java help  March 30, 2012 at 9:43 PM
1) build class(es) for the dresses, choose (dress ID, color, price, designer)( link lists) 2) construct the driver class by establishing two separate objects for each sister 3) let them both to enter the dresses details 4) join the two collections of dresses information so they can hand i... View Questions/Answers

input box  March 30, 2012 at 9:35 PM
give me the code of input box in core java. ... View Questions/Answers

input box  March 30, 2012 at 9:35 PM
give me the code of input box in core java. ... View Questions/Answers

to update the information  March 30, 2012 at 9:33 PM
sir, i am working on library mgt project. front end is core java and backend is ms access.i want to open,update the information through form.please send me code earliar. ... View Questions/Answers

update the information  March 30, 2012 at 9:33 PM
sir, i am working on library mgt project. front end is core java and backend is ms access.i want to open,update the information through form.please send me code earliar. ... View Questions/Answers

please fix the error  March 30, 2012 at 8:36 PM
org.apache.jasper.JasperException: Unable to compile class for JSP: An error occurred at line: 14 in the jsp file: /doctor.jsp Invalid character constant 11: Connection con=DriverManager.getConnection("jdbc:mysql://localhost:3306/phs", "root", "root"); 1... View Questions/Answers

Struts2  March 30, 2012 at 5:20 PM
Hi I am using struts 2,In struts2 architecture ,I couldn't understand the purpose of ActionMapper and ActionProxy.My Question is,when the request comes into the picture,the filterdispatcher consult the ActionMapper for mapping b/n request and acion.so already mappin is done here,now what ... View Questions/Answers

multiple submits, single form.  March 30, 2012 at 5:07 PM
is it possible to use multiple submit buttons in a single form? ... View Questions/Answers

regarding out put display in html text field  March 30, 2012 at 4:29 PM
how to dispaly the output coming from servlet in a particular text field of html. ... View Questions/Answers

jquery alert dialog box using struts2  March 30, 2012 at 4:24 PM
how to develop jquery alert dialog box using struts2 ... View Questions/Answers

servlet  March 30, 2012 at 4:02 PM
can i stoar record in variable which selected from table in servlet? ... View Questions/Answers

display result in row format  March 30, 2012 at 3:49 PM
how to use stringtokenizer on table? and display in table format.... View Questions/Answers

Get your friends' phone numbers  March 30, 2012 at 3:09 PM
How to create on update trigger? ... View Questions/Answers

Edit word document Headers and Footers using POI Library in java?  March 30, 2012 at 2:50 PM
Hi All, I need code to modify the Header and Footer contents of a ms-word template using POI or JACOB libraries. Could any one help me? Thanks Advance! With regards, Alex ... View Questions/Answers

increamenting the value  March 30, 2012 at 1:40 PM
Hi, I am retrieving books name from database and attaching two input tags i.e.One Text area to comment and one checkbox to rate but i am unable to insert the rated n commented rows in database because they all have the same name.The solution could be incrementing the name of the tag with some val... View Questions/Answers

Ajax  March 30, 2012 at 1:16 PM
How to learn AJAX?????? ... View Questions/Answers

Problem of Import JWorkbook  March 30, 2012 at 12:59 PM
Hi... i can't use the jworkbook in my project.what types of library files in import... ... View Questions/Answers

SpringDAO  March 30, 2012 at 12:40 PM
Here iwant to use queryForMap(-) method in JdbcTemplate class.how to use RowMapper in that class.and also get the results are displayed in the table format in result page. ... View Questions/Answers

string to long in javascript  March 30, 2012 at 12:25 PM
how to parse string to long in JavaScript? ... View Questions/Answers

Session Variable in Wicket  March 30, 2012 at 11:48 AM
can anyone tell me about sesion variables in wicket ? thanks :) ... View Questions/Answers

convert date into String like 9-10-2012 into nine october two thousand twelve  March 30, 2012 at 11:28 AM
convert the date like 9-10-2012 into nine october two thousand twelve on button click event using jsp ... View Questions/Answers

how to select second combobox value .  March 30, 2012 at 11:17 AM
I requirement is , i have two combo box, i am selected first combo box value then automatically second combo box value show ,But this both combo box value i retrieves in database. please send me this code. ... View Questions/Answers

Select DropDown Default  March 30, 2012 at 8:41 AM
Hi there, i have a program in JSP where i have 2 tables tbl1 which contains the "page" and tbl2 which contains most of the record, in my jsp page i have a one dropdown menu where the user can choose, i.e if the user select PAGE 1 in the dropdown menu, it will display all the content of... View Questions/Answers

connection of java file to excel file and put data from excel file into oracle db  March 30, 2012 at 12:03 AM
how to create button on excel sheet using java swing and how we give action to that button excel sheet? how we connect excel file to java file as wellas to oracle db to insert excel data into database? ... View Questions/Answers

RMI  March 29, 2012 at 9:51 PM
can anyone tell me how to compile and run rmi in netbeans 6.9.1 for standalone application because i face problem running it!!!!! ... View Questions/Answers

java  March 29, 2012 at 8:58 PM
which has the high time complexity??? a program having 100 lines of code or a program which goes to its loop 100 times. ... View Questions/Answers

insert query in jsp  March 29, 2012 at 7:25 PM
give me insert code in jsp at run time ... View Questions/Answers

HOW TO CONVERT THIS CODE INTO GUI  March 29, 2012 at 6:52 PM
System.out.println("\n\t UGANDA CHRISTIAN UNIVERSITY\n"); System.out.println("\n\tFACULTY OF SCIENCE AND TECHNOLOGY\n"); System.out.println("\n BACHELOR OF SCIENCE IN COMPUTER SCIENCE\n"); System.out.println("\n\t YEAR TWO SEMESTER TWO\n")... View Questions/Answers

Editing UI components using managed bean  March 29, 2012 at 6:03 PM
Hello friends... I want to edit the properties of a inputText on JSP page using its managed bean. I have a simple inoutText and commandButton on jsp page and on click of button, i want to change value of button and want to make textbox 'readonly'. Please suggest me how to do this. Thanks.:) ... View Questions/Answers

how to create forum on java subject in jsp/servlet ?  March 29, 2012 at 5:28 PM
hi , i want to implement forum on java subject in jsp/servlet technology .how can i do it,which is the table required for it in mysql? formate like what is java is ? 2Reply onclick reply automatic new texbox is appear in below Question and user can reply on that question. please r... View Questions/Answers

JavaScript Validate UK Date  March 29, 2012 at 5:00 PM
How to Validate UK Date in JavaScript ... View Questions/Answers

Foreign key update table  March 29, 2012 at 4:49 PM
How to update table that has the foreign key in SQL..? ... View Questions/Answers

form with username and password  March 29, 2012 at 3:57 PM
i want to design one form with username and password,login...if i click login the jsp check the database table with all username and password field if its find means the link goes to my personalinfo.html...i am confused how to check enterted username with all username fields and how to transfer l... View Questions/Answers

restrict jtable editing  March 29, 2012 at 3:46 PM
How to restrict jtable from editing or JTable disable editing? ... View Questions/Answers

java access resource bundle  March 29, 2012 at 3:34 PM
java access resource bundle ... View Questions/Answers

noise during print screen  March 29, 2012 at 3:21 PM
hi there, i have a java program which can print screen every 1 seconds... but during the print screen, the image seems will have some noise and ends up half page of the image will be black screen . can anyone help me ... thanks in advance for the help .. ... View Questions/Answers

coding  March 29, 2012 at 1:36 PM
I need the logout coding. can you please help me. ... View Questions/Answers

javascript image not found  March 29, 2012 at 1:13 PM
javascript if image not found ... View Questions/Answers

javascript confirm yes no  March 29, 2012 at 12:29 PM
javascript confirm yes no - how to create confirm dialog box yes or no in JavaScript? ... View Questions/Answers

jdbc  March 29, 2012 at 12:07 PM
how to display database contents? ... View Questions/Answers

Convert sqlserver database to msexcel  March 29, 2012 at 11:56 AM
How to i convert sqlserver database values into msexcel sheet using java... ... View Questions/Answers

I am from .net background, I want to learn SOA.  March 29, 2012 at 11:21 AM
Hi I am from .net background, I want to learn SOA. Could it possible for me to learn SOA, I suppose SOA includes Java. I dont have knowledge of java. Please help Thanks ... View Questions/Answers

how to use stringtokenizer on table? and display in table format.  March 29, 2012 at 10:06 AM
table is retrieved from mysql database and each row contains data like(java,c,c++,.net). ... View Questions/Answers

java program developing  March 29, 2012 at 12:24 AM
how to write a java program that implementing a double link list and use it to insert a list of names and print them to screen. ... View Questions/Answers

How to print the following pattern in java?  March 29, 2012 at 12:22 AM
How to print the following pattern in java? he he is he is going he is going in ... View Questions/Answers

Object Orient Programming  March 28, 2012 at 11:27 PM
I have this program that needs to display multiple taxis. I have the code but there is an error. Could someone tell me where i am going wrong?? import java.awt.*; import javax.swing.*; public class TaxiCanvas extends JComponent { private Taxi[] t... View Questions/Answers

java mail  March 28, 2012 at 10:52 PM
this code showing an error couldn't connect smtp host please help <%@ page language="java" import="javax.naming.*,java.io.*,javax.mail.*, javax.mail.internet.*,com.sun.mail.smtp.*"%> <html> <head> <title>Mail</title> <... View Questions/Answers

DMCA.com