WDD_lec_43 - JSTL Lec - 43 JSTL (ni) Acronym of JavaServer...

Info iconThis preview shows pages 1–11. Sign up to view the full content.

View Full Document Right Arrow Icon
JSTL Lec - 43
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Umair©2006, All rights reserved JSTL (ni) Acronym of J avaServer Pages S tandard T ag L ibrary JSTL (like JSP) is a specification, not an implementation Official reference implementation http://jakarta.apache.org/taglibs/doc/standard-doc/intro.html Development theme No Scriptlets
Background image of page 2
Umair©2006, All rights reserved JSTL Overview (ni) JSTL tags are valid XML JSTL contains action (tags) for common tasks Iteration Session Tracking Redirect XML SQL etc. Remember – the development theme is “no scriptlets”
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Umair©2006, All rights reserved Organization of the platform Your application Java language Java Servlet API JavaServer Pages (JSP) JSTL Your web pages EL
Background image of page 4
Umair©2006, All rights reserved Why JSTL? (ni) JSTL tags provide a standard implementation for typical application functionality Reusability Avoid reinventing the wheel Another mechanism for avoiding the use of JSP scripting elements EL considerably simple than Java
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Umair©2006, All rights reserved JSTL includes support for EL To replace the JSP expressions EL is also standard part of JSP 2.0 EL can only be used in attributes of JSTL tags prior to JSP 2.0 With JSP 2.0 and onwards, it can be used anywhere in the document
Background image of page 6
Umair©2006, All rights reserved JSTL Tag libraries Composed of 4 standard tag libraries Core Internationalization / format Locale messages XML XML parsing / processing SQL Tags for accessing an SQL database
Background image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Umair©2006, All rights reserved Twin Tag Libraries JSTL comes in two flavors Request Time (RT) version Dynamic attribute values are specified using JSP expression (i.e. <%= expression %> ) Expression Language (EL) version Dynamic attribute values are specified using JSTL expression language (i.e.  ${ expression } ) Why ?
Background image of page 8
Umair©2006, All rights reserved JSTL Tag libraries (cont.) Library URI Prefix Core http://java.sun.com/jsp/jstl/core c SQL http://java.sun.com/jsp/jstl/sql sql Internationalization / Format http://java.sun.com/jsp/jstl/fmt fmt XML http://java.sun.com/jsp/jstl/xml x EL based
Background image of page 9

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Umair©2006, All rights reserved JSTL Tag libraries (cont.) Library URI Prefix Core http://java.sun.com/jsp/jstl/core _rt c _rt SQL http://java.sun.com/jsp/jstl/sql _rt sql _rt Internationalization / Format http://java.sun.com/jsp/jstl/fmt _rt fmt _rt XML http://java.sun.com/jsp/jstl/xml _rt x _rt RT based
Background image of page 10
Image of page 11
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 07/01/2010 for the course CS CS506 taught by Professor mr. umair javed during the Spring '10 term at Virtual University of Pakistan.

Page1 / 40

WDD_lec_43 - JSTL Lec - 43 JSTL (ni) Acronym of JavaServer...

This preview shows document pages 1 - 11. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online