• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Doubt in "body-content"

 
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm giving whizlabs mock exams, and one of the solutions says that for a classic tag, the allowed values for "body-content" tag are JSP,tagdependent,empty (NOT scriptless); and that for simple tags, the allowed values are scriptless,tagdependent,empty (NOT JSP).

Is this correct? I thought that all the 4 values (JSP,scriptless,tagdependent,empty) are allowed for both kinds of tag handlers.
 
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
1. Tag Files :
Default : scriptless
Possible Values : scriptless, tagdependent, empty

2. Classic Tags and Simple Tags

The definition for Simple Tags and Classic Tags is the same, except that Simple Tags do not accept JSP

Possible Value: tagdependent, empty, scriptless, JSP (Classic Tags only)

Default Value: Because "JSP" is invalid for Simple Tag handlers, there is no default value.
You should put one explicitly, like "scriptless", if needed.
 
Harshit Patel
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks!
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I've added a new entry in the FAQ as this question is often asked:
http://faq.javaranch.com/view?BodyTagContent
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic