Darren Weaver

Greenhorn
+ Follow
since Apr 30, 2007
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Darren Weaver

Originally posted by Vipul Tulsulkar:
Is it safe to follow Mikalai Zaikin notes in SCWCD links?



I've been using them as a supplement to HFSJ. I think they are great. As far as I can tell, they contain info straight from the specs, organized according to the exam objectives. I haven't noticed anything that doesn't jive with the specs. We'll see...I'm taking the exam tomorrow!
Hello. I'm taking the exam this weekend. I know web.xml very well except for possibly which elements have description, display-name, or icon subelements. Do I need to worry about these?
Try making your class TestInitParams coderanch.
You must use a package because you cannot import classes from the default package. Here's the explanation from the JSP 2.0 spec:

As of JSP 2.0, it is illegal to refer to any classes from the unnamed (a.k.a.
default) package. This may result in a translation error on some containers,
specifically those that run in a JDK 1.4 or greater environment. It is unfortunate,
but unavoidable, that this will break compatibility with some older JSP
applications. However, as of JDK 1.4, importing classes from the unnamed
package is not valid (see http://java.sun.com/j2se/1.4/compatibility.html#source
for details).
If the browser crashes, that does not invalidate your session. You may not be able to get back to the session because you lost the cookie holding the session id, but technically your session is still active until it times out.
As for Question 1., in the DD of the particular example you posted, there is an explicit servlet-mapping which happens to match the name of the servlet (prepended with the path /servlet).
From section 3, The Web Container Model:

"Describe the Web container request processing model; write and configure a filter; create a request or response wrapper; and given a design problem, describe how to apply a filter or a wrapper."