JSP Tag Library CSCI 4300 Notes from Steve Small, /jw-0228-jstl.html
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
Installing the standard library Download and install JSTL support in Tomcat Declare in web.xml: /WEB-INF/c.tld Include taglib descriptor file c.tld in WEB-INF
Core STL Example Parameter values passed to this page for each parameter: Param and paramValues are global Map vars from Web container
JSP Expression Language Similar to PHP or Perl string interpolation ${variable-name} = value of that variable ${anObject.aProperty} ${anObject["aPropertyName"]} ${anObject[aVariableContainingPropertyName]}