Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSP tags doubt

 
Surajsingh Thakur
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>

 
Sarat Koduri
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..
 
raja ram
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
 
Vasanth Babu Raju
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
 
Seetharaman Venkatasamy
Ranch Hand
Posts: 5575
Eclipse IDE Java Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi buddy ,

rajaram explained clearly about tagdependant

you see here
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic