Doyle Matt

Ranch Hand
+ Follow
since Jul 05, 2004
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Doyle Matt

If i understand you question correctly.. here's an answer.

Use a filter to force to check if a session is existing on the client side. If the session is just new or non existant then redirect to your desired page. However this might be a problem if you have login and logout.

Another solution would be to check for the "referrer" header.
Yup Thomas, you are correct. Tried it out and I got an exception
just a comment; sometimes those mock exams they just add questions that aren't really in the spec.
well i'm answering my question. apparently the <session-timeout> is a "global" setting. but the session.setMaxInactiveInterval(int) are for specifics or "local" settings.

global meaning those sessions that didn't have their setMaxInactiveInterval set will use the one from the dd. but for those you went thru to the setMaxInactiveInterval will use the one that was set for that specific session object.
I'm wondering if who has the higher priority?
For example if a webapp has a DD declared
, 15 being 15 mins and then a servlet sets the
, 5 being 5 seconds; which does the servlet container favors? the DD declaration or the method call?

3. The paper was dammmmmmmmmmm easy. I completed the whole stuff in almost one hour.



is this a figure of speech? or did you do the exam on a sheet of paper?
Hmmm. If you're using Eclipse 3.2, you can download the WTP plugin for Eclipse. This provides a lot of things for web development
Yes. One servlet per JVM
One Servlet One JVM.
Two Servlets (of the same class and <servlet-name> in web.xml) cannot exist in a single JVM. therefor you can have Two servlets (of the same class and <servlet-name> in web.xml) in Two JVM (correspondingly)
Yes you're right. The answer is B. To be more precise the answer can be B or C. Since UnavailableException is a subclass of ServletException. Try checking the API.
well, no. because there's only one instance of a servlet. meaning for every request made there's only one instance but it will have a thread of execution per request.

so if you have a servlet class that has private static/instance variables it will be used for every request. if request1 did a change on an class or instance variable then request2 will see that change.

so basically the answer is no.
marked method?

are you referring to annotations? if not then is a method is "declared" abstract then its class declarations should also be "declared" abstract as well.
Hi i have this code that sends a file to a requestor. the problem with this one is that it doesn't support download managers. any ideas on how to support download managers?

18 years ago
Dan's questions are tougher than the ones in the actual exam. I suggest that you take Dan's mock exams after reading the K&B book. Then if you can go through Dan's questions you'll be very confident when you're taking the exam.

Btw, thanks Dan for mock exams.
it'll cause a compile time errror. there's no return statement on it. plus you should take into consideration the contract of overriding the equals and hash methods.
Is there a way to manually translate and compile a JSP w/o letting the web container do it for you?
20 years ago
JSP