Presentation is loading. Please wait.

Presentation is loading. Please wait.

JSP Tag Library CSCI 4300 Notes from Steve Small, 02-2003/jw-0228-jstl.html.

Similar presentations


Presentation on theme: "JSP Tag Library CSCI 4300 Notes from Steve Small, 02-2003/jw-0228-jstl.html."— Presentation transcript:

1 JSP Tag Library CSCI 4300 Notes from Steve Small, http://www.javaworld.com/javaworld/jw- 02-2003/jw-0228-jstl.html

2 What is the Tag library? Creates additional XML-style tags Provide programming functionality with (somewhat) less mess Standard tag library: –Core functions (output, control statements) –Formatting –Internationalization –SQL

3 Installing the standard library Download and install JSTL support in Tomcat Declare in web.xml: http://java.sun.com/jstl/core /WEB-INF/c.tld Include taglib descriptor file c.tld in WEB-INF

4 Core STL Example Parameter values passed to this page for each parameter: Param and paramValues are global Map vars from Web container

5 JSP Expression Language Similar to PHP or Perl string interpolation ${variable-name} = value of that variable ${anObject.aProperty} ${anObject["aPropertyName"]} ${anObject[aVariableContainingPropertyName]}


Download ppt "JSP Tag Library CSCI 4300 Notes from Steve Small, 02-2003/jw-0228-jstl.html."

Similar presentations


Ads by Google