like the HFSJ, David Bridgewater, Hanumanth Deshmuk.
Jothi Shankar Kumar. S
1) Of the big 7 HTTP methods,
SAFE >> GET, HEAD, TRACE, OPTIONS
IDEMPOTENT* >> GET, HEAD, TRACE, OPTIONS, PUT, DELETE
NON-IDEMPOTENT >> POST
* yields the same result if the operation is applied multiple times
4) The servlets created from the JSP page have to obey some special rules, a vendor will
typically have a specialized JSP base servlet-perhaps extending HttpServlet or GenericServlet In
Tomcat, this is called org.apache.jasper.runtime.HttpJspBase
5) Beware of the deprecated encodeUrl and encodeRedirectUrl methods. They have mixed casing for the Url instead of URL. So encodeUrl and encodeRedirectUrl won't work for 2.4 schema. Instead it should be encodeURL and encodeRedirectURL.
6) A value of 0 or a negative value in the session-timeout of the session-config in the web.xml file
(which is expressed in minutes) indicates that the session never expires. However, this can be
overridden using the setMaxInactiveInterval() in the code where the time is in expressed in
seconds. Always Remember web.xml in minutes and the code in seconds.
7) Don't be thrown by weird but legal variants for directive syntax. You don't need white space
after the opening marker or before the closing marker: <%@page import="java.util.*"%> You can
also put extra white space before or after the equal sign for the attribute: <%@ page import =
java.util.*"%> Single quotes are as acceptable as double quotes for attribute values: <%@ page
8) There are 4 page directives required to be known for the exam. They are,
<%@ Page import...%> -- Can appear any number of times and anywhere in the JSP
And for the below ones - There shall be only one occurrence of any attribute/value pair defined by
for all occurrences.
<%@ Page session...%>
<%@ Page contentType...%>
<%@ Page isELIgnored...%>
Also note that "Only pageEncoding and contentType should appear at the beginning of the page"
12) Having a directory called WEB-INF is a strong recommendation, but not an absolute
obligation. Look out for questions that ask you to say whether a web application must have
particular directories. The correct answer isno!
13) The deployment descriptor has, in fact, 27 top-level elements, shown in Figure below. These top-level elements each contain half a dozen or so elements, at various levels of nesting, ranging from the very simple (e.g., <distributable>, with no nested elements) to <servlet> (with 9 nested elements, some containing more nested elements). <web-app>
This action might not be possible to undo. Are you sure you want to continue?