• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

JSP tags doubt

 
Ranch Hand
Posts: 124
Eclipse IDE MySQL Database Tomcat Server
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • 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
  • 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
  • Quote
  • Report post to moderator
hi buddy ,

rajaram explained clearly about tagdependant

you see here
 
Consider Paul's rocket mass heater.
    Bookmark Topic Watch Topic
  • New Topic