Share on Google+Share on Google+

What are JSP directives, page directives and include directives?
1 Answer(s)      4 years and 11 months ago
Posted in : JSP-Interview Questions

what are jsp directives? and what are page directives? and what are include directives? can you explain taglib directives?


View Answers

May 7, 2012 at 5:06 PM

JSP directives

JSP directives do not produce any output. They are used to set global values like classdeclaration, content type etc. Directives have scope for entire JSP file. They start with<%@ and ends with %>. There are three main directives that can be used in JSP:-

page directive: Page directive is used to define page attributes the JSP file.

include directive: The include directive informs the JSP engine to include the content of the resource in the current JSP page.

taglib directive: Taglib are also termed as JSP tag extensions. They provide a way of encapsulating reusablefunctionality on JSP pages.

Java Spring Hibernate Struts Training why do not required application restart after jsp changes? How to use contentType Attribute in JSP? How to connect to MySQL in JSP? JSP Comment Types with example How to use ajax in jsp? How to access the database from JSP? how to show image as a link which path coming from database jsp netbeans javascript Logos on mail inbox. I want to update the multiple values of database depending on checkbox..? Please help me out.. jsp 18/04/2013 JSTL how to access element added via javascript dynamically using jsp code Electronic spreadsheets are useful in situation An E-mail protocol for storage JSP JSP JSP jsp servlets Exception: com.mysql.jdbc.Driver display data from database on selecting option of dropdownlist display data from database on selecting option of dropdownlist display data from database on selecting option of dropdownlist display data from database on selecting option of dropdownlist Jsp Query run command prompt from jsp program question for c++ please help me how to set up Netbeans for JSP 3 dropdown list from the database using JSP autocompletion in textfield fetching from database in jsp openning the pdf or doc file in same jsp EXT JS tt need coding JSp session time out how to display values from database into table using jsp how to set the class path variable in tomcat ? need help please online examination system mini project problem in writing coding. Please help me. How to read the body content of custom tag? need help...................please please help me jsp coding please. help me image upload Assertions I want to store the value of local variable into Global variable how to create customise shortcut keys in jsp?


Advertisement null