• 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
  • Tim Cooke
  • Devaka Cooray
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Martijn Verburg
  • Frits Walraven
  • Himai Minh

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
 
Slideshow boring ... losing consciousness ... just gonna take a quick nap on this tiny ad ...
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic