| ||||||||||
Resin 3.1 Documentation Examples Changes Overview Installation Configuration Quercus SOA/IoC JSP Servlets and Filters Admin (JMX) EJB Amber Security Performance Hessian XML and XSLT Third-party Troubleshooting/FAQ Introduction Compilation EL JSTL Directives Variables Actions Applications Schema for JSP-2.0 .tld files Velocity syntax JSP Templates FAQ |
JSP creates output (such as HTML) from template text and scripting actions. Template text is returned verbatim to the requesting client, and actions are used to fill in dynamic values and do things conditionallly. IntroductionJSP creates a document (such as HTML) from template text and scripting actions. Template text is returned verbatim to the requesting client, and actions are used to fill in dynamic values and do things conditionallly. CompilationJSP compilation causes the compilation of JSP files before they are first accessed on a live server. ELJSP EL is a simple expression language for accessing data. JSTLJSTL provides standard actions for functionality most often needed by page authors. This functionality includes a core library for the most common tasks, internationalization (i18n) and text formatting, relational database access (SQL), and XML processing. Resin can generate more efficient code for JSTL than for other tag libraries. It is recommended that applications use JSTL as a basis for any JSP pages which can use it. DirectivesJSP Directives control the processing of an entire page. Directive examples include setting a scripting language, setting an error page, including other sections, and setting a character encoding. VariablesJSP makes implicit variables available to the script. These variables are used to gain information about the request, and to help form a response. They also expose some useful functionality. ActionsActions are the core of JSP. Actions range from printing a script expression, to creating and storing a Java Bean. ApplicationsAn application collects servlets, JSP pages, scripts and Java Beans into a self-contained web application. Applications are just generalized virtual hosts, only based on the URL instead of the host name. Schema for JSP-2.0 .tld filesThe formal definition for the *.tld file Velocity syntaxThe Apache Velocity project introduces an alternative syntax to the familiar JSP expressions and scriptlets. Resin's extension allows the use of Velocity-style syntax in JSP files. The Velocity-style syntax is transformed into JSTL standard tags. JSP TemplatesJSP templates encourage the clear and flexible model-view-controller architecture. It's an example of the old JSP spec's "model 2." This tutorial works through a simple guest book example using JSP templates. FAQ
|