{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

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

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

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

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

View Full Document Right 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
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”
Image of page 3

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

View Full Document Right 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
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
Image of page 5

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

View Full Document Right Arrow Icon
Umair©2006, All rights reserved JSTL & EL (ni) 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
Image of page 6
Umair©2006, All rights reserved JSTL Tag libraries Composed of 4 standard tag libraries Core Conditions, Control flow & variables access etc. Internationalization / format Locale messages Text, numbers & date formation XML XML parsing / processing SQL Tags for accessing an SQL database
Image of page 7

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

View Full Document Right 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 ?
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
Image of page 9

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

View Full Document Right 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
Image of page 10
Image of page 11
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern