Advertisement
Nickname
spike
Registered since:
August 24, 2004
Short bio:
Java Developer in the Financial Industry. Formerly Supply Chain and Retail. Prefers thick-client apps over Web (hence Wicket is the Web Framework of choice).
Home page:
 
Total posts:
530

Forum posts by Kondwani Mkandawire:

36 pages [ Previous 1 ... 28 29 30 31 32 33 34 35 36 Next ]
Posted in Java Answers Forum, Jun 1, 2005, 6:19 PM
Try and stack trace your error lets see if it gives us more info.Do not throw your exceptions catch them and print them outsequentially by placing your code in a try-catch as follows:package test1; import java.io.*; // contains classes for input and output streamsimport java.net.*; // provides classes for network support public class client {...
Posted in Java Answers Forum, May 31, 2005, 9:42 PM
Google Signing Java Applets or Java Security FileConfiguration.Alternatively, Store your getText Applet methodsand send them to a JSP form with hidden variablesand use JSP to insert into the data base.Do vice-versa for reading from a database.
Posted in Java Answers Forum, May 31, 2005, 12:49 AM
Just wanted an opinion. When most of you are coding large Modules,for instance say modules with several Files, and hundreds of linesof code (even thousands of lines of code), do you compileiteratively or do you write out all modules then just tryand have it run in one ant file (eliminating an errorpiece by piece)?Just a question... I'm sure its...
Posted in Java Answers Forum, May 30, 2005, 7:33 PM
Checkout posting by Elise:HELP - converting characters,I've given a suggestion on how to go aboutit. Just a Q: you have imported a packagecalled element, if you are at the levelwhere you are writing your own packages,this should be a trivial algorigthm foryou, shouldn't it? Or am I misunderstandingthe problem?
Posted in Java Answers Forum, May 30, 2005, 7:23 PM
> go to services in the control panel and stop the apache> tomcat service.> then click on startup.bat> the problem is the server is already running in the back> side.That's hilarious, sounds like the exact same thingI posted...
Posted in Java Answers Forum, May 25, 2005, 6:28 PM
Just a suggestion coz I have never used Tomcat...I'm currently running other servers on a Linuxmachine... Try run it in DOS and use verbosemode:Whereever your Tomcat Bin is located try:to run startup -v (or whatever your startupscript is).I'm sure Tomcat should be able to run in verbosemode. You'll be able to disect the error.Shouldn't most...
Posted in Java Answers Forum, May 24, 2005, 8:47 PM
Haven't done it before but try this:Applet -> hidden JSP variable (HTML) -> databasefor insertion.For extraction:database -> Read by JSP Servlet -> placed onApplet.That should work. But as I said, never tried it.
Posted in Java Answers Forum, May 22, 2005, 10:25 PM
> hi> now i compiled my Hello.java servlet class > but i have an error messge AS: package javax.servlet does> not exist;> i set my CLASSPATH => C:\j2sdk1.4.2_01\lib;C:\j2sdk1.4.2_01\lib> and i copied "servlet.jar" file under C:\j2sdk1.4.2_01\lib> > directory> plz help meNaturally, you're developing J2EE applications you hencewant your class...
Posted in Java Answers Forum, May 22, 2005, 8:47 PM
Here is a quick and dirty solution...Create a method that returns a Vector of String representations of your data. Use a StringTokenizer to traverse the line public Vector parseLine(String line){ Vector vec = new Vector(); StringTokenizer tok = new StringTokenizer(line); while(tok.hasMoreTokens()){ String temp = ""; // Use Java API to replace...
Posted in Java Answers Forum, May 22, 2005, 8:29 PM
> I need help in calling method xxx.getValueSelected that> returns anobject from a JList , then convert it to a> string, and then to an int,prior to storing it my declacre> (int) number. > > I am very new to Java.[code] String myString = xxx.getSelectedValue().toString(); // next method will fail if selected item does not // have an int format...
Posted in Java Answers Forum, Feb 18, 2005, 3:31 AM
> I am a c++ developer and i am working on java lately. I> faced a problem described below. > > I filled a LinkedList called "customers" with objects of> class "customer". Customer objects have attributes x, y,> ID. Then i want to get an object of "customers" and i> write:> > Object cc1=Customers.getFirst();> > When i am debuging, in watch...
Posted in Java Answers Forum, Feb 9, 2005, 10:10 PM
Hi Folks:I have a Print function in a Swing application and theDefault Font being used by the printer is extremelylarge such that when it prints my Swing Component,the text (only the text and not the Swing Components)gets cut off...It doesn't even adhere to the font that my SwingComponents are using.I have tried to do the following:public void...
Posted in Java Answers Forum, Jan 13, 2005, 10:03 PM
A compilation tip brother:I don't know if you already do this, but if youdislike using the debuggers in JBuilder (if that'swhere you're working), you may also use printlnstatements to catch where your NullPointerExceptionsare occuring, in somecases where you loose accuracy.E.g if I want to debugg figure out where I lose accuracyor what the...
Posted in Java Answers Forum, Jan 10, 2005, 10:00 PM
Hi Folks:I've googled this senseless without much help...I'm trying to use this Layout Manager similar tohow GridLayout is used in the following code snippet:JPanel panel1 = new JPanel();panel1.setLayout(new GridLayout(1, 2));panel1.add(panelA);panel1.add(panelB);I would like to split this Panel such thatthe left is 1/5th of the Pane and the...
Posted in Java Answers Forum, Jan 9, 2005, 8:14 PM
Have you tried compiling from the Java bindirectory.i.e. from your Console/Dos, change Directoriesto where your Java bin folder is and runjavac from there.If this works then your AutoExec file iseither not configured properly or you haveissues with your Batch file.If you're running Win2000 or WinXP try andconfigure it via System Icon in the...
36 pages [ Previous 1 ... 28 29 30 31 32 33 34 35 36 Next ]
Advertisement