91-9990449935 0120-4256464 |
JSTL (JSP Standard Tag Library)The JSP Standard Tag Library (JSTL) represents a set of tags to simplify the JSP development. Advantage of JSTL
There JSTL mainly provides 5 types of tags:
For creating JSTL application, you need to load jstl.jar file.download jstl1.2.jar file JSTL Core TagsThe JSTL core tags mainly provides 4 types of tags:
Syntax for defining core tagsc:catchIt is an alternative apporach of global exception handling of JSP. It handles the exception and doesn't propagate the exception to error page. The exception object thrown at runtime is stored in a variable named var. Example of c:catchLet's see the simple example of c:catch. c:outIt is just like JSP expression tag but it is used for exression. It renders data to the page. Example of c:outLet's see the simple example of c:out. index.jsp process.jspc:importIt is just like jsp include but it can include the content of any resource either within server or outside the server. Example of c:importLet's see the simple example of c:import to display the content of other site. index.jspExample of c:import to display the source codeLet's see the simple example of c:import to display the source code of other site. index.jspc:forEachIt repeats the nested body content for fixed number of times or over collection. Example of c:forEachLet's see the simple example of c:forEach. c:ifIt tests the condition. Example of c:ifLet's see the simple example of c:if. c:redirectIt redirects the request to the given url.
Next TopicCustom Tags
|