Can I use JSP tag-libraries and custom tags in JPlates?
No. JSP custom tags can only work with JSP. That's because they're
more like extensions of the JSP compiler than like components of your
application. You can use both JSP custom tags and JPlates in your
JSPs though, allowing you to benefit both from your investment in
custom tags and from the object-oriented features of JPlates.
JPlates provides support classes for working with Struts and with
the servlet environment without custom tags. Using conventional
object-oriented approaches, JPlates support for Struts and forms
processing is easier to learn and use than JSP tag libraries.
back to top
Can JPlates objects be stored in the session?
You can store JPlates instances in the session to use across multiple
requests. By encapsulating state, JPlates objects do a great job of
integrating presentation state with presentation logic, which
maintaining a clean separation of presentation logic from business
logic.
back to top
Why does the JPlates jar file have to be deployed in the
WEB-INF/lib directory?
The JPlates runtime needs to be able to find your JPlates classes and
other resources in your web application. It does so using the web
application's class-loader which is available only to class libraries
deployed to the WEB-INF/lib directory of your web application.