[ Team LiB ] Previous Section Next Section

Workshop

The Workshop is designed to help you review what you have learned and help you further increase your understanding of the material covered in this hour.

Quiz

1:

How do you indicate that a JSP is not thread-safe?

2:

How do you indicate that a JSP should be precompiled?

3:

My JSP engine does not support precompiling of my JSP. What do I do?


Answers

A1:

By using the <%@ page isThreadSafe="false"%> tag.

A2:

You just need to send a jsp_precompile="true" parameter to the JSP engine.

A3:

Which world are you living in! The best option is to upgrade to a newer version of your JSP engine. Another solution would be to use the precompile class shown earlier in this hour.


Activities

  1. Turn on JSP precompilation in your servlet engine.

  2. Flag your JSP to precompile.

    [ Team LiB ] Previous Section Next Section