Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

allowable body-content values

 
Manikandan Jayaraman
Ranch Hand
Posts: 230
  • Mark post as helpful
  • send pies
  • 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?
 
Dilshan Edirisuriya
Ranch Hand
Posts: 299
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you better check this link,
http://www.coderanch.com/t/173676/java-Web-Component-SCWCD/certification/SimpleTag-default-body-content
 
Renu Radhika
Ranch Hand
Posts: 243
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
refer to this thread topic: SimpleTag default body-content
 
Pallavi Roy
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • 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
  • 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?
 
Gowher Naik
Ranch Hand
Posts: 643
  • Mark post as helpful
  • send pies
  • 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
  • Quote
  • Report post to moderator
please refer to the topic mentioned by me in previous post.its wrong...
 
Celinio Fernandes
Ranch Hand
Posts: 549
Eclipse IDE Google Web Toolkit Java
  • Mark post as helpful
  • send pies
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic