36,051 Topics

Member Avatar for
Member Avatar for babbu

Hi, I have a JSF application. There is page parent.jsp which opens a popup using javascript (window.open() function) I want the data on the parent.jsp page to be available on the popup window as well. Any idea how this can be done. The application also uses JSF Portlets.

Member Avatar for babbu
0
96
Member Avatar for babbu

Hi I want to pass the data from one JSF page to another without using query string. Any idea how this can be done??

Member Avatar for babbu
0
248
Member Avatar for punitdam

I am getting error SEVERE: java.lang.UnsatisfiedLinkError: no j3dcore-ogl-chk in java.library.path when I am trying to run Applet. Do any one have any idea.

Member Avatar for punitdam
0
2K
Member Avatar for ChunkyGerbil

Hey guys, I need help with my homework. I'm super new to coding on my own as you can see and I need to create a character counter using an array, in just this one method. [CODE] public int[] letterCounts(String s) { int count = 0; int[] array= new int …

Member Avatar for teo236
0
132
Member Avatar for tariqi

Hi guys, I need help on how I can screen scrap a phone application into a desktop application,I want the user to be able to execute the application,s commands from the computer.I am new to screen scrapping so I dont have a clue where to start. Any ideas?

0
63
Member Avatar for ozgamu

What happens is that when i run my program from netbeans it works fine and it shows all the images but when i run the .jar file it doesn't show any of them...the images are declared below the "//Imagenes automata" comment by the way, im new in Java so please …

Member Avatar for peter_budo
0
156
Member Avatar for NexG

This is my attempt at the Euclid Algorithm. I would like it if someone could give me some pointers on how to fix this so that it would work. It compiles fine. [CODE]import java.util.Scanner; public class Euclid{ public static void main(String[] args){ Scanner scanner = new Scanner(System.in); System.out.print("Enter the first …

Member Avatar for NexG
0
118
Member Avatar for sirlink99

I am just learning how to use sockets, and I have managed to get my server to send a message to my socket, but when I try to send a message from my socket to my server I get an error. Here are my codes Server: [CODE] package BasicNIO; import …

Member Avatar for NormR1
0
315
Member Avatar for Prisms

Ok guys I'm almost done with my GPA program but I hit a snag. everything works fine but when I insert a letter grade the program doesn't read what number it corresponds to and sets double number to zero. Can some please let me know what I'm doing wrong. [CODE]import …

Member Avatar for Prisms
0
5K
Member Avatar for Hand

Hello, I am new to web development. I have a page file1.jsp with a form, the submitted data is handled in file2.jsp, and I want to show the answer in the same page, file1.jsp. After the data be handled in file2.jsp, I want to reload file1.jsp and show the answer. …

Member Avatar for Hand
0
707
Member Avatar for Whilliam

So guys, I'm very new to Java and I have just developed my algorithm of opening forms. However, I've also recently read about singleton pattern. I don't know how Java works internally but I want to ask an expert's advice. Is this implementation efficient? Compare it with singleton. How good …

Member Avatar for Whilliam
0
114
Member Avatar for Curt1337

Hi there all, I really need help on this one, I went away for a wedding for a week and missed a week of work and now I have a practical due for 1:00 10 tomorrow and I got back today, but I managed to complete all of the programming …

Member Avatar for Ezzaral
-2
393
Member Avatar for theadjectivenou

Hello World! I am a new student to Java. and I find it interesting since I never programmed anything but struggling a bit. I have the book Java: How to program, 8th edition. and we started in loops today. and he asked us how to make int j = 1; …

Member Avatar for Ezzaral
0
147
Member Avatar for misspuja

hello...... sir i have to make the program which get date of birth and give me result in term of how many year,months,days,hours,minutes and second old user is... i need the help...

Member Avatar for NormR1
0
166
Member Avatar for nathanbe

Hi friends I have been developing a web application in mvc which is in need of using database mysql. I am suffering from the same problem we are discussing for the following code. I am collecting the data for the tables from a form. I had added mysql-connector-java-5.1.17.zip by right …

Member Avatar for peter_budo
0
108
Member Avatar for bhuvan83

hi every1 i m new to website development. just learning it. i have made a code in which i access my database(MS Access). i m able to print the first record of the database on the page. but i m not able to go to next record which i want …

Member Avatar for SagarSe7en
0
699
Member Avatar for Jessurider

for my final year project i'm trying to do an IEEE project which titles as DATA LEAKAGE DETECTION SYSTEM..... Description : Aim of our project to develop Data leakage detection Model in which We study The distributor must assess the likelihood that the leaked data came from one or more …

Member Avatar for JamesCherrill
-1
136
Member Avatar for skimmpy

Hi All, Im developing a sample app to build up my java skills. Im creating a Simple Chat application which uses jsp,Dwr,Java and jdbc and a feww other technologies to build the same. If i want to implement threading in some meaningful way to improve the performance of my app …

Member Avatar for NormR1
0
105
Member Avatar for anand01

Hi all, I need to hide or change my jsp URL. i tried with following code with xml but still its not working.Any pls help me for this.. [code] <servlet> <servlet-name>User</servlet-name> <jsp-file>User.jsp</jsp-file> </servlet> <servlet-mapping> <servlet-name>User</servlet-name> <url-pattern>/UserPage</url-pattern> </servlet-mapping> [/code]

Member Avatar for anand01
0
3K
Member Avatar for chiiqui

I am currently learning Java, I am using a book Java how to program 8th edition by the deitel and deitel company, and I was wondering I was researching about java and I found these out, Core java and j2ee. what do I really need to learn in order for …

Member Avatar for chiiqui
0
200
Member Avatar for stevanity

Is there anyway to run a Java program through C/C++? (i.e.) When I run the C Program, the program must start and it must inturn run a java program and display its output... Im not talking about using Native interfaces and all. Not code interoperability. Just run the java class …

Member Avatar for stevanity
0
220
Member Avatar for maroom

For programming we need editor , compiler and next one to rum??? help me woth third one... folks... best IDE for java programming ?????

Member Avatar for maroom
0
160
Member Avatar for raviaaaa

this jsp consists of scriptlet tags so i need to remove the sriptlet to a action class pls tell me how to move to struts <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> <!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"> <%@ page import="java.util.*"%> <title>Course Administration</title> …

0
72
Member Avatar for Prisms

Hey guys I was wondering if I was doing this right or not. I am writing a program that asks for a grade like A, -A, B+, -B, B and so on. each letter grade is equal to a certain number like in a persons GPA, A = 4.0, -A …

Member Avatar for JamesCherrill
0
195
Member Avatar for NexG

[CODE]import java.util.Scanner; public class sum{ public static void main(String[] args){ Scanner scanner = new Scanner(System.in); System.out.print("Enter n: "); int n = scanner.nextInt(); System.out.print("Enter m: "); int m = scanner.nextInt(); int sum = 0; for(int i = 0; i<=n; i++){ for(int j = i+1; j<=n; j++){ sum = i * j; …

Member Avatar for NexG
0
116
Member Avatar for Syrne

Hi there, I'm fairly new to java and I have a question about creating an array of objects for a class and allowing data entry for each individual object in the array. I'm a little confused on how to go about doing this correctly. As of right now I have …

Member Avatar for Syrne
0
167
Member Avatar for rezial

Hello everyone, Im kinda having some trouble with my code and was hoping you guys could help me out. Here's what its supposed to do: have asteroids, shoot bullets, move, and have hyperspace (just a little warp to a random point on the screen) Here's what it does: the ship …

Member Avatar for NormR1
0
261
Member Avatar for Abdel_eid

Hello all, I need a step by step spring tutorial since i am new to spring framework books seems to be more theoretical and i need a more practical tutorials , please help Thanks

Member Avatar for Abdel_eid
0
146
Member Avatar for janice91

[size="5"][size="4"]Dear experts, I am doing my assignment on finding how many numbers in [b]N[/b] digit satisfy [b]K[/b] requirement. However, when i am testing the code, i could compile it but i couldn't execute it. I am wondering if i made mistake in the [code]x = result + y; // add …

Member Avatar for Taywin
0
140
Member Avatar for chiiqui

[CODE]public class Briefcase{ private int amount; private String face; private boolean isOpen = false; public Briefcase(int amount,int cNumber){ this.amount = amount; this.face = Integer.toString(cNumber); } public void removed(){ isOpen = true; face = "X"; } public boolean isRemoved(){ return isOpen; } public int getAmount(){ return amount; } public String toString(){ …

Member Avatar for stevanity
0
187
Member Avatar for hiyatran

I can't seem to get my innerHTML to display my content. This works fine, if I was to put it all in one line. [CODE]document.getElementById('addedText').innerHTML = '<table><tr><td>'+"My text goes here"+'</tr></td></table>';[/CODE] If I was to break it up, which I wanted then nothing seem to show up. [CODE] document.getElementById('addedText').innerHTML = '<table><tr><td>'; …

Member Avatar for Anirudh Rb
0
95
Member Avatar for MoZo1

This prints NULL: [CODE=Java]String sss = System.getSecurityManager() == null ? "NULL" : System.getSecurityManager().getClass().getName(); System.out.println(sss);[/CODE] And this throws exception: [CODE]ServerSocket serversocket = new ServerSocket(80);[/CODE] This one: [CODE]Exception in thread "main" java.lang.Error: java.net.BindException: Permission denied at httpserver.HTTPServer.main(HTTPServer.java:68) Caused by: java.net.BindException: Permission denied at java.net.PlainSocketImpl.socketBind(Native Method) at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:383) at java.net.ServerSocket.bind(ServerSocket.java:328) at java.net.ServerSocket.<init>(ServerSocket.java:194) at …

Member Avatar for MoZo1
0
425
Member Avatar for sohiabmaroof

hi i studied ur post in this link [url]http://www.daniweb.com/software-development/java/threads/118194[/url] but i m unable to edit the default table here is its code [CODE]jTable1 = new javax.swing.JTable(); [B]jTable1.setModel(= new javax.swing.table.DefaultTableModel([/B] new Object [][] { }, new String [] { "Book Name", "Author Name" } ) { Class[] types = new Class …

Member Avatar for 115harman
0
211
Member Avatar for fonzi

Hey all =] , I am having a few problems ending this coding homework and i would love if you could help me on how to solve this problem, well my problem is that i try to print the toStirng in my constructor class and for the months it prints …

Member Avatar for 115harman
0
150
Member Avatar for chiiqui

Recently I've just finished my first term in college about java programming, and even before I started my First term in college I already know stuff about java, but to keep this short, all I want to know is where do I go now? what topic should I study? should …

Member Avatar for chiiqui
0
399
Member Avatar for Knoxx

i've been working on my minesweeper project and i seem to be running into a little trouble. My program compiles but my problem is setting the mines on my grid. I have used a random generator to set the positions but i dont know how to implement it on my …

Member Avatar for NormR1
0
183
Member Avatar for jorizh09

Hello there. I'm making an airline ticket reservation program using Java and one of the features that I'll be using is a radio button and a combobox. How can I possibly link these two? particularly if the user clicks the "one-way-trip" button the combobox will get disabled. and when the …

Member Avatar for NormR1
0
134
Member Avatar for stevanity

Im a Junior in college now (Computer science Engineering). Im planning to start my Java certification. Im comfortable with programming in java. Im familiar with most common API and also with swing and Collections, Concurrency, etc. and also with OOPS concepts. So I thought I might take an entry level …

Member Avatar for peter_budo
0
132
Member Avatar for nyemba

Need help with the program using counting sort that reads members name database reads standard input into ArrayList and writes a roster sorted with ID to standard output For example out put should be AK000001 Alex Kenny AR000002 Allison Richardson CK000001 Carlos King CR000002 Chris Richards

Member Avatar for NormR1
-1
56
Member Avatar for skiabox

I have created the following code to display some records from a database : [code] <table id="productTable"> <c:forEach var="product" items="${categoryProducts}" varStatus="iter"> <tr class="${((iter.index % 2) == 0) ? 'lightBlue' : 'white'}"> <td> <img src="${initParam.productImagePath}${product.name}.png" alt="${product.name}"> </td> <td> ${product.name} <br> <span class="smallText">${product.description}</span> </td> <td>&euro; ${product.price}</td> <td> <form action="addToCart" method="post"> <input type="hidden" …

0
62
Member Avatar for SteveWaugh

Hi, I've been trying to sort a list in ascending order for a problem in class, but my for loop isn't working. [CODE]import java.util.*; public class AscendingOrder { public static void main(String[]args) { int min; Scanner input=new Scanner(System.in); int[]list; list=new int[10]; int[]list1; list1=new int[10]; System.out.print("Enter 10 integers: "); for (int …

Member Avatar for SteveWaugh
0
236
Member Avatar for Muhasin

iam triying to develop a new java applet programm by help of database. i dont know how to connect and create a database. i am a beginner to java.help me

Member Avatar for Majestics
0
59
Member Avatar for lena1990

hi iam in my final year my Graduation Project in java language can you help me of how thesis

Member Avatar for Majestics
0
47
Member Avatar for maroom

Hello below is the progra... i cann access araylist in the main class function.... like "LoanBook" see that in the code.... plz recity meeee folks... thanking uuuu =--------------------------------------------------------------------------= [ICODE] import java.util.ArrayList; import java.util.Scanner; // To take customer detais by using Constructor and Customer deatils class Customer { int cusId; String …

Member Avatar for JamesCherrill
0
343
Member Avatar for maroom

I have got errors which where commented in below program.Plz compile these program and cpy paste the code ... iam little bit confused... dudee.... [CODE]import java.util.ArrayList; import java.util.Scanner; // To take customer detais by using Constructor and Customer deatils class Customer { int cusId; String fName; String lName; long phNo; …

Member Avatar for JamesCherrill
0
218
Member Avatar for himmat.m4

Hi, In our project I am using ajax with jquery. here I have applied some code of java script on splitting response which comes from server side. This code is working fine for small data. Whenever same application used for large data, script gives problem. This problem is value is …

Member Avatar for himmat.m4
0
131
Member Avatar for janice91

[I]Dear experts, I am trying to code out my assignment but i made a problem with my [CODE]break;[/CODE] within my [CODE]if (operator.equals(zero))[/CODE]. i have received compilation error stating the following: [/I] [B]HelloWorld.java: break outside switch or loop[/B] [I]Appreciate if someone can point out my mistake. Thank you.[/I] [CODE] import java.util.*; …

Member Avatar for Muhasin
0
240
Member Avatar for SagarSe7en

Hello Everyone! A new thread i have started and this is how the problem goes... I want to display record of a user something like profile details based on the user who has logged in to member's page! So when the user has logged in and clicks on the view …

Member Avatar for SagarSe7en
0
6K
Member Avatar for abrarHuniedi

hi I want to work with GUI and do alot of screen but with java I think its dufficult , I want to use Eclipse but I need some tutoril to start

Member Avatar for mKorbel
0
51
Member Avatar for kalpana17

The End.