Ha Minh Nam

Greenhorn
+ Follow
since May 22, 2007
Merit badge: grant badges
For More
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 Ha Minh Nam

Hi guys,
I'd like to get one but where do I begin? Got a work permit in recession seems to be impossible huh
14 years ago
Congratulations Srikanth, a SCWCDer!
15 years ago
Congratulations, Jeffry!
You've done a great job. I've been doing my URLyBird, but I'm quite busy at work...
15 years ago
Congratulations Roberto!
I'm doing my assignment: URLyBird 1.1.3.
Thanks a lot for sharing your experience.
15 years ago
Thanks my friends
The next game I'd like to play is SCJD. In my opinion, SCJD is much harder than SCJP and SCWCD, right?
15 years ago
Hi ranchers!
I'm very happy here to tell you that I passed SCWCD yesterday with 89% score. Following is the detail score by section:
- 100%: Servlet Tech, Session, JSP Tech, EL and Custom tag library.
- over 80%: Deployment, Container, Tag libraries and Patterns.
- Lowest score: Security (66%) and Standard actions (75%).

My preparation took no more than 4 weeks. Read HFSJ 1st edition one time, scored 72% in final mock exam.

Thanks authors for their great book and all ranchers in this forum.

Have a nice day for all!
15 years ago

Thanks Bryan for a really easy-to-understand example.
I think the question lacks of an assumption about mapping to the servlet. Since there is no such an assumption, we'd better to think it has a correct mapping.
So my answer is "An error page is returned from the Server..."

Originally posted by Soniya Ahuja:
For people still pondering over such tomcat problems

put this in your web.xml

<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
version="2.4">


I found this on Sun forums and it works.



Thanks Soniya Ahuja!

I also have faced this problem with Tomcat 5.5. Your great tip has really cleared my doubt.

Originally posted by Felix Li:
Good to test around like that.
The Container should init a thread for each client(aka browser). Therfore, if you keep on refreshing on the same browser, info remains the same. Try using several browser to test it. It should work.



Sorry, I missed the point is I tested with 3 browsers: FireFox, IE and Chrome, the response was still not change. I inserted a line of code at beginning of doPost() method:



Then I checked the container's log file for every request. I assure that every request made from browser was really hit to the servlet, the response was not cached somewhere.

My servlet is running in Apache Tomcat.

What was happen in the container?
Hi everybody!
I'm preparing for SCWCD, reading HFSJ book. The book said:

The container runs multiple threads to process multiple requests to a
single servlet... Each request runs in a separate thread



So I wrote a simple servlet to do a checking. My servlet overrides doPost() method, and in the method body I simply print out hashcode of the servlet; Name, ID and hashcode of the current thread that is executing this method. The code is as follow:



Use FireFox to make a request, the response likes this:



I press F5 multiple times to simulate 'multiple requests', but the response doesn't change at all. What I expected is that the thread name, id, and hashcode change to other values for every request.

Could anyone explain this?
Thanks all of you!

Hi Siphiwe Madi,

My prepration for SCJP exam was about 550 hours, every day I had only 2 hours for reading and coding, so by some calculation, I took approximately 9 months. . I didn't have full time for preparation because I have been working for my company.

Originally posted by Siphiwe Madi:
Hi,

Congragulations on your results.

1 question -
I know preparation takes varying periods for different individuals, but how long would you say it took for you to prepare for the exam?

Regards,
Siphiwe M

16 years ago
Hi all
I passed SCJP 1.5 last week, the real exam was not so difficult than I thought

Now I'm preparing for SCJD
16 years ago