Tutorial Week 7
Tutorial Week 7
Tutorial Week 7
Our readings (lecture notes and video lecture) this week discuss the JSP (JSP Directives and
JSTL tags). Write the answers for all questions in the table according to your understanding.
PLEASE USE YOUR OWN WORDS. DO NOT COPY FROM THE WEB.
Questions Answers
1. Describe the JSP directives and attributes for the page JSP directive is used to provide instruction to
directive. the container that pertain the current JSP
page. There are 13 attributes.
2. If a class does not have a package statement, can you The class cannot be imported because it is
import it? mandatory to have a package statement
3. If you use a custom class from a JSP, where should the Lib directory
class be placed?
4. In the following JSP, which variables are instance I is an instance variables
variables, and which are local variables when it is while
translated in the servlet? j and k are local variables
5. What is wrong with below code? Declaration is used for the method or field
Should be using scriplet
MMR2020@FSKM
Lecture Assignment
MMR2020@FSKM