Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > JSTL tags in output

Reply
Thread Tools

JSTL tags in output

 
 
kljsavage@netscape.net
Guest
Posts: n/a
 
      12-20-2004
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

 
Reply With Quote
 
 
 
 
Robert kebernet Cooper
Guest
Posts: n/a
 
      12-20-2004

wrote:
> 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?

 
Reply With Quote
 
 
 
 
Sudsy
Guest
Posts: n/a
 
      12-21-2004
wrote:
> 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.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
(struts/JSTL) Setting bean property value with jstl choose compoundresults DaFoot Java 1 10-23-2008 12:42 PM
Custom JSTL that accepts JSTL expression Robert Mark Bram Java 0 12-15-2004 12:26 AM
Am I the only one who questions JSTL, Struts Tags, XSL Tags? Greg Smith Java 35 10-24-2004 07:46 AM
JSTL SQL tags and Javascript Brent Eamer Java 0 12-17-2003 03:30 PM
Accessing objects in request through <c:out jstl tags - Urgent KK Java 1 08-27-2003 01:02 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57