< Zurück | Inhalt | Weiter >

19.3.5 New Syntax

But what about that new syntax? It’s an XML-conformant syntax, and it’s the syntax for all the newer features added to JSP. In fact, even the old JSP syntax, the statements that we’ve discussed, have an alternative new syntax (Table 19.2). Prior to JSP 2.0, that syntax was reserved for JSP that produce XML rather than HTML. (That’s a whole other can of worms that we won’t open now.) Now, as of JSP 2.0, both forms can be used, if your Web server is JSP 2.0 compliant.

You can see that the old syntax is more compact and less distracting than the large tags. We suspect that means the old syntax is likely to continue to be used for a long time yet.1

This new syntax is also used for the last two parts of JSP that we will cover,

useBean and tag libraries.