JSTL tags in output

K

kljsavage

Hi,

What are some of the more common reasons for JSTL tags appearing in the
final generated HTML? Where should I start to look?

Thank you,
Kate
 
R

Robert kebernet Cooper

Hi,

What are some of the more common reasons for JSTL tags appearing in the
final generated HTML? Where should I start to look?

Thank you,
Kate

Did you import the tagset at the top of your JSP?
 
S

Sudsy

Hi,

What are some of the more common reasons for JSTL tags appearing in the
final generated HTML? Where should I start to look?

Most common cause is that the taglib couldn't be located. You need
something like this in your JSP:
<%@ taglib uri="c" prefix="c" %>

You also need something like this in your WEB-INF/web.xml file:
<taglib>
<taglib-uri>c</taglib-uri>
<taglib-location>/WEB-INF/tld/c.tld</taglib-location>
</taglib>

And of course you need the actual tld file in the named location.
Finally, you need the jar containing the taglib classes in your
WEB-INF/lib directory.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Calling methods from JSTL tags? 0
JSTL attempt in JSP 5
JSTL: getting a map's keys 19
jstl,standard jarfiles 2
Output confusion 2
Using CSS ID Tags to 2
JSTL in JEE 2.5 2
Beyond trivial JSTL 1

Members online

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,056
Latest member
GlycogenSupporthealth

Latest Threads

Top