Philip Plenckers

+ Follow
since Jul 25, 2006
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Philip Plenckers


You don't need to know the entire API. However, as far as I can tell the most important methods are in HFSJ. If you only study those you should be fine,

I just passed the SCWCD on the first try with 65% .
I found it a really hard exam and I do admire the people who pass with high scores.

If you want to pass with a higher score than I did, you probably should put a LOT MORE TIME in it than I did. I read HFSJ about half a year ago for the first time. After that I absolutely did not do anything but the regular programming. A week ago I studied the book for a second time. I scored about 50% on the final mock exam. I did some other mock exams and scored around 80% on those. So I figured I will probably just make it ... and did.
So the 20%+ rule seems to apply, but you should be careful though.

The actual exam was really tough. During the exam I was absolutely convinced I did not pass it. I got really a lot (like 10) drag and drop question. I also got two questions which contained spelling mistakes in the answers (e.g. Lisetner instead of Listener). I still don't know whether they do that on purpose.
I also found the questions on Design Patterns (on which I used to score really good) difficult and confusing.

Anyway good luck to all of you who still have to go,

cu around at the ranche,
13 years ago
I would rather say MVC is the appropriate answer. Front Controller deals with the allocation of the incoming request to the proper servlet (at least in our case). MVC separates the concerns of Model (business logic), View (GUI-presentation) and control,
Hi there,

I found a typo in the final mock exam.
It concerns question 43 answer B which is marked as correct. But notice the ia
in constraint.


should be


Not a big deal.

I guess that one is pretty easy. I scored about 80% on that one and a lousy 50% on the final mock exam.
On the j2ee cert I scored about 55% and on Sun's around 80%.

I hope the truth lies in between,

anyway good luck to all, who are preparing ...
Hi Natasza,

absolutely great!!!

thanks a lot,

Philip (second)
14 years ago
Hi Philip,

I guess in this case you have to write your own custom library tag. But as you I'm quite new to this issue.

But from p 438 of HeadFirst Servlets and JSP's I conclude that the <c:forEach> etc. is only capable of invoking the toString() method of the object in the Collection.
If this is enough you can simple override this method.
Maybe someone else can confirm this?

14 years ago
Hi Philip,

it must be in our name ;) . I get exact the same error....

So, when I saw your post I hoped for an answer... but didn't find one yet. ;(


<c:forEach var="location" items="${form.locations}">
<td><c:out value="${location.locationId}"/></td>
<td><c:out value="${location.locationName}"/></td>

javax.servlet.ServletException: Unable to find a value for "locationName" in object of class "java.util.HashMap$Entry" using operator "."





produce similar results

If I leave out the name/id thing and print ${location} I actually get the reference of the object I need (10=org.circe.web.model.Location@9b8ff9/>).I quess you get the same result. So the question is why, if we invoke another method on the bean then toString(), we get the error that the actual object can not be found?

Let me know if you found something, I will do the same


Which produces
javax.servlet.ServletException: Unable to find a value for "locationId" in object of class "java.util.HashMap$Entry" using operator "."

14 years ago

<Why java don't care about the return value>
I guess you have to ask yourself why should Java care? Maybe you just want the code to be executed but you don't really care about the result. And if you don't care, why should java?

<& if we not recieve returned value then where it goes? >
It is just not there ...
But as long as you have a reference to the instance you just created it safely remains in there, and you can go back there and ask for it. But as soon as the instance pops off the stack it is lost.
14 years ago
Hi Paul,

you're right.
14 years ago

I forgot to mention that I checked the InitialContext and ServletContext but couldn't find anything there. But then I might have just missed it ...
14 years ago
Hi there,

I ran into a situation where I would like to use a variable that is declared on the WAS. I found the Name Space bindings and they seem to serve my purpose. That is I can declare a name value pair right there.

However, I can not find the way in which to access this variable in my servlet. I searched through whole of the initial context and servlet context but could not find it there?

The variables wind up in a namebindings.xml which can be found somewhere under the workspace directory.

Can anybody help?
14 years ago
Hi Varun,


Window --> Preferences --> Java --> Installed JREs

you can select a runtime JRE there,
14 years ago

it might be an idea I can use later. However, at this point the redirect seems to do the job ok. I expected some problems with the browser back button but at this point it doesn't seem to be a problem. So for now I'm quite happy
14 years ago