• 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
  • Paul Clapham
  • Tim Cooke
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Frank Carver
  • Henry Wong
  • Ron McLeod
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Himai Minh

allowable body-content values

 
Ranch Hand
Posts: 230
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I would like to confirm on the allowable body-content for tag files, simple tags and classic tags. Also the default values if we dont give one.

Since I go on different mock exams (Different JSP versions, or may be answers are explained wrong) I got confused here.

Can someone help me?
 
Ranch Hand
Posts: 299
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
you better check this link,
https://coderanch.com/t/173676/java-Web-Component-SCWCD/certification/SimpleTag-default-body-content
 
Ranch Hand
Posts: 243
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
refer to this thread topic: SimpleTag default body-content
 
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

The Tag files and Simple tags cannot process scripts in their body.
The simple tags in the TLD and tag files in their <%@ tag %> directive will have the possible values as :
a) empty
b) scriptless
c) tag-dependant


While classic tags can have the possible values for <body-content>:

a) empty
b) scriptless
c) tag-dependant
d) JSP

I hope i have not forgotton anything.
Questions on default values are generally not asked for <body-content> as indicated by Byran in a previous query on <body-content> you can refer to the forum.

Best Regards,
Pallavi
 
Manikandan Jayaraman
Ranch Hand
Posts: 230
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks All! That answered the default part of my question. How about the available and VALID values for body-content?

Tag Files: empty,scriptless,tagdependent

Simple Tags: empty,scriptless,tagdependent

Classic Tags: empty,scriptless,JSP,tagdependent

Am I right?
 
Ranch Hand
Posts: 643
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
For classic tags,simple tags and tag files default body-content is scriptless.
Please correct me if i am not correct.
 
Renu Radhika
Ranch Hand
Posts: 243
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
please refer to the topic mentioned by me in previous post.its wrong...
 
Ranch Hand
Posts: 563
Google Web Toolkit Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
1) There is no default body-content.
It makes no sense since the element <body-content> is REQUIRED in the TLD file.

2) All you have to remember is that JSP is for classic tags only.

that's as simple as that.
 
I want my playground back. Here, I'll give you this tiny ad for it:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic