36,051 Topics

Member Avatar for
Member Avatar for thillai

Hi everybody, I am new to JSP.So i may ask simple questions to u..i hope anyone will reply me. when and how the Business functions( written in bean )are called? by JSP or anything else

Member Avatar for peter_budo
0
68
Member Avatar for Minimandz

Please could sum1 help me with this: I'm trying to read text from a file using the Scanner class and i'm not sure y its not throwing the FileNotFound Exception try { Scanner sc = new Scanner (new File ("Food.txt")); wordList[num] = sc.next(); while(sc.hasNext()) { wordList[num] = sc.next(); System.out.println(wordList[num]); num++; …

Member Avatar for Minimandz
0
136
Member Avatar for ceyesuma

Hibernate: select trips0_.PERSONID as PERSONID1_, trips0_.TRIPID as TRIPID1_, trips0_.TRIPID as TRIPID1_0_, trips0_.PERSONID as PERSONID1_0_, trips0_.DEPDATE as DEPDATE1_0_, trips0_.DEPCITY as DEPCITY1_0_, trips0_.DESTCITY as DESTCITY1_0_, trips0_.TRIPTYPEID as TRIPTYPEID1_0_ from TRIP trips0_ where trips0_.PERSONID=? I got this output(above) when I did a System.out on a List. Does this make sense to you. I …

Member Avatar for ceyesuma
-1
161
Member Avatar for Dancealot

Hi all. Thanks for a very nice board. I have come across a problem when i create a midlet. The midlet functions as a normal menu system, and have to call different methods, to start or stop a bluetooth server and client. I have gotten the code for the server …

Member Avatar for Dancealot
0
159
Member Avatar for madhavipoudala

hai every one who can help me. i want to know some demo projects in java where we can find them. please help me giving some websites and how to search in google. thanks in advance one and all.

Member Avatar for madhavipoudala
0
117
Member Avatar for Natique

Hi :) I was messing around with java applets just now, and I can't seem to figure out how to put more than one event handler in an applet. I'm just working on a really simple calculator. Three buttons, one to add, one to subtract and one to clear everything. …

Member Avatar for Natique
0
189
Member Avatar for ravikiran032
Member Avatar for jwenting
0
156
Member Avatar for ravikiran032

I was being troubled by the concept of abstract class.i can't understand that let us take an example abstact class "InputStream" .we can implement method read(byte[]) with it's reference. how does this method is being refferred by it's abstract class as there will be no instantiation to this abstact class.

Member Avatar for Ezzaral
0
131
Member Avatar for ebok

hi everyone, im trying to run a linux script in java where it ask the user to input a password,then when suucessfully executed it prompts the user to enter the same password for verification,how can i do this in java,im using trilead to remotely access and execute command,im having problem …

Member Avatar for ebok
0
135
Member Avatar for sangham

Hi friends, I am using struts framework. I problem is I have fetched the data from from the databse in arraylist and want to display in the drop down here is the code i have written <html:select property="productCategory"> <html:options collection="array" /> </html:select> But I am getting following exception: javax.servlet.ServletException: javax.servlet.jsp.JspException: …

Member Avatar for peter_budo
0
98
Member Avatar for kevinpeterson22

here is the code.. but it is not working.. why? [code=java] import java.sql.*; public class Connect{ public static void main (String[] args){ Connection conn = null; try{ String userName ="testuser"; String password ="testpass"; String url = "jdbc:mysql:/localhost:3306/test"; Class.forName("com.mysql.jdbc.Driver").newInstance(); conn = DriverManager.getConnection (url,userName,password); System.out.println ("Database connection established"); } catch(Exception e){ System.err.println("Cannot …

Member Avatar for stephen84s
0
283
Member Avatar for Falkoner1

Okay, I have many questions, mainly about subjects that haven't been discussed well in my school class, although I also have a few questions pertaining to a RPG I've been working on. 1. Threads. I've tried to search for a good tutorial on their basics, but I can't seem to …

Member Avatar for Falkoner1
0
153
Member Avatar for Alex Edwards

I've always wondered how GObjects had such significantly improved pixel-rendering over objects sketched out by the Graphics object in paint and paintComponent methods. What approach should I take to receive the same effect for big images that are say 1024x960, when using simple Graphics? Is there some way to traverse …

Member Avatar for Ezzaral
0
136
Member Avatar for joshmo

Hey all..am quite new to Java and I have encoutered a problem with my program. I am getting the error message "cannot find symbol constructor". I have tried to figure it out but I have failed. I have read around that adding an empty constructor would help but this is …

Member Avatar for joshmo
0
2K
Member Avatar for kohuke

Hi. Me again. I was wondering how could i code my jsp page when i want the following page. I have the main contract page where you can see the certain property that is in that contract. Contract and Property are connected by contractproperty which contains both contractID and propertyID. …

0
100
Member Avatar for NycNessyness

Hello everyone. I was having a bit of a problem with printing out a text file using Formatter. Whenever my program writes to a file it prints everything on one line and when I type \n it prints out a square instead of a new line to separate my information. …

Member Avatar for Wez
0
95
Member Avatar for lodnert

Hi! I need some help. It's probably really simple but im stuck and need some guidance. I want a simple loginpage where the user logs on and matches the username and pw in the database. Then i want to redirect him to another site. this new site should check that …

Member Avatar for peter_budo
0
57
Member Avatar for ravikiran032

hey i am beginner in java. i am not able to resolve differences in interface and with abstract class. do abstract class have methods defined??does those methods have body?? if so for abstract classes do not create objects, how they r invoked??

Member Avatar for jack239
0
228
Member Avatar for ceyesuma

I know it is a rookie question but how do I get the system to print what is in personList? [code] private void buildPersonOptions() { List<Person> personList = null; try { Session session = HibernateUtil.getSessionFactory().getCurrentSession(); Transaction tx = session.beginTransaction(); Query q = session.createQuery("from Person"); personList = (List<Person>) q.list(); } catch …

Member Avatar for ceyesuma
0
75
Member Avatar for Nate11

Hi there. i am trying to create an java class dealing with arrays though i am only new to programming. i have created a class with a char array field though i am not sure how to initialise it in the constructor. i am also trying to implement a few …

Member Avatar for Nate11
0
132
Member Avatar for shijunair

hello, I just noticed a problem in my code. hope you'll would help me. normally we have a login page where the userid and password is validated from database .now the problem what i am facing is [code]while(rs.next()) { if((rs.getString("m_emp_no").equals(user)) && (rs.getString("m_password").equals(pwd)) ) { " " direct to some page …

Member Avatar for stephen84s
0
95
Member Avatar for dianac10

Hi. Does anyone know why i cannot write an object in a socket (any object) but i can write a primitive type such as an int.

Member Avatar for stephen84s
0
56
Member Avatar for tejas.dunk

i want a tool to convert the python files to java.Since i am completely unknown to python and want some python files converted to java...Can anyone please help me ??????U can reply to me directly on [email]tejas.dunk@gmail.com[/email]

Member Avatar for tejas.dunk
0
237
Member Avatar for ceyesuma

Hello. I am presently tearing a HibernateTravelApp tutorial ([url]http://www.netbeans.org/kb/61/web/hibernate-vwp.html[/url]) apart to see how it works and I was looking at the traveldb that ships with netbeans and I am having trouble understanding how the tables interact because the name table only has one row with names and I don't see …

Member Avatar for ceyesuma
0
92
Member Avatar for VernonDozier

I want to draw some text on a JFrame (later it'll change to a JPanel), but not have the text necessarily be horizontal. I've found some decent examples online that have worked well, but they've all been 500+ lines long. I'm hoping it can be done in a way that's …

Member Avatar for VernonDozier
0
1K
Member Avatar for HLA91

Hi all I have made this small text editor and it works fine. I would just like you too look over it and give me any tips and things, that would make the code better (more acceptable to you). [code=java] import javax.swing.*; import java.io.*; import java.awt.*; import java.awt.event.*; public class …

Member Avatar for Alex Edwards
0
177
Member Avatar for Tyster

Hi Folks, I'm a Java newbie so please forgive me if you've heard this one before... Got a question for ya about an small app I am working on. I have a banking app that creates accounts, then makes deposits and withdrawls to/from these accounts. Its very simple. I have …

Member Avatar for Tyster
0
4K
Member Avatar for rs_java

[code=java] public class book { private double basePrice = 0; private double vat = 0; private double discount = 0; private double sellPrice; public book() { setBasePrice(0); setVat(0); setDiscount(0); } public book(double basePrice, double discount, double vat) { setBasePrice(basePrice); setVat(discount); setDiscount(vat); } public double getBasePrice() { return basePrice; } public …

Member Avatar for jasimp
0
312
Member Avatar for dvgt05

Hi, I have a MySQL database I want to access with the Java Persistence API. The database I use consists of two tables (supplier and product) and is created with a SQL-script I made. Furthermore I generated the database classes (Suppliers and Product) with Netbeans using the "Entity Classes from …

Member Avatar for danielsousa
0
199
Member Avatar for dianac10

Hi :) Could you tell me if there is any possible way to start IE or Mozilla in Java using Swing/AWT components? I don't want just to load html in jeditorpane, i want to really start ie or mozilla. Thanks.

Member Avatar for peter_budo
0
114
Member Avatar for dianac10

Hi. Does anyone know why i get a classnotfoundexception when i try to read an object that implements the interface serializable from a socket.

Member Avatar for Alex Edwards
0
77
Member Avatar for cambridgegal300

hiya - i'm making a new game and want to know how to make a simple rounded race track. i've done everything else but want to know what to use. I've tried g.fillRoundRect(left.x,left.y,left.width,left.height,left.arcWidth,left.arcHeight); but an error pops up can anyone help - i want to make a simple race track …

Member Avatar for Ezzaral
0
665
Member Avatar for dianac10
Member Avatar for gcameo

I have developed a java web application which runs in tomcat. the application is served by a another EJB application running in a different jboss server. all is done but i cant get a hosting service to host it. I tried nameonthe.net. but after one week they have refunded my …

Member Avatar for dickersonka
0
97
Member Avatar for rs_java
Member Avatar for wafdenis

[B]Hi Guys, I was thinking of creating this software with Java language but am still sceptical about it because the java runtime makes java applications slow. I came arouund the JNI and i thought i could implement java with it since i also know C and C++. The only problem …

0
52
Member Avatar for zyaday

hey, I'm having a problem in getting this programm right.. this is what it does...in every 1000ms it paint an image.. I'm using a new thread to paint the image....the thread taking care of the paining then creats a new thread to play the sound..But what i want is to …

Member Avatar for zyaday
0
111
Member Avatar for sarath.koiloth

Sir, is there any method which return the Local on giving a date as argument. publlic Locale getLocale(Date d){ // return locale } help me to get the locale. Please help me to get the locale on giving the date.Ie when i give us date,i need to get US. Please …

Member Avatar for sarath.koiloth
0
298
Member Avatar for ocreds

In: multiplication = var1 * var2 Division = var1 / var2 addition = var1 + var2 Subtraction = var1 - var2 exponentiation = ??? One more thing, how to read this one, isDigit? Thanks in advance

Member Avatar for javaAddict
0
149
Member Avatar for RituNimitNayal

Hi, How to find out the repeating substrings in a string which is having maximum characters. eg : abc abcd a abc abcd Answer : abcd

Member Avatar for Chaster
0
96
Member Avatar for lordx78

[code=java] /* * IconDisplayer.java is a 1.4 application that requires the following files: * images/rocketship.gif */ import java.awt.AlphaComposite; import java.awt.BorderLayout; import java.awt.Dimension; import java.awt.Graphics; import java.awt.Graphics2D; import java.awt.Insets; import java.awt.Rectangle; import javax.swing.BorderFactory; import javax.swing.Icon; import javax.swing.ImageIcon; import javax.swing.JComponent; import javax.swing.JFrame; /* * This component displays a single icon one or …

Member Avatar for Ezzaral
0
280
Member Avatar for augee

Please i need some help on the JMF. i'm trying to develop a simple media player but dont know how to start as i am new to java. I would appreciate your kind assistance.

Member Avatar for Ezzaral
0
40
Member Avatar for ravikiran032

can any one write me the program to dowmload imges using java. i have wriitten a program using URL class it is able download index.html pages but not able to download images. my source code: [code] import java.net.*; import java.io.*; public class url { public static void main(String[] args) { …

Member Avatar for ~s.o.s~
0
130
Member Avatar for sciwizeh

i have some code that will make sound, a sine wave, actually, but i want to be able to actually play more than one sound at once, how can i modify this code to make it work. i found this on the internet somewhere, and it was hard to find. …

Member Avatar for sciwizeh
0
123
Member Avatar for ravikiran032

i am begginer in java. i need to know that is it necessary to use applets or componetnts or frames to download image from the specified url in java programming. can't we use simple java program to download images.

Member Avatar for sciwizeh
0
150
Member Avatar for manofjava

Hello everyone, I have started studying Java as a hobby but finding it a bit hard to understand. I am in need of help from someone with knowledge of Java If i could post you some questions about simple java programming i am trying to do, could you try please …

Member Avatar for stultuske
0
135
Member Avatar for shrikant83
Member Avatar for peter_budo
0
37
Member Avatar for zyaday

I'm using the java DnD class...I found this programm as an example that could help me understand it better..While dragging the image...the cursor changes its shape..but what i want is the image being dragged instead of te cursor...that is i want to replace the cursor with the image while i'm …

0
63
Member Avatar for Padda1

I would just like to know how you get a JComboBox to display all the fonts currently on the system without having to type it one by one. Urgent help would greatly appreciated.

Member Avatar for SylviaCrissy
0
56
Member Avatar for Dancealot

I all. I am trying to make a program that connects 2 mobile phones, and send a string to the server mobile, and then sends the thread back. I have tested it in netbeans, and it looks like it discoveres the device. but then I get an error: Address: 0123456789AF …

Member Avatar for Dancealot
0
309

The End.