Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!

Greg Neef

Ranch Hand
+ Follow
since Jun 16, 2003
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Greg Neef

I just saw a job posting where RUP certification was 'mandatory'. I wasn't aware there even was RUP certification. Anyone actually have it?
Here in the mid-atlantic, USA its as slow as I have seen it since last summer. It was actually better in Decemeber than now.
16 years ago
The problem has been happening to me with KMail but the 0xA0 characters are consistently present after I paste into editors other than XEmacs as well. I'll have to try a different mail client to see if the result is any different.
Here is what the compile errors look like:
16 years ago
It still seems pretty dire. After 85 resumes sent out, I got a call last week for the first time from a real company about an actual, full time, Architect Analyst position (for which I am very well qualified). However, during the initial phone interview "sniff test" the interviewer was late arriving and seemed hardly interested in what I was saying and did not ask me any questions. I am still a bit puzzeled but can only assume that they already have made a decision about someone and are simply going through the motions to comply with some bizare HR policy.
Personally, I plan to keep up my search through the winter but have already had to take a blue collar job at one-fifth of what I was making in IT.
16 years ago
Not sure what I am missing. Thought that:

would be sufficent to get going but the pass string is null. What I am overlooking?
[ December 15, 2003: Message edited by: Greg Neef ]
16 years ago
US working hours per year are far higher than Europe and the salary's reflect that differential.
16 years ago
The Javaranch Cattle Drive is a good starting point for the Servlets. I'm using the Core Servlets and JSP book by Hall and Brown as the Just Java book is thin at best in this area.
Given that v.inStock() returns a boolean, why does this compile?

but this does not

[greg@localhost servlet]$ javac SomeProgram.java
SomeProgram.java:32: not a statement
(v.inStock()) ? out.print( "<td> yes </td>" ) : out.print( "<td> no </td>" );
16 years ago
I felt exactly the same way last week. Then I thought, 'OK, they arn't giving me any hints, there is nothing about this in the damn book, it can't be rocket science.... what do i know about sharing things that might work.... hmmmmm.. I only want one version though shared by multiple servlets.... DOH!
[ November 18, 2003: Message edited by: Greg Neef ]
16 years ago
Thanks Michael for your excellent explanation. This makes perfect sense to me that I have a null pointer exception since there is no "dvd" entry at all. I knew, but was forgetting that the CastMap does not bother to include these items at all. I was a bit confused I think by the PrintWriters display of null. Personally I find the syntax a bit tortured but the nitpickers have clearly established that my taste in code and theirs diverge significantly on many occasions. To me (knowing as I now do that the unchecked box has no entry in the cast map) a null test makes perfect sense. We shall see what they say.
I do still wonder why the value for the checkbox is not "true" instead of "yes" in the provided html. Then one could assign said value directly to a boolean if not null and forgo testing for equality at all as I am in effect doing now.
Back to the null pointer exception though, how should I have debugged this? If I had known what the error was, I imagine the light would have gone off (although who knows at 11PM). I realize there is a logging function with the common javaranch servlet classes but I am unclear how it gets used. Should I try to start using an IDE for debugging servlets?
16 years ago

[ November 15, 2003: Message edited by: Greg Neef ]
Looks better - let's keep it to ourselves.
-Barry
[ November 15, 2003: Message edited by: Barry Gaunt ]
16 years ago
Did anyone who did the Servlets class have a problem with the CastMap getTrimmed String()? My servlet is just blowing down if I don't specify a value for the form checkbox field I am testing. Works fine for yes but just stops if I leave the associated checkbox blank.

if the "dvd" string does not equals("yes"), the servlet exits with an unknown error.
16 years ago
DOH!
This is why coding a 11PM is not a good idea, no matter how much coffee you drink. Thanks all!
16 years ago
I can't see what I am doing wrong here. I'd swear the boolean should be getting set, but for some reason it is not.


The output is:
parms.getString( "vhs" ) = yes video.inVHS() = false

[ November 13, 2003: Message edited by: Greg Neef ]

Marilyn removed just a couple more lines of code.
[ November 13, 2003: Message edited by: Marilyn de Queiroz ]
16 years ago
Make it the first part of my day followed by lots of exercise and studying things which will hopefully be useful once I find ont.
16 years ago