Articles for SCWCD Java/J2EE 5 Upgrade CX310-084
SCWCD CX310-084 Short Notes: Exam passing tips
The Servlet Technology Model The getWriter() method of the ServletResponse interface returns a PrintWriter object suitable for writing character data in the response. The setValue() method of the Cookie class is used to assign a new value to a cookie after the cookie is created. A......
continue reading "SCWCD CX310-084 Short Notes: Exam passing tips" »
JSTL Core Library
JSP Standard Tag Library (JSTL) is an extension of the JSP language. It includes various operations needed in almost all JSP pages, such as internationalization, conditional processing, XML parsing, making a database connection, etc.
The important tags in the JSTL core library are as......
continue reading "JSTL Core Library" »
How can an existing session be invalidated?
An existing session can be invalidated in the following two ways: Setting timeout in the deployment descriptor : This can be done by specifying timeout between the <session-timeout> tags as follows:
<session-config>......
continue reading "How can an existing session be invalidated?" »
How is a filter configured in the deployment descriptor?
A filter is configured in the deployment descriptor as follows:
<filter>
<filter-name>Filter1</filter-name>
<display-name>filter1</display-name>
......
continue reading "How is a filter configured in the deployment descriptor?" »
How is an El initialization parameter configured in the deployment descriptor?
An El initialization parameter initParam is configured in the deployment descriptor as follows:
<context-param>
<param-name>parameterName</param-name>
<param-value>parameterValue</param-value>
</context-param>......
continue reading "How is an El initialization parameter configured in the deployment descriptor?" »
How is scripting disabled?
Scripting is disabled by setting the scripting-invalid element of the deployment descriptor to true. It is a subelement of jsp-property-group. Its valid values are true and false. The syntax for disabling scripting is as follows:
<jsp-property-group>......
continue reading "How is scripting disabled?" »
How is the expression language disabled?
By default, the expression language is enabled. It can be disabled using the deployment descriptor web.xml file as follows:
<jsp-config>
<jsp-property-group>
<url-pattern>*.jsp</url-pattern>......
continue reading "How is the expression language disabled?" »
What are JSP declarations?
JSP declarations are used to declare class variables and methods in a JSP page. They are initialized when the class is initialized. Anything defined in a declaration is available for the whole JSP page, i.e., they have page scope. A declaration block is enclosed between the <%! and %> tags.......
continue reading "What are JSP declarations?" »
What are JSP directives?
JSP directives serve as a message from a JSP page to the JSP container and control the processing of the entire page. They are used to set global values such as a class declaration, method implementation, output content type, etc. However, they do not produce any output to the client....
continue reading "What are JSP directives?" »
What are classic tag handlers?
Classic tag handlers are the classes that implement either the Tag, IterationTag, or BodyTag interface. These classes extend either the TagSupport or BodyTagSupport class. The classes and interfaces for using classic tag handlers are contained in the javax.servlet.jsp.tagext package....
continue reading "What are classic tag handlers?" »
| Includes | Free | Buy |
|---|---|---|
| Version | 8.08.05 | |
| Practice Tests | 1 | 3 |
| 15 | 210 | |
| Quiz | 15 | 85 |
| Final Test | No | Yes |
| Articles, How Tos.., Tips | Yes | Yes |
| Study Notes | 32 | 131 |

