35,618 Topics

Member Avatar for
Member Avatar for pardon_garden

Hi all, I am currently developing a JSP web application with most of the content added using include tags, styled using CSS2,content created from servlets etc... My main issue is that at some points the main section is bigger than the header and footer making the site (inactive just now) …

Member Avatar for Thirusha
0
65
Member Avatar for onsir

Hi, all How to create report use IReport and Hibernate I have tried, like this : : 1. create file hibernate.cfg.xml [code] xml version='1.0' encoding='UTF-8'?> <!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd"> <hibernate-configuration> <session-factory> <property name="connection.url">jdbc:mysql://localhost/a6</property> <property name="connection.username">root</property> <property name="connection.driver_class">com.mysql.jdbc.Driver</property> <property name="dialect">org.hibernate.dialect.MySQLDialect</property> <property name="connection.password"></property> <property name="transaction.factory_class">org.hibernate.transaction.JDBCTransactionFactory</property> <!-- thread is …

Member Avatar for seela
0
899
Member Avatar for Flanderbland

I'm having a problem reading lines from a text file. The reading in itself works fine, but when the application has read 545 lines of text (545 .readLine()'s) I get a read error exception, for no reason at all as far as I can see. The code for the reading …

Member Avatar for Flanderbland
0
196
Member Avatar for EDDYGATE

The code below captures the screen and saves it. Depending on your need, you can modify it to do just what you want [code] import java.awt.AWTException; import java.awt.Robot; import java.awt.Rectangle; import java.awt.Toolkit; import java.awt.image.BufferedImage; import java.io.*; import javax.imageio.ImageIO; class ScreenCapture { public static void main(String args[]) throws AWTException, IOException { …

Member Avatar for firstsmilepk
0
237
Member Avatar for ttchiwandire

Hie guys, Iam developing a java web application which uses mysql as its database engine. Now I would like to use the hibernate and spring frameworks together. The problem I nam facing is in configuring the various beans and establishing a clear relationship btwn the two frame works. If any …

Member Avatar for ejosiah
0
166
Member Avatar for llemes4011

Hello! I'm writing a fractal generation application. I have the fractal part down, but I can't seem to get the coloring right. What I want to do is, as the number gets closer to infinity, the pixel it relates to's color should get darker (Black relating to infinity, The other …

Member Avatar for ithelp
0
170
Member Avatar for jrosh

In my application an error massage comes when the required data fields are not filled. I did it as, [CODE] if(component.getSelectedItem().equals("")|description.getText().toString().equals("")){ JOptionPane.showMessageDialog(null,"Please insert required details \n ","Error",JOptionPane.ERROR_MESSAGE); } [/CODE] the problem: When I click "OK" when this massage pops up, it closes the entire window. How can I avoid it. …

Member Avatar for jrosh
0
152
Member Avatar for peter_budo

I would like to know if people would be interested in participating building similar starting thread like we have in Java section [URL="http://www.daniweb.com/forums/thread99132.html"]Starting "Java" [Java tutorials / resources / faq][/URL], but targeting Java web development. This thread would hold resources (where to get the things, configurations, basic usage and any …

Member Avatar for peter_budo
3
87
Member Avatar for themafia_69

Hey guys, I have started java for a uni class. I am now using object oriented programming. I have taken vb so i know what functions/methods are. however i am having a hard time coding some programs for an assignment. I will try to make this thread as descriptive as …

Member Avatar for javaAddict
0
177
Member Avatar for No1unoin98

Ok i need some help with this JSP page that has some java in it. My assignment is to create a fictional webpage that requires a login or registration and that checks with the database to make sure that it will verify that no user with the proposed user id …

Member Avatar for masijade
0
212
Member Avatar for neeraj20gupta

when i try to run the following code....----> [code=JSP]<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%> <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%> <jsp:useBean id="accountBean" class="banking.pac.AccountForm" scope="session" /> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <title>Insert title here</title> <script language="javascript"> </script> </head> <body> <form …

Member Avatar for Kamalapriya
0
242
Member Avatar for ewelinac

Hello. Is there a way to import data (numbers) in to a Java program which will do analysis on the data? Thanks! Evelina

Member Avatar for Jocamps
0
77
Member Avatar for manbearpig

First of all I am a student, I'm in a data structures class. Well I'm having trouble coming up with a getNext method to be used in a linked list class. I am trying to write a getNext method that I can to find out if the list contains a …

Member Avatar for Jocamps
0
101
Member Avatar for maricor

PROBLEM ANALYSIS 1. To calculate how many liters per vehicle fueled and convert it to price. 2. To calculate the sales of the fuel from beginning to ending of one shift. 3. To calculate sales inventory. 4. All the consumer purchase diesel and unleaded must be recorded and save for …

Member Avatar for csurfer
-3
177
Member Avatar for Artamos

First my skill levels: I was over the moon when a friend donated his Trash80 to me, complete with manuals, oh so many years ago.. I got a glimpse into the PC world and later embraced DOS programming..:) As windows came into the picture I left behind my 'boyhood' knowledge …

Member Avatar for Artamos
0
113
Member Avatar for tnccjavaMatt

As discussed on this forum, I'm not looking for a quick answer, just an explanation on why what I have written is not working and a point in the right direction that will make this program work. Problem: Purpose of this program is to create a GUI that presents to …

Member Avatar for Jocamps
0
282
Member Avatar for FallenPaladin

Hi there, please can some help with this very simple regex. I am coming from c# and trying to get up to speed quickly, so have been trying to create samples for my refrence, however can not get this to work [code] String aString = "0123"; Pattern intPattern = Pattern.compile("^[0-9]{3}"); …

Member Avatar for quuba
0
103
Member Avatar for miasuhyla

Write a class called Person.java that has instance variables matric number, name, date of birth, and gender. Use appropriate data types for these instance variables. Include constructor and set and get methods for all instance variables. [CODE]public class Q1L6{ class Person { String name; int DOB; int MatricNum; char gender; …

Member Avatar for Qzmo
0
145
Member Avatar for EGutierrez91

[code] import java.util.Scanner; public class LazyDays { public static void main (String[] args) { Scanner scan = new Scanner(); int temp; System.out.println ("What is the current temperature?"); temp = scan.nextInt(); if (temp < 20) { if (temp > 95) { System.out.println("Go visit our shops!"); } } if (temp >= 80) …

Member Avatar for Grn Xtrm
0
136
Member Avatar for akulkarni

i am trying to learn servlets so i downloaded tomcat server.I learned that i have to do this...set path=c:\tomcat\lib\servlet.jar or click the exe file tomcat6 in the bin folder. I tried to connect with localhost8080 it is not working.I am not getting Tomcat home page. Any help will be great.

Member Avatar for akulkarni
0
133
Member Avatar for Tussles

As part of an assignment I have been asked to create a SortedLinkedList class. We have been told that we must use the java.util.LinkedList<E> in order to dervie this class. I understand that I must in some way overwrite the .add(Object) method. I realise that I must in some way …

Member Avatar for ejosiah
0
137
Member Avatar for sony1988.sc

i want to remove 0 from an integer array.like if i have an array having element 2 2 1 1 1 0 1 1 2 1 0 1 ,i want this as 2 2 1 1 1 1 1 2 1 1,plz help me

Member Avatar for Jocamps
0
123
Member Avatar for Clawsy

Hello, I would like to be able to add 'n' columns programmatically and SET THEIR TITLE as I add them. I have 2 questions: 1. How can I change the title? (not by seting a model to my table but just 'changing a property' - if possible)? 2. Is there …

Member Avatar for Clawsy
0
251
Member Avatar for comSysStudent

Hi all, I'm just starting java and had to create a method to return the amount of text messages needed for a message x characters long. I'm having trouble compiling and not sure exactly why [CODE] public void msgsReqd(int msgLength) { int numMsgs, smsLength = 160; msgLength / smsLength = …

Member Avatar for ejosiah
0
145
Member Avatar for theo19

[CODE] import java.awt.*; import java.applet.*; import java.util.*; public class Tower extends Applet { TowerPanel panel; TowerControl control; public void init() { resize(500,450); setLayout(new BorderLayout()); panel = new TowerPanel(); add("Center", panel); add("South", control = new TowerControl(panel)); } public void start() { panel.start(); } public void stop() { panel.stop(); } public boolean …

Member Avatar for ejosiah
0
131
Member Avatar for salamjamal10

import java.util.Scanner; public class CalculatingSales { private static boolean Double; public static void main(String[] args) { Scanner input = new Scanner ( System.in ); int ProductNumber; double RetailPrice; double total = 0; int Product1Count = 0; int Product2Count = 0; int Product3Count = 0; int Product4Count = 0; int Product5Count …

Member Avatar for Qzmo
0
228
Member Avatar for JRabbit2307

just trying to create a person(or two) using name, age and nationality but its giving me illegal start of expression error // **************************************************************** // Person.java // // Person class with two constructors // *************************************************************** public class Person { private String name; private int age; private String nationality; // ------------------------------------------------------------ // …

Member Avatar for Grn Xtrm
0
626
Member Avatar for r0n

hello everyone how can i mask a date using [mm/dd/yyyy] and [mm/dd/yy] format in textbox in java?.. and how can i also mask the amount of money using[###,###,###.##] this format?.. thanks!

Member Avatar for javaAddict
0
131
Member Avatar for nymph

i want to program the parallel port pins to control the electronic / electrical devices. the pins 2-9 i know can be programmed.

Member Avatar for dhani017
0
111
Member Avatar for anuj_sharma

Hey Guys, I want to convert a character to it's bit representation. For eg: If i have the char 'J' then it's bit representation is '01001010'. Pleae tell how??

Member Avatar for masijade
0
87

The End.