36,051 Topics
![]() | |
Recently I updated my IE6 to IE7. Everythings looks fine but my program using java plug-in doesn't works anymore. I though this only happen in my pc but my friend faced it too. I have been searching this case thru some search engines but cannot find why? Any suggestion? P.s: … | |
I am using NetBeans for my java class. I am trying to run the ever popular inventory program. My issue may be elementary, but I am still not quite grasping it. I am apparently not compiling it correctly. I set up three programs (?) - "Inventory", "Products", and "TestDriver". My … | |
Hi what purpose of HttpSessionContext? all the session information are stored this place. Thanks inadvance arun | |
hi all , i want to make function that remove any space before sentance (i.e if user enter multi space before your comment remove it ) and if enter multi space only this function return empty string . | |
Hi, I am trying out a bank account program using the corejava package. I am getting a run-time eception when I create a new account & am unable to trace where the error is. Plz help. I am giving the code below. [CODE] import corejava.Console; /**************************************************************** **cLASS bANKaCCOUNT REPRESENTING THE … | |
Hello, I have a tag file used by my JSP's, in that tag file I have Struts 2 tags(textfield, radio, etc) The tags work OK, they output HTML controls and submit data, but the resulting page does not display the label (set in tag's attribute) and fieldErrors set by the … | |
Hi all, i did code in jsp for "change password" when user want to change his password he have to enter his old password and then new password. if he enter wrong password there will be error msg display "sorry you have entered wrong password, and if he enter correct … | |
how to work servlet, jsp programs at eclipse 3.0.? Please give any online tutorial site for larning eclipse, and seting up envirnomets for eclipse. Please help me for this. | |
Hi, I have setup connection with GLUE directory. and getting some attribute also, which i am specifying in search array parameter, but not all. i need to fatch all attributes and their value. even i m not able to fetch the schema also. I don't know what is problem, as … | |
I've tried to run the BankServer.java class for several hours and this is the error it gives me: G:\Distributed Objects\Exercise 3\BankServer.java:11: cannot find symbol symbol : constructor BankImpl() location: class BankImpl BankImpl b = new BankImpl(); I have other classes orf the Bank interface, BankImpl and BankClient but they're all … | |
What i have to create is a program that establishes 2 structs with arrays of CD Albums and then search the arrays for album names and display the album name, Artist or group, songs and their track numbers. My question is; [COLOR="red"]have i missed something in the code?[/COLOR], because it … | |
Hi In any project we can set values to the session.and get value from the session. which place or path the session information to be stored. Thanks in advance | |
Respected Seniors & dear friends I want to know which tutorial is the best one to learn from basics of java. Please give me any links | |
I want the program to have the user select either Y or N to display the list of albums in the array, if the user entered Y to display the list of albums then have the user enter a name for an album from the list to search the array … | |
I have a code generated with netBeans. It use org.jdesktop.layout. I have the file swing-layout-1.0.jar. But I don't know how to compile and run mycode.jave with that jar file. Please write full comands if possible. I'm so new to java that every step use me 2 hours - 2 days. … | |
I've tried to run the code below for several hours and this is the error it gives me: G:\Distributed Objects\Exercise 3\BankServer.java:11: cannot find symbol symbol : constructor BankImpl() location: class BankImpl BankImpl b = new BankImpl(); I have other classes orf the Bank interface, BankImpl and BankClient but they're all … | |
I copy and paste code generated from NetBeans into a java file. To run it, I got message "package org.jdesktop.layout does not exit" What should I do? Thanks ahead. | |
i want a calculator project just use applet not swing or frame i hav but i took just input through mouse but dont perform any operation | |
I'm trying to add an image to a button instead of text. I looked at some examples, and I can't figure out what I am missing. I've imported this because the ex. had it. Don't know if it is needed. [code=java] import javax.swing.AbstractButton; import javax.swing.JButton; import javax.swing.ImageIcon; [/code] Then this … | |
Write the definition of a class Telephone . The class has no constructors, one instance variable of type String called number , and two static variables. One is of type int called quantity ; the other is of type double called total . Besides that, the class has one static … | |
codes in two files. Is there a way to use a method cross files? | |
![]() | Hello everyone! The other day as I was surfing the net I came accross this Java Game on this web page: [URL]http://www.bosanci.net/ljubav.php[/URL] *It is a foreign language and it is a "Crush Calculator" - It asks you to type in a male name in the first string and a female … |
hi everyone how to display mysql query results in a html or jsp page. using java script or any other if u have working code or sample code please send me please help me . its very urgent regards Manjunath | |
hi everyone.I'm a beginner in java and i'm trying to create a full screen applet without any success.Any help will be appreciated. :D | |
Need assistance in the assignment on using an Array of structs. I need to know if the array is initialized properly or what i need to do to get it initialized. Some code has been commented out until i get the array initialized. Here is the code: [code=cplusplus] #include<iostream> #include<iomanip> … | |
Hi all I need a java application to be developed for Game of Life without using applets by using only arrays thanks in advance ![]() | |
illegal starts of expression. public check() at line 50. can anyone hepl me please. class waiters { private double tab; public waiters(String name); { System.out.println("my name is"+name+",i''ll be your waiter!"); tab = 0.0; } public double priceof(String s) { double price; if(s.equals("chicken")) {price = 5.95;} else { if(s.equals("burger")) {price = … | |
Hi, I want to know how can I capture the system date using a java program. I want to run this code automatically when the system is login. I want to capture the system date even if the user change the system date. Kindly waiting for your suggestions Thanking You … | |
public class GradeSystem { public static void main (String args[]) { ........ public int searchStu(int id){ // problem happen int i=0; for (i=0; i<4; i++) { if (student[i].getStudentID() == id) return i;} return i;} int id; boolean d; id = Integer.parseInt(JOptionPane.showInputDialog("Please input ID number : ", JOptionPane.QUESTION_MESSAGE)); d = Student.isStudent(id); … | |
This a problem i faced .When i made applet the access file i faced the following exception: [INLINECODE]java.security.AccessControlException: access denied (java.io.FilePermission text.txt read) at java.security.AccessControlContext.checkPermission(Unknown Source) at java.security.AccessController.checkPermission(Unknown Source) at java.lang.SecurityManager.checkPermission(Unknown Source) at java.lang.SecurityManager.checkRead(Unknown Source) at java.io.FileInputStream.<init>(Unknown Source) at java.io.FileInputStream.<init>(Unknown Source) at java.io.FileReader.<init>(Unknown Source) at CheckTopScore.<init>(CheckTopScore.java:30) at MainFrame.<init>(MainFrame.java:200) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native … | |
Hi All: I needed to passed an integer value from the following code: <%=ic.getTotalNumOfRecords()%> to an attribute of a custom tag <inquiry:tableClaimHistory numberOfRecords="5" dataAction="claimHistoryViewData.do" emptyKey="error.noData"/> The function getTotalNumOfRecords returns an int. The attribute numberOfRecords expects an string. Here are the different ways I tried in a jsp page but I … | |
Hello guys, I've got my JSP set up so when I click on a href link it redirects it to a form, the form then takes in user information and has a html:submit and a html:cancel buttons. Actions are associated with these... Anyway my question is that when a user … | |
hi im new to our community. im running jsp application in jboss server 4.0.4. in that without specify the port no? can i run the application is possible? send replay thanks in advance arun | |
i want to make calendar with date and time my client asked me to do it within 5-6 days of time i am working on it. it seems it takes more time do it.where can i get free calendar applet to instantly put on my client website this is just … | |
i want to implement a special symbol like (integration symbol )in java i want a complete example that i can excute it ![]() | |
hi, please i want learn java applet ,but i do not have any link to get correct start , i make search on this topic but i want to link include java applet from A to Z . thanks | |
is there any available free calendar swing components available or am i going to have to make one from scratch? | |
Which would be the preferred, or more efficient, way to read in a 40mb XML file? I remember reading (awhile ago) there were different methods of parsing XML, some more efficient than others depending on the need. The entire file would eventually need to be loading into an array, so … | |
Hiya.. I have a jsp page to upload some files.. The session is used to store a Map ( session.setAttribute("filemap", filemap ) ). This map contains all the files to be uploaded. I have a file-input type, onChange the file here is added to the map. The map is stored … | |
hello everyone I am using jstl tags such as c:forEach to retrieve values from Bean through servlet ...........For some page if i put this statement (xmlns="[URL]http://java.sun.com/xml/ns/j2ee[/URL]" xmlns:xsi="[URL]http://www.w3.org/2001/XMLSchema-instance[/URL]" xsi:schemaLocation="[URL]http://java.sun.com/xml/ns/j2ee[/URL] [URL]http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd[/URL]" version="2.4") in web.xml ,i get the correct ouput & for other jsp its showing ${} values as it is like ${bean.name}.......... … | |
Hi every body I am a second year computing student and I was lately thinking about project ideas but couldnt figure out a good one. I have recently started java only in my second year and I was thinking developing a web application ( may be auction site ) for … | |
i need to enter commands in one line using delimiter "&" (ampersand) or ";" (semicolon),using one type of delimiter in a line. e.g "cat&cp&rm" or "cat;cp;rm". Both should not be used in one line e.g "cat;cp&rm", when this happens the system exits. I've tried the code below using Split method … | |
Hi I have a method, which is called more than 50 times a second. I have multiple(more than 10) individual variables of different data types initialised in that method & in last part of the method, a single String is returned appending the value of all variables (with conditions on … | |
hi all [B]i m facing an hibernate error in my application using mySql5.0.3 as a data base and net beans 5.5 ide [/B] my application is running very properly but when i loging in next morning it displays the [COLOR=#000000][B]org.hibernate.exception.JDBCConnectionException: could not execute query[/B][/COLOR] and also [COLOR=#000000][B]Connection was closed due … | |
Hi to everyone! I want to learn java ... can anyone suggest books to study, like the one we have in C++. thanks in advance. | |
basically what I am trying create a servlet that will receive the bytes that are being sent from the MIDlet. I have pasted my function that is sending the bytes from the MIDlet so we can be on the same page. If anyone can help please email me at <snipped> … | |
This is a really strange bug... I'm doing a 'game' of sorts for Computer Science, and it works wonderfully. We have a main method that initializes things and starts the game loop. The game itself works when GUI.java is executed. Every method call in the main method is static. Now, … | |
Hello, I am a C++ programmer who just got an associates degree. I went for an interview yesterday and did very well on a C++ technical interview. The company actually deals partly in recruiting and part application development. The interviewer told me that it would be a good idea to … |
The End.