This week's book giveaway is in the OCAJP forum.
We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line!
See this thread for details.
Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

about body-content in tld

 
Alan Hermin
Ranch Hand
Posts: 290
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all..

Iam preparing for SCWCD using HFSJ..
i want t know what is the default value for <body-content> at tld file if this element not specified..

Regards
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In JSP1.2 the default was "JSP", but in JSP 2.0 there is no default.
 
Dilshan Edirisuriya
Ranch Hand
Posts: 299
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think it is "scriptless". For tag files they have clearly mentioned this but for simple and classic tag tlds I couldn't find a place to find it.
You better read this post
http://www.coderanch.com/t/173117/java-Web-Component-SCWCD/certification/body-content-JSP-useless-now
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dilshan , maybe you're confusing the body-content in the tag directive,
and the body-content in the tld.
 
Dilshan Edirisuriya
Ranch Hand
Posts: 299
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I know for tag files it is "scriptless" but for body-content in tld I couldn't find? Is that JSP? But in HFSJ they have given only possible values for that are empty,scriptless,tagdependant. They haven't mentioned about the jsp
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
From the spec :
Specifies the format for the body of this tag.
The default in JSP 1.2 was "JSP" but because this
is an invalid setting for simple tag handlers, there
is no longer a default in JSP 2.0. A reasonable
default for simple tag handlers is "scriptless" if
the tag can have a body.


Dishan, I don't know why you are posting all your messages twice, but you can delete at least one of them by clicking the "edit/delete post" icon
 
Dilshan Edirisuriya
Ranch Hand
Posts: 299
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry for the inconvinience. Internet connection here is awsome.

I think I got it. Thank you
 
Alan Hermin
Ranch Hand
Posts: 290
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thnx to all
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic