35,618 Topics

Member Avatar for
Member Avatar for martin5211

Hello everybody, I worked long hours this evening trying to unthread the whole thing and still not working... I don't know why. The page display the results using normal code in JSP (no jstl tags). When using jstl tags the page results in blank screen, no posts. Here is the …

Member Avatar for martin5211
0
2K
Member Avatar for josiefrut

Hi, guys. badly need your help. still a newbie in programming. seems like i cannot display some data on the browser from the database. i was able to create a login page. but when i tried adding another servlet and tried calling its jsp, error message appears: HTTP STATUS 500 …

Member Avatar for nohup
0
141
Member Avatar for Vinnijin
Member Avatar for Dean_Grobler

Hi there guys, I got this assignment where I need to set a session attribute. Although I'm having problems since I cant set attribute that is of type double? I got these hints but since I've worked with doubleValue() or downcasting, the hints didn't help me much.. Hints: -Recall that …

Member Avatar for Dean_Grobler
0
239
Member Avatar for jemimaloh

hi, this is my hash function, could anyone explain to me why the lines in red are experiencing an "int cannot be deferenced"? Thank you. [CODE]public static int hashFunc3(int key) { int hashVal = 0; [COLOR="Red"]for (int j=0; j<key.length(); j++)[/COLOR] //left to right { [COLOR="Red"]int letter = key.charAt(j) - 96;[/COLOR] …

Member Avatar for jemimaloh
0
158
Member Avatar for miraj0072004

hello friends, how do I simulate an "enter" key press in java? this is to avoid the continuous key pressing during runtime whereas there are so many popups which require an "enter" key press to continue execution

Member Avatar for NormR1
0
448
Member Avatar for robertmacedonia

Hi, I'd like to ask for a little help. I have this program that handles basic voting,but it should be done client-server,i.e. the server offers questions and multiple clients connect to vote,the server stores the answers etc... I haven't even come to that point of storing etc.,cause I'm stuck here …

Member Avatar for robertmacedonia
0
154
Member Avatar for afreen khan

when i am executing cmd commands through java ,even though we are having tns name its throwing the following error [COLOR="Red"]ERROR: ORA-12154: TNS:could not resolve service name Plz help!!!

Member Avatar for nohup
0
124
Member Avatar for Neosmithk

Hi guys, im new, just joined. i have a serious problem with Java3D... I have just recently completed a large project i have been working on for a long time, a NVE. The problem i am having is when i run in through NetBeans 6.8 i have no issues, but …

Member Avatar for gyuvaraj
0
328
Member Avatar for mahdi68

Hi how can i get lis of phone JSR support on application ? is it possible ? for example it`s support JSR-82 or not ? thanks

Member Avatar for peter_budo
0
96
Member Avatar for gsenthil25

Hello, I'm trying to call a Python module in Java application using JEPP. I'm able to invoke the python modules from java Appl, but i'm not able to call the modules in python class from java appl. Python Code Code: [code] class SampleClass: def [b]callPythonModule[/b](self): print 'The Python Class module …

0
29
Member Avatar for Premsathishbe
Member Avatar for datta.saru@gmai
Member Avatar for yasuodancez
0
326
Member Avatar for Szeth

Hello Daniweb, I have a program due this evening and am ready to give up. I can't figure out my compile problems: C:\Users\Chris\Desktop\My Java Programs\Chris_Y_Week_5_IA.java:85: call to super must be first statement in constructor super("mortgagecalcsr7"); ^ C:\Users\Chris\Desktop\My Java Programs\Chris_Y_Week_5_IA.java:573: inner classes cannot have static declarations public static void main(String[] args) …

Member Avatar for Szeth
0
231
Member Avatar for hazeeel

How do I calculate my RMSD(root mean square deviation) score for my PDB protein structures, atom by atom. I wish to calculate it line by line. But I do not know how to go about it? I was thinking of using a for loop but as you can see, I've …

Member Avatar for hazeeel
0
259
Member Avatar for gopi17

Help me.....i'm tryin to figure out how to link to another java class using a button but i falied to do so...kindly assist me....thanks [CODE] public Login() { setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); setSize(400,400); java.awt.Container contents = getContentPane(); contents.setLayout(null); setTitle("Air-Malaysia"); contents.setLayout(null ); contents.setBackground(Color.black); contents.setForeground(Color.orange); am.setFont(f1); usrnm.setFont(f2); clk.setFont(f2); clk.setBackground(Color.black); clk.setForeground(Color.orange); btnOk.setBackground(Color.black); btnOk.setForeground(Color.orange); btnCancel.setBackground(Color.black); btnCancel.setForeground(Color.orange); usrnm.setForeground(Color.orange); …

Member Avatar for NormR1
0
11K
Member Avatar for moon207

hello everybody, I'm new to jsp.I have to develope web portal for my company but i had problem with my login page. I hope that you can help this problem. Here is the code: <%@ page contentType="text/html" import="java.sql.*, java.util.Date, java.io.*" %> <%! String CheckLogin(String Login, String Password) throws Exception { …

0
33
Member Avatar for samuel17

Hi All. Wondering if someone can assist me with this code im trying to write. I have to make a small calculation with random variables but the problem i run into is that i have to pass the calculated variable back to the main method and display it that way. …

Member Avatar for samuel17
0
185
Member Avatar for gopi17

[CODE] package testt; import java.awt.*; import java.lang.*; import java.applet.*; import java.awt.event.*; import javax.swing.*; public class Login extends JFrame implements ActionListener { //JFrame logframe = new JFrame(); JLabel am=new JLabel("Air-Malaysia...."); JLabel usrnm=new JLabel("Username : "); JLabel nwm=new JLabel("Not yet a member? "); JButton clk=new JButton("Click Here"); JLabel pswrd=new JLabel("Password : "); …

Member Avatar for NormR1
-1
213
Member Avatar for gudads

I am learning java, in i know in C, when we use: float and double ... the format is : %f for float %lf for double. in java i don't understand why we use double rather than float?? and the format for double is %f !!! [LIST=1] [*]Can some1 explain …

Member Avatar for gudads
0
485
Member Avatar for gudads
Member Avatar for churva_churva

[CODE] import java.util.*; public class PhoneDirec{ private int MAX=10; private String [] validNames={"Gary","Sam","John","Jude","Alyssa","Matt","Eric","Susie","Alics","Sara"}; PhoneDirec(){ //allocate memory to names validNames=new String[MAX]; }// accept 10 names //I suppose to enter 10 names public void accept(){ Scanner console = new Scanner(System.in); for(int n = 0;n< names.length;n++) names[n] = console.nextLine(); } /*I also to …

Member Avatar for Akill10
0
164
Member Avatar for mhopper

All, I'm having issues running a simple java program on the linux command line. When I run: java -server -cp ./mysql-connector-java-5.1.12/mysql-connector-java-5.1.12-bin.jar -jar PaymentProcessor.jar I get `"java.sql.SQLException: No suitable driver found for jdbc:mysql://localhost/pmtdb"` When I run this command (which works on the windows command line) java -server -classpath ./classes;./mysql-connector-java-5.1.12/mysql-connector-java-5.1.12-bin.jar paymentprocessor.PaymentProcessorServer I …

Member Avatar for NormR1
0
159
Member Avatar for Pushpasheela

i want to get records from msaccess when the pin number start from 'twt000'. I am using one variable name is pinnumber to store the value. [CODE]String pinnumber='twt000'[/CODE] how to fetch records from msaccess database.[CODE]pst=con2.prepareStatement("Select * from pin_numbers where pin_number like '?*'"); pst.setString(1,pin); rs2=pst.executeQuery();[/CODE] Please any one help me.

Member Avatar for ~s.o.s~
0
109
Member Avatar for ssimkhan

Hi all, im trying to run so many codes using java RMI and nothing seems to work. im on the point of banging my head on the PC. Im sure evryone is aware of the popular Calculator example: Calcuator.java, CalcuatorImpl.java, CalcuatorClient.java and CalcuatorServer.java. I hae done this and other examples …

Member Avatar for nil2087
0
239
Member Avatar for churva_churva

[CODE] /* This program would use console/GUI,*/ /* It should 1 adding of object 2 display of object 3 updating of object 4 deleting of object */ import java.util.*; public class EmployeeList{ private int [] Age; private String [] EmpfirstName; private String [] Emplast; private String [] Adrss; static Scanner …

Member Avatar for peter_budo
0
221
Member Avatar for kazumahits

pls help me to solve my problem. here's my code [CODE]import java.io.*; public class ifelse { public static void main(String[] args) throws IOException{ BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); int a; System.out.println("Enter your Level"); a = Integer.parseInt(in.readLine()); if (a == 1) System.out.println("\nYou are Freshman"); else if (a == 2) System.out.println("\nYou …

Member Avatar for jon.kiparsky
0
11K
Member Avatar for churva_churva

how to make a program using this 4 steps in a an array as a menu,and can you please give an example or idea how to do this for steps: 1 accept of object 2 display of object 3 updating of object 4 deleting of object thank you:

Member Avatar for jon.kiparsky
0
493
Member Avatar for extemer

guys i am working on a small software in which frame appear thats show a image that your drive c is damaged and than another frame by 6sec delay show a "just kidding" image.now i want to connect this program with my usb so that when ever i plug in …

Member Avatar for extemer
0
373
Member Avatar for Andrew Davis 64

How do I create an Instant Messenger Program using Java? I want to create an Instant Messenger Program using Java, and I dont have a clue where to start, so if someone can please help me, that would be great. Thank You, Andrew Davis

Member Avatar for alex1986
0
223

The End.