server_crash 64 Postaholic

I'm guessing you have an HTML form that links to the servlet?

If so, it's the actionform path that's wrong. Please post it.


Actually, you're using tom 5.5...I had A LOT of problems with that and so has many other people. Even after getting the DD correct and the path correct I could not get it to work.

Anyways, if you're sure you have the DD right and the path right I would suggest using an older version of tom. probably 4.5 or 5.

server_crash 64 Postaholic

You need to post screenshots of your work in progress.

server_crash 64 Postaholic

That looks MUCH better. The only thing I can see so far is the blue text color. I'm not sure what you could change it to---possible a white? play around with it.

Other than that, I think it looks great.

server_crash 64 Postaholic

You're still lacking in the color area. Everything else is good. Once you get the right colors down, your site will be just as good as anyone elses. I too have a problem in selecting colors. I have to consult others on the colors of my programs.


Anyways, take a look around at some other forums and their colors schemes. Keep playing around with yours and post back when you've changed it, and I will let you know what I think. Later if I have time I will give you some ideas on the colors to use...If I have any!

server_crash 64 Postaholic

You could do this if it has a comma,dash,space, and nothing else...Although I'm not sure why you want to go down such a rocky road..Can't you just store the original id in a string?

import java.util.*;

class TestTokenizer
{
	public static void main(String[] args)
	{
		ArrayList alTokens = new ArrayList();

		String id = "SD125,SD478-SD478 SD147";
		System.out.println("Original ---> " + id);
		
		int commaIndex = id.indexOf(",");
		int dashIndex = id.indexOf("-");
		int spaceIndex = id.indexOf(" ");
		
		StringTokenizer st = new StringTokenizer(id,",- ");

		while (st.hasMoreTokens())
		{
			alTokens.add(st.nextToken());
		}
		
		StringBuffer sb = new StringBuffer();
		for (int i=0; i<alTokens.size(); i++)
		{
			System.out.println(alTokens.get(i).toString());
			sb.append(alTokens.get(i).toString());
		}
		sb.insert(commaIndex,",");
		sb.insert(dashIndex,"-");
		sb.insert(spaceIndex," ");
		System.out.println("Back to original order---> " + sb.toString());
	}
}
server_crash 64 Postaholic

Will this ID always be in that format, or will the comma and such be in different places?

server_crash 64 Postaholic

There's no way of getting around the files created from inner/sub/external classes. Splitting up into classes like you've done is good. It's better OO design to split the functionality into different classes.

server_crash 64 Postaholic

Looks great!

One thing though, I do believe the colors need some changing.

server_crash 64 Postaholic

I'm in school right now, and can back up stuff that I say; can you?
I learned how to read in early kidnergarten, not second grade. Actually, my parents taught me a little before I got into school.

And you say the methods are easier for teachers? What a joke. NEW(not old) mandates are requiring teachers to be FULLY qualified to teach their subject and are not allowed to teach in any other subject unless they are certified in it...Furthering the success teachers have on students.

Another problem, teachers can't pull a book out and shove it into the childs brain(which is what most parents seem to expect). These parents with kids that are failing introductory math probably spend no time with them and do not force them to study, but will buy them any video game they want.

I speak from an experienced standpoint when I say NEW, YOUNG teachers are better than OLD teachers WITH years of experience. It's PROVEN in my school that these younger teachers right out of college have students with better results than these old teachers with many years of experience in teaching the subject...Contridicting to what you said, eh?

Put the blame where it belongs, not with the people who can only do so much. If parents don't want to let their child know that they should be studying instead of playing games, then that's their fault NOT the teachers nor the teachers methods.

Unless your in …

server_crash 64 Postaholic

First of all, I would like to say that this is NOT homework..I'm working on this in my on free time.
Anyways, I'm needed someone to help me out in calculating some stuff with mortgages.

I need to know how to do the following:

1) Calculate prepayments
2) Calculate inflation
3) Calculate tax


I know you'll need some more information, but I want to know that someone is able to do this before I post it. I CAN post a screenshot of the application if it helps some.

Thanks.

server_crash 64 Postaholic

See I didn't know anything about it other than hearing it was cheaper.

server_crash 64 Postaholic

I don't see anything wrong with the current/future education system...Compared to the past it's quit an advancement. Speaking from an experienced standpoint(as I'm in the school system your speaking of right now) I see that IT IS THE PARENTS who are at fault for these losers in schools that do absolutely nothing and turn out to make our burgers at the local fast food joint. The school system is NOT at fault. School these days are a lot more stressfull, intense, and productive than it use to be.

server_crash 64 Postaholic

What about OEM release software? I've heard it's cheap but I can't say because I've never used it, nor do I know if it's easy to obtain.

server_crash 64 Postaholic

How are you searching through the DB?

server_crash 64 Postaholic

Edit: Oh, I didn't see your post server_crash. I'm still getting used to this site and this hybrid mode of browsing. You can System.out.println in an applet by the way.

I know, but I think he wanted another way other than opening up the java console.

server_crash 64 Postaholic

You're using System.out.println() with an applet...Not something you can do. You'll need to have a paint method and draw the string to the applet...Of course you could escape all of that by using JOptionPanes.

server_crash 64 Postaholic

Hmmm...I'm not sure I like the idea of this. It almost seems like another step in giving the government more and more power which is the exact opposite of what the founders of the constitution wanted.

server_crash 64 Postaholic

He's entitled to his opinion as everyone else...I actually agree with him; global warming is at the VERY bottom of my worry list. I posted that to see what people thought about it and welcomed each and everyones comments.

Anyways, I just don't see how that will even do anything. I mean, eventually the co2 WILL reach the atmosphere won't it? co2 is a bi-product of co2 during the co2 cycle and is also used during it.

server_crash 64 Postaholic

I just read in a magazine called "Scientific American" that future preventions of global warming include pumping Co<sub>2</sub> underground....Will that actually be possible? Even more questionable, how effective will it be?

server_crash 64 Postaholic

I can cook a mean microwave pizza..Does that meet the requirements of the recipe thread?

server_crash 64 Postaholic

Is this something that will be implanted in the skin?

server_crash 64 Postaholic

If you downloaded the source code and it's suppose to work, my only guess would be that some kind of "library" is missing which is operating system independent.

server_crash 64 Postaholic

You have to be careful when throwing exceptions in a constructor, that is if you want clean running code. Constructors should also return valid objects but sometimes can't due to errors. I guess the best way to deal with something of this senario is present clear error messages that let the user know what they failed to give or present, and second is to use the finally clause. The finally clause will give about the only way to "clean up" your code after failure, although you must be careful here also. Using the finally clause means that it will execute every time the code is run(you know this already), which means some kind of flag must be created in order for proper cleanup.

Hope that makes a little sense and helps out some. I'm sure you know all of that already and are seeking more advanced techniques, but that's about the only path you can go down on.

server_crash 64 Postaholic

check the usb api.

server_crash 64 Postaholic

:evil: :evil: :evil:
I just wasted almost 8.5 hours at the "wonderful world of walt disney"(WHAT A MISLEADING TITLE). Unless your 3 years old, DO NOT make the mistake in going there!!!! Take my advise!

server_crash 64 Postaholic

life-less :rolleyes:

I'm guessing he's one of these people that think having a life is either nothing but sports, playing video games, or watching tv. At least we """""""lifeless""""""" people do something constructive. One day you'll be working for one of us, if not all ready.

server_crash 64 Postaholic

I've never done this before so I can't give any code, but I do know that you can use the javax.mail package.

server_crash 64 Postaholic

Well, we all have our little things we like. Cat obviously likes cricket, I personally like soccer and hockey even though both are NOT the most popular in my country!

server_crash 64 Postaholic

I wish that he would have gotten prosectuted, but it's just not possible with unreliable sources that can't be taken as legit...He WILL do it again, regardless of what his in-denial lawyer says.

server_crash 64 Postaholic

cricket -- that funny looking insect?

server_crash 64 Postaholic

ohhh that's good. I'll visit and click on the ads as often as I can.

server_crash 64 Postaholic

JEdit is my all time favorite, then I would have to say AVG.

server_crash 64 Postaholic

life-less :rolleyes:

I'll tell you again:

If you haven't noticed computers and the internet are a lifestyle.

server_crash 64 Postaholic

If you haven't noticed computers and the internet are a lifestyle.

server_crash 64 Postaholic

I wouldn't call that a good investmet right now. The IPO shares started at 85$..If you could have gotten some of that between then and now it would be good, but it's too late to start buying into google(at least I think).

server_crash 64 Postaholic

I did this just the other day! I would suggest using the DefaultTableModel, you'll have an easier time with it.

This was my code:

int c = dtm.getRowCount();
			 for (int i=c-1; i>=0; i--)
			 {
				 dtm.removeRow(i);
				 mortgageTable.revalidate();
			 }

dtm is a DefaultTableModel
mortgageTable is the JTable

Compare your code with mine. It will be somewhat different, but overall it should look similar. Again, I really think you should use the DefaultTableModel instead.

server_crash 64 Postaholic

There's no doubt in my mind that he did molest chidren...But that means nothing. The prosecution was terrible in this case. NOT ONE of the witnesses were trustworthy. Each one kept changing their story.. First it was, yes he did it, then wait no he didn't. You can't convict someone when testimonies are as questionable as that. If he was convicted, then I would have to question our system..You can't convict someone just because they're a freak. It comes down to the prosecution not strong enough to handle this case.

server_crash 64 Postaholic

i am a christian. i do not press my religion
They only ask for an equal amount of teaching. What ever happened to freedom of religion?

Things like this are being taken away by SINGLE individuals. Take that ONE guy in florida for example: His daughter and wife were christian, but he was an athiest(spelling?)...He didn't like the christian religion so he's the one that got "Under God" taken out of the pledge of allegance, even thought this country was founded on religion...It's sad that one person can change things like that...A possible sign of future destruction. That's not the only occurance of something like this, there are MANY more.

server_crash 64 Postaholic

If you bought redhat at 5$, then that's good. At one point they were up to 29$ but later fell. I belive they are currently hovering around the 10-15$ range...But for SunW, that probably wasn't a good choice! I've been watching that one and never really seen it do anything special.

server_crash 64 Postaholic

Why don't you run the check disk utility and check the volume for errors.

server_crash 64 Postaholic

Just include the FULL path in the File object:

File f = new File("C:/Program Files/Java/file.txt");

server_crash 64 Postaholic

Also, is it really necessary that you use the abstract table model? I'm using default right now and it's much easier to use. It simply has a method called addRow() and addColumn() that would probably suit your needs and make life easier on you.

server_crash 64 Postaholic

Right after you add a row or delete it, revalidate the table.

table.revalidate();

call that on the table, NOT the table model.

server_crash 64 Postaholic

plz c ????? Please translate that into proper English so people who are not well versed in gobbledegook can understand you.

Same with parts of the rest of your post...

He speeketh the language of |33t h4x0rz.

server_crash 64 Postaholic

You form action should probably be this:

'/examples/servlet/sestrack'

If it's anything else you need to set up your DD. Actually you need to add the servlet info anyway to the DD(if I remember corretly).

If that still doesn't work then your probably using the latest version of tomcat. I never could get that one to work..Go with 4 or early 5.

server_crash 64 Postaholic

But what should the classpath be pointing to then?

server_crash 64 Postaholic

GetLocation() probably needs to make a call to the Point2D class. I'm guessing your class has a constructor that takes two arguments, an x and a y. If so, you could say:

public void getLocation()
{
     return  new Point2D(this.x,this.y);
}
server_crash 64 Postaholic

Im pretty sure that the get method returns a point....From there it's up to the recipitent of the point to call the getX() getY() methods on that point. There's really now way to return both of those. You can create your own methods that could do something like this:

public Point2D getLocation()
{
   return Point2D();
}

public int getX()
{
      Point2D p = getLocation();
      return p.getX();
}
public int getY()
{
    Point2D p = getLocation();
    return p.getY();
}

You'll have to check to make sure I'm right about getX() and getY()...I'm pretty sure that those exist, but make sure.

server_crash 64 Postaholic

Also, he said his "machine" copied bit by bit....There's no such thing as a 1:1 copy. Furthermore, wouldn't such as machine counterproductive in it's cost?

server_crash 64 Postaholic

What exactly are you having problems with during the use of get and setLocation()... You can specify an x and y int as arguments or pass a point to it. You'll have to be more specific before I can really help.