These are not taken from any certified exams, but belonging to a assessment test for registration purpose. Can you guys pls let me know what are the answers or them? (I find the questions to be simple yet not precise per the Servlet APIs) QUESTIONS: - 1. Which corresponding method in the HttpServlet class do you use to retrieve the value of a text field on an HTML form?
D. HTTPResponse (This question seems to be quite funky as none of the options are 'interface' in the J2EE 1.3 APIs, right?)[/QB]
These are all interfaces.
Whatever doesn't kill us ...<br />Is probably circling back for another try.<br />SCJP 1.4
francisk
Greenhorn
Joined: Feb 18, 2002
Posts: 8
posted
0
1. A Because it said HttpServlet class. If it said ServletRequest, I will pick B. getParameter() 2. A, B When the deployment descriptor file have specified <load-on-startup>, it will load when web server start, otherwise it will load when the first request comming in. 3. A
Dani Mazzuca
Ranch Hand
Joined: May 21, 2003
Posts: 70
posted
0
Hi, definitively 1 - B 2 - A and B 3 - A (it is an interface) Dani
Methods for retrieving form parameters are defined in the ServletRequest interface(SR interface is implemented by the container).
<i>Dare to dream - everything that exists today,was once a figment of someone's imagination, nobody says tomorrow can't be a figment of your today.</i>
Amer Khan
Ranch Hand
Joined: Apr 05, 2003
Posts: 163
posted
0
A, tricky ? (There is no getParameter(String str) defined or inherited in HttpServlet class ,this method is defined in ServletRequest interface and is accessed through the HttpServletRequest object[interface HttpServletRequest extends interface ServletRequest )]NOTE:Both interfaces are implemented by the Container B,C (<load-on-startup> in web.xml) A, Methods for retrieving form parameters are defined in the ServletRequest interface(SR interface is implemented by the container). [ August 05, 2003: Message edited by: Amer Khan ]
Meghasyam Bokam
Greenhorn
Joined: Feb 27, 2003
Posts: 16
posted
0
Hi moderator, different people gave different answers. Can you please provide the right answers for the above questions.
Regards,<br />Meghasyam.<p>SCJP1.4
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.