• 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
  • Devaka Cooray
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Jeanne Boyarsky
  • Tim Cooke
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown
Bartenders:

JSP tags doubt

 
Ranch Hand
Posts: 124
Eclipse IDE MySQL Database Tomcat Server
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please can anyone explain in detail,what all is allowed in the body of the tags with

1: <body-content>JSP</body-content>
2: <body-content>tagdependent</body-content>
3: <body-content>scriptless</body-content>

 
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
suraj... i am sure about this..

The above code tell's the container that the tag's body can contain any thing that JSP page can contain.. means it can have Declarations,Scriptlets and Expressions..



This code says that the tag should not contain declarations,scriptlets and expressions.. but it can contain EL elements..



and this code says the body content is not meant for the container to manipulate and just take it as it is..

even i need of a bit of clarification on this point.. suppose if the body has jsp content here does this will be directly given to the output or an exception will be thrown..

some body please tell me..
 
Ranch Hand
Posts: 169
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

<body-content>tagdependent</body-content>



What ever you give in this will be treated as a template text thats like html code it will not be evaluated we may give child tag,scriptlets,el and so on but it container will not evaluate it will be passed directly to the output stream.

Thanks
 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
<body-content>scriptless</body-content>

also accepts jsp standard action(like <jsp:attribute> and template text
 
Ranch Hand
Posts: 5575
Eclipse IDE Windows XP Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi buddy ,

rajaram explained clearly about tagdependant

you see here
 
I need a new interior decorator. This tiny ad just painted every room in my house purple.
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic