Meaningless Drivel is fun!*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Doubt in body-content = JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Doubt in body-content = JSP" Watch "Doubt in body-content = JSP" New topic
Author

Doubt in body-content = JSP

Hasnain Javed Khan
Ranch Hand

Joined: Nov 23, 2007
Posts: 73
Hello All,

I have some confusion when the body content value is assigned JSP in tld file for a tag's body.What can and can not go inside the tag body when body-content is JSP. Just to make my question clear

For scriptless:
Can Have: template text,EL,custom and standard actions.
Can not have : scriptlets, scripting expressions, and declarations.

For JSP:
Can Have: template text,EL,custom and standard actions.
Can not have : ? (or can have anything)

Kindly correct me if I'm wrong for the above statements.

Kind Regards.
Hasnain Javed.

Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9291
    
  17

For JSP:
Can Have: template text,EL,custom and standard actions.
Can not have : ? (or can have anything)

For body content of type JSP, the body can have anything that can go in a normal JSP i.e. template text,EL,custom, standard actions, scriptlets, scripting expressions and declarations...


SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
Hasnain Javed Khan
Ranch Hand

Joined: Nov 23, 2007
Posts: 73
Ankit Garg wrote:
For JSP:
Can Have: template text,EL,custom and standard actions.
Can not have : ? (or can have anything)

For body content of type JSP, the body can have anything that can go in a normal JSP i.e. template text,EL,custom, standard actions, scriptlets, scripting expressions and declarations...


Thanks Ankit for the clarification.

Kind Regards.
Hasnain.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Doubt in body-content = JSP
 
Similar Threads
Default value of body-content
Simple vs Classic Tags - When ?
Ragarding TagFiles.
Template Text
a doubt on JspFragment