sempre q leio sobre como usar JSTL a galer fala pra adicionar o 2 jar’s no diretório WEB-INF/lib são eles o jstl.jar e o standard.jar, mas acontece q testei aqui e sem o standard.jar fucionou do mesmo jeito, usei JSTL e EL sem problemas.
então… por que usar ou pra que serve standard.jar?
[quote]2.2.2 Standard JSP tags
Some JSP tags are built into JSP; they?re effectively hard-wired into the JSP standard. These tags are often called standard tags, although the term is somewhat confusing. This group of ?standard? tags doesn?t include JSTL tags; instead, it includes core JSP tags that predate JSTL by several years. JSTL?s tags are also ?standard,? but they fall into a separate group of tags that we?ll discuss in section 2.2.3. Figure 2.4 demonstrates this double standard.
The first group of standard tags?that is, the core JSP tags?uses the namespace prefix jsp. When you see a tag like <jsp:include> or <jsp:forward>, you know it?s a standard tag because its name starts with jsp:. Other tags, whether part of JSTL or not, use different prefixes. (We?ll look at the usual JSTL prefixes in section 2.2.3.) Let?s look at two of the standard JSP tags, <jsp:include> and <jsp:forward>. Our primary goal is simply to show a few simple standard JSP tags in use; if the details seem intimidating, do not worry about them too much for now.[/quote]
Fonte: JSTL in Action
O motivo de ter funcionado sem o standard.jar é que dependendo do servidor ele pode incluir as principais bibliotecas automaticamente no classpath de todas as aplicações.
Como isso não é um padrão, então a recomendação continua sendo colocar no diretório de libs de cada projeto.
[quote=igor_ks]Nossa JSTL é tão complexo assim pra existir um “In Action” dele?
Nem sabia q tinha um livro especifico pra JSTL…[/quote]
Hehehe… Tem sim e são 480 páginas. Bastante coisa. Essa série de livros chamada “In Action” tem vários tópicos.