Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Is directives are allowed in tag files ?

 
Parthiban Malayandi
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all ,

I'm learning jstl from "HeadFirst servlets and JSP"
I have a doubt in tag files.

As I learned we can use "scripting" in tag files but I tried "directives" as well but it won't .

is only scripting(scriplets,expression,declaration) and EL are
the only things allowed in "tag files" ?

Thanks in advance.


 
Albareto McKenzie
Ranch Hand
Posts: 304
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not really, you have different "directives", try out putting tag instead of page to see what happend.
 
Ankit Garg
Sheriff
Posts: 9593
34
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The Table 8-1 in the JSP spec lists the directives that you can use in a tag file

taglib, include, tag (only available in tag files), attribute (only available in tag files), variable (only available in tag files)...
 
Samuel March
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When in doubt...
http://java.sun.com/javaee/5/docs/tutorial/doc/bnaln.html#bnalt
Certainly allowed in a body tag.



isELIgnored set to be false too may help(not that its relevent to that but during testing you could try some things and worry too much on error, second, tag attributes have the same requirement about whether they evaluate scripting or other tagging).
 
Parthiban Malayandi
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all ,

First of all I'm sorry for very delayed response .Thanks for your reply which really helped me to understand the concept better .
 
He's my best friend. Not yours. Mine. You can have this tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!