36,051 Topics

Member Avatar for
Member Avatar for anand01

hi friends, This is Anand, am beginner to jsp, now am trying to connect jsp with mysql. Is this possible to code connection code separately and include each and every page. am trying the following code.I code these lines in separated.and I want to use it other pages.at the same …

Member Avatar for anand01
0
142
Member Avatar for lynnajoe

Hi, Can anyone tell me why this program is skipping line 63? Thank you, lynnajoe [CODE]import java.util.Scanner; //Imported Scanner for input import java.util.Locale; //Imported Locale and NumberFormat import java.text.NumberFormat; /**Simple Payroll Program titled PayrollPartI & modified for PayrollPart II * * @author Lynn Ortiz *///May 22, 2011 //Description of program: …

Member Avatar for JamesCherrill
0
131
Member Avatar for bibiki

I have this file that contains an instance of some Machine object. When I compile the file I have, it says that the class uses a deprecated API, meaning the Machine object. I tried looking for it in [URL="http://download.oracle.com/javase/6/docs/api/"]this[/URL] link, but I find nothing. I was wondering if anyone who …

Member Avatar for bibiki
0
151
Member Avatar for sam023

i just to know how can we implement the feature of live streaming in my blackberry aplication.. thanks in advance.

Member Avatar for peter_budo
0
134
Member Avatar for lovelyrose26

i need help please i cant input the name of pet in 2nd to the 5th it wont me input the name and skip into age. i dont get any error i just dont get it why it skp the name. public class PetRecordTESTER { public static void main(String [] …

Member Avatar for NormR1
0
91
Member Avatar for josiefrut

Hi there guys! I've been stuck with this problem for quite a while now. I wanted to create a jsp which would upload files to sql database. I've used this code for my upload_page.jsp: [CODE] <%-- Document : upload_page Created on : Mar 6, 2011, 11:01:40 PM Author : Administrator …

Member Avatar for josiefrut
-2
478
Member Avatar for Kprosser1029

I need to create a gui application.. When the user clicks the start button use a JFileChooser to allow them to pick a directory from the system and then run the recursive search of the file system from that directory and display the directory and each file in the JTextArea. …

Member Avatar for JamesCherrill
0
101
Member Avatar for thjchhu0ngthu
Member Avatar for jwenting
0
136
Member Avatar for dywlkr365

I've tried searching my problem with no success...Can anyone help me fetch a password from the jpasswordField, encrypt it , store it to the database then decrypt back for login validation

Member Avatar for jwenting
0
221
Member Avatar for Japus

Hello I'm wondering when it is best to use reflection to call a method instead of defining and using an interface. I guess using the interface will be faster but what are the advantages of using reflection? The program I'm creating is a GUI which should support mutliple views ([URL="http://en.wikipedia.org/wiki/Model–view–controller"]Model …

Member Avatar for jwenting
0
627
Member Avatar for manish250

hi all I am new to web services.I want to know how to extract the java file from the given WSDL in which i have https based URI. please suggest

0
154
Member Avatar for monsterbb1

I WAS WONDERING IF SOMEONE COULD HELP ME MOVE THE JTextField above all my buttons like a normal calculator. Also, after this I don't know how to connect the basic calculations to operation buttons. When the user clicks a button the text appears in the textfield but I don't know …

Member Avatar for NormR1
0
260
Member Avatar for cannadawoot

Got some problem... This code populates an 2d array and then adds it to an arraylist (all) It runs 3 times and each time the array place gets different values. But if you look in arraylist all, the arrays got same value because they point to each other. If I …

Member Avatar for cannadawoot
0
192
Member Avatar for tasu

i have a button and when it is clicked i want it to open a new form in netbeans. how do i do this...???

Member Avatar for StormHawk
0
80
Member Avatar for becool007

Hey guys, I am making a Java program where it runs on a library. This library classifies my program as a script. So basically, I am scripting. Now I want to make various scripts, but I want them all to have the same layout so that I can have the …

Member Avatar for NormR1
0
111
Member Avatar for aloyssia

hey guys i have just started to learn java programming language ...i was wondering if i will be able run big java programs from command prompt...what the the advantages and disadvantages of using command prompt for running java programs...is using IDE like eclipse better than using command prompt?...if so in …

Member Avatar for NormR1
0
188
Member Avatar for winecoding

I have an existing Eclipse java project, and need to export it to the war file for deployment. By googling, it turns out that I need to covert it to a dynamic web project at first. But the menu item for this conversion is disabled. I would like to know …

0
83
Member Avatar for winecoding

I have implemented a jetty-based servlet under eclipse.It runs fine under eclipse. Right now, I need to deploy it as a Web application. I would like to know the procedures of transplanting these java programs from Eclipse to a real Jetty-based web application. The system is a Linux box. Thanks.

Member Avatar for peter_budo
0
107
Member Avatar for winecoding

My current work needs to do the development based on open soure software. There is a class defined as DirLocator.java The code is as follows [CODE]public final class DirLocator implements IResourceLocator { /** The folder relative to which resources are resolved. */ private File dir; /** * Initializes the locator …

Member Avatar for winecoding
0
8K
Member Avatar for kwins

[CODE]import javax.swing.*; import java.awt.*; import java.awt.event.ActionListener; import java.awt.event.ActionEvent; public class Absolute extends JFrame implements ActionListener //Error: Absolute is not abstract method actionPerformed(java.awt.event.ActionEvent) in java.awt.event.ActionListener { public JTextField textField1,textField2,textField3; public JLabel label1; String Operatn[] = {"Add","Mult","Divide","Sub"}; //Constructor public Absolute() { JFrame frame = new JFrame(); frame.setLayout(null); JLabel label1 = new JLabel …

Member Avatar for NormR1
0
217
Member Avatar for Buffalo101

Hello, After completing my application, my teacher told me I can't use serialization. I currently send objects using the writeObject / readObject methods. What's the easiest way of transitioning from this to something else? I'm thinking: [code=java] in = new BufferedReader(new InputStreamReader(socket.getInputStream())); out = new PrintWriter(new BufferedWriter( new OutputStreamWriter( socket.getOutputStream())),true); …

Member Avatar for Buffalo101
0
166
Member Avatar for Dean_Grobler

Hi there, The thread title pretty much says it all. How exactly do you send data to, and from portlets? Does it have something to do with the RenderRequest and RenderResponse objects? I haven't a clue... There's hardly any information on the net regarding portlet development, very frustrating. Thanks in …

Member Avatar for peter_budo
0
115
Member Avatar for ScubaSam

Can Someone please help i need to create a GUI out of this code for 24hours from now. Can someone please send me the code to create this gui. Its all coded in notepad. Thanks

Member Avatar for iamthwee
-2
151
Member Avatar for jemz

Hello can you help me please, Hi,.I Downloaded the Mysql community server and i installed it to my windows xp.The problem is i don't know how to set up the database.I want to use this in my program because i have never been using Mysql as my database i always …

Member Avatar for jemz
0
97
Member Avatar for harinath_2007

Hello.. I am in search of how to play a video in full screen java application. I already know how to play a video using the JMF. but i want to play the video in full screen desktop java applicaton ..

Member Avatar for JamesCherrill
0
624
Member Avatar for jwala

hello i am a computer engineering student...i want to do my mior project in java...i was thinking to do a project in "image processing + viewer" ....do u think java is an appropriate language for making a "image processor" ??? please help if u have any reference projects ,books or …

Member Avatar for \007
0
100
Member Avatar for manish250

hello all i have a tgz file on the system.Now i want to download it in my jsp page.but i have not any idea how to do it. currently i am downloading the text file in jsp using following code [CODE]response.setContentType("Text/html"); response.setHeader("Content-Disposition","attachment;filename="+strFileName+""); [/CODE] please help.....

Member Avatar for manish250
0
154
Member Avatar for jl.lakhnai
Member Avatar for sagngh8

have implemented robot to take the screenshot of the desktop. [code]Robot objRobot = null; try { objRobot = new Robot(); } catch(Exception ex) { } BufferedImage objBufferedImage = objRobot.createScreenCapture(objRectArea); [/code] The problem with robot is when my computer is locked the image comes as black.That is what is displayed in …

Member Avatar for turt2live
-1
437
Member Avatar for turt2live

Hello, I am trying to create a update section of a game but running into a problem of JFrames. What I want to do is have a single JFrame that will have the update script, then after the update it will start a jar file in the JFrame (With the …

Member Avatar for turt2live
0
189
Member Avatar for sariberri

This is just a small snippet of my program but it's a gui and the criteria is when the Open option comes up the user can select a text file that contains the data that is going to be loaded into the JTable. My code only places the first line …

Member Avatar for quuba
0
159
Member Avatar for I<LateNupurGuha

[INDENT]What is the [U][B]file naming[/B] conventions[/U] [I]to compile and run the programme[B]([/B]application[B])[/B][/I] if there [COLOR="Green"]exists[/COLOR] [COLOR="Red"][B],[/B][/COLOR][/INDENT]:icon_rolleyes:[LIST=1] [*]No class in a package; [*]One class with default accessibility in a package; [*]Many classes with default accessibilities in a package; [*]Many classes with default accessibilities and one class with public accessibility in a …

Member Avatar for sneaker
0
173
Member Avatar for arshi9464

i was using mysql to connect to database in java. but it is throwing an error that is" access denied for use' '@'localhost' to database 'onlinetest' while installing mysql I DIDNT PROVIDED ANY USERNAME AND PASSWORD, IS THERE ANY PROBLEM WITH USER AND PASS AND WHAT TO WRITE IN USER …

Member Avatar for masijade
0
82
Member Avatar for solomon_13000

My question is why (i1==i2)=false,(i3==i4)=false and (i5==i6)=true? [CODE] public class comp { public static void main(String[] args){ Integer i1 = 2001; Integer i2 = 2001; System.out.println((i1==i2) + " " + (i1.equals(i2))); Integer i3 = 21; Integer i4 = new Integer(21); System.out.println((i3==i4) + " " + (i3.equals(i4))); Integer i5 = 21; …

Member Avatar for jon.kiparsky
0
157
Member Avatar for kwins

hi i really need your help i'm a beginner in java and we're having this homework here is my code its not complete and there is error please help me solve this one :( tell me what to do [CODE]import java.io.*; public class hangukFishShop { public static void main(String[] args)throws …

Member Avatar for jon.kiparsky
0
238
Member Avatar for bibiki

I have been thinking of making a graphing calculator for practice. However, I do not know how to assign to a variable an expression. What I exactly mean is: let's say x is a variable, and y a function of x. I can just define the function inside the code, …

Member Avatar for bibiki
0
119
Member Avatar for Bahubali

Getting the FileNotFound exception: java.io.FileNotFoundException: C:\Documents and Settings\User\My Documents\NetBeansProjects\MyApp\src\java\source\downloadfile.txt (The system cannot find the file specified) java.io.FileInputStream.open(Native Method) java.io.FileInputStream.<init>(FileInputStream.java:106) java.io.FileInputStream.<init>(FileInputStream.java:66) source.download.execute(download.java:25) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) java.lang.reflect.Method.invoke(Method.java:597) com.opensymphony.xwork2.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:441) com.opensymphony.xwork2.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:280) com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:243) com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:165) com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87) com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237) com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:252) org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:68) com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87) com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237) com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:122) com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237) com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:195) com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87) com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237) com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:195) com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87) com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237) com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:179) com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237) org.apache.struts2.interceptor.MultiselectInterceptor.intercept(MultiselectInterceptor.java:75) com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237) org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:94) com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237) …

0
54
Member Avatar for hamzamuradkhanh

Sir, I want to develop a internet booster software that boost the speed of internet from original speed to high speed.please tell me how internet booster works and which language i should use?

Member Avatar for jwenting
0
117
Member Avatar for pardeep3dec

Dear Experts i want to know about the date schedule and syllabus for SCJP exams of java. Kindly provide me link to scjp. Best Regards, Pardeep

Member Avatar for jwenting
-2
119
Member Avatar for solomon_13000

Why is the value 22 created for the code below? [CODE] public class Pregnant extends Thread{ int x = 0; public static void main(String[] args){ Runnable r1 = new Pregnant(); new Thread(r1).start(); new Thread(r1).start(); } public void run(){ for(int j=0;j<3;j++){ x = x + 1; x = x + 10; …

Member Avatar for masijade
0
127
Member Avatar for AnkitKumar

anybody tell me that java is object oriented or not . some people says that java is pure object oriented or some says it is not object oriented.

Member Avatar for jwenting
1
326
Member Avatar for clueless246

Hello everybody, For some reason that I do not know ... :D, I got interested in Java programming and while surfing the net found Netbeans 7 and downloaded it. After going through the GUI tutorial, I managed to build a GUI, empty shell, and now hoping to learn more about …

Member Avatar for jennia1686
0
140
Member Avatar for reezox

i try to change this scrip into jsp but i stuck at switch statement - switch ($_GET['action'].. Please someone help me.. (T_T) [B]menu.php[/B] [ICODE]<li><a href="index.php?action=home">Home</a></a></li> <li><a href="index.php?action=aboutus">About Us</a></a></li>[/ICODE] [B]index.php[/B] [ICODE]<td width="20%" valign="top"> <?php include ('menu.php'); ?> </td> <td width="85%" valign="top"> <?php switch ($_GET['action']){ case 'aboutus': include 'aboutus.php'; break; case 'home': …

Member Avatar for reezox
0
152
Member Avatar for apanimesh061

This is program that return a concatenated string to the main() [CODE] import java.io.*; class ConCat { public static void main(String args[]) { String a, b ,c; a = "Animesh "; b = "Pandey"; c = concat(a, b); System.out.println(c); } } static String concat(String s1, String s2) { String C; …

Member Avatar for jon.kiparsky
0
171
Member Avatar for rosey_fci

hi every body I have a problem I want to use the value in a table in other table I mean set the value from other table to the table I want can any one help me!!!

Member Avatar for mKorbel
0
40
Member Avatar for Gata_Salvaje

Hi ,There I hope you can help me with this I need a Java algorithm to help me find how much % is string A relevant to String B Example : String A => Java ,C++ ,C# ,Assembly String B => java ,c++ then Result should be => 50% relevant …

Member Avatar for ztini
0
5K
Member Avatar for 24x24

This is homework. Please do not write my code for me. I did look for this but only found things related to buttons or making a background, none of which had the answers I needed. I have been working on a game. The game has some images floating around and …

Member Avatar for mKorbel
0
163
Member Avatar for komyg

Hi, I am developing a Java SE console application that needs to connect to a web page, get its contents (using HTTP GET) and get the value of a timer that was written in Javascript. If we take [URL="http://www.elated.com/res/File/articles/development/javascript/creating-a-javascript-clock/clock.html"]this[/URL] example page for instance. When I retrieve its contents using HTTP …

Member Avatar for NormR1
0
290
Member Avatar for Sekhrian

Hi guys! Can anyone provide an accurate code for me to do this please. I'm not having any luck finding particular codes on Google that work.

Member Avatar for Sekhrian
0
188
Member Avatar for sneaker

I just bought and read Jim Waldo's "Java The Good Parts". (ISBN 978-0-596-80373-5) It is a very interesting book that gives you insight in what happens under the surface. This is not a book about learning how to program in Java. It is rather a book for those who have …

Member Avatar for sneaker
0
566

The End.