• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSP scripting elements and tag files

 
Allexicus Kernikus
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is the following rationale true?:
A tagfile is translated to a SimpleTag, which in does not allow JSP scripting elements (since the body is a Fragment, which does not allow scripting elements..). Hence tagfiles cannot hold traditional scripting elements.

Although I have no doubt in it, I saw many mock exam questions while preparing for the SCWCD, which showed examples of tagfiles holding scripting elements and calling it valid.

Many thanks in advance!!



 
avi sinha
Ranch Hand
Posts: 453
Google Web Toolkit Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
we can use scripting inside a tag file but we can't use it in the body of the tag invoking the tag file.

avi sinha
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic