Tom Arons

Greenhorn
+ Follow
since Jan 04, 2002
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 Tom Arons

I found the JWebPlus exams to be good but definitely easier than the real test.
For the ServletResponse setContentType() method the content type may include the type of character encoding used, for example, text/html; charset=ISO-8859-4. This is taken from the servlet API docs. This is where you are thinking of the MIME type such as "text/html", "text/plain", or "image/gif",....
So it seems even though ServletRequest.getContentType() gets the MIME type of the input stream, it retrieves the additional information that we are talking about. You can probably think of it as header information I guess.
Your idea of putting it in a servlet seems like a good design idea.
Faiza,
You can check the content type of the data sent via the input stream by method ServletRequest.getContentType(). The type "application/x-www-form-urlencoded" is a content type of the input stream, and if it is of this type, the data can then be retrieved with the getParameter() method.
You could put the code in jspInit() although this makes the JSP more like a servlet and less like a web presentation page. Scriplets are another possibility although this may not necessarily a good idea from a design view.
I think these specs are maybe a detailed explanation to say that sessions can migrate to other VM's. Each VM has a separate instance of ServletContext and so do not rely on state information in ServletContext.
Niu,
I suggest that you go to the Listener tutorial site posted on this site. Copy or write the code for the classes and web.xml. Even if you copy the code, you will have to put the classes and the additions to the deployment descriptor in the correct places and this is good practice. Understand what the output is to the screen with the System.println (output to the Tomcat 4.0 window) from the program. These examples give you an excellent way to understand listeners and when they are accessed.
Thanks to all of you for your kind words. I certainly do not consider myself old at all but by IT standards and in the workforce in general there is a very real age factor. I am looking and doing things on a contract basis which is fine with me if I can find the work.
Faiza, you deserve a lot of credit for being a working mother and going for this cert. You will do it! Try to relate things like requests, responses, ServletContext, RequestDispatcher, etc. with methods that would make sense. For example, would it make more sense for a request or response to getHeader/setHeader? What is a ServletContext and what does it represent? How about ServletConfig? What really happens and why in a servlet and JSP lifecycle and why does this make sense? Of course there is memorization but use this rationale and try to code and/or download code from books and then try what if scenarios. What happens if I change this? Does the result come to what I expect? Why or why not? As I said, the JSP DTD and deployment descriptor questions were pretty easy, just some bizarre questions on other things to me.
I just don't think that you should waste a lot of time memorizing. Yes, know the details of DTD and DD but realize that there cannot possibly be that many questions on all the details. Again, on the test that I took, there were many conceptual items. That is why I did not think the test was ridiculously easy as some in the forum seemed to indicate. I consistently got mid 80's and 90's on the simulated tests (except for Cobian's -this was in the 60's).
Mark, your sense of humor is like mine. Evidently they don't hire programmers that old! I am proof of that.
Fei, 48 is a good age I agree. Chintan, my mind and body has not left me yet - I hope to remember things for a while. Madhav, you are correct, determination is the key. Steven, you will have courage, no problem. Thanks for your words of encouragement Ramdhan.
I do not know my next step, possibly the development exam or maybe something that is not Sun related. I am even looking at other businesses - will see what happens.
I figured if someone 12 years old could do this then maybe an older person could also. How about anyone in their 50's, 60's, or older or passed or who at least took this thing?
Actually I found what I considered to be a lot of curveballs on the test. Most of the questions were straightforward though, passed with 80. There were at least 5-6 that I did not expect and fumbled over. There were many questions on URL rewriting and I did not think this would be emphasized. Also, many code questions including at least 5-6 that had exhibits, maybe close to 15-20 code questions in all, but this is probably good since this type of question tests you better than memorization types.
Preparation:
Like most others I used:
1. Notes from Ken, Miftah, etc.
2. Wrote and revised code using Tomcat 4.0.
3. Used Java Servlet Programming 2nd ed. - O'Reilly and Wrox Professional JSP. These books are good references but I did not read many pages before test. Used 1st Edition of O'Reilly before when I did some stuff with servlets at an earlier time. Learning in the subject matter is always good but you do not really need books for this test other than for reference. If you are crunched for time, don't spend a lot on books. You can get most books for 40% off list from Bookpool and other places if you want them.
4. Servlet specs and API
5. JSP specs and API
6. Forum questions and discussions (thanks)
7. JWeb+ simulator and other practice tests on this site. JWhiz would be fine also.
8. Various internet sites
For many years I have been an IT trainer including training users on Java, C++, etc. My previous company died in August - the IT and training industry stinks. Maybe I will join the circus.
Tom