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

Directives/standard actions

 
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

How does one use the jsp:body and jsp:invoke in the JSP and/or tag file?
What is the meaning of the two?

How do u specify the value of the expression below
<%@ variable name-given="date" variable-class="java.util.Date"%>

Can one use the variable then as ${date} ?
 
Author
Posts: 836
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
<jsp:doBody /> and <jsp:invoke /> can only be invoked from tag files, never ordinary JSPs. Their purpose is to evaluate the action's body or a fragment attribute respectively.

<jsp:body> on the other hand is used to provide a <jsp:element> with body content, which is a completely different issue. <jsp:body> may be used in either JSPs or tag files.
[ June 26, 2006: Message edited by: Charles Lyons ]
 
Ranch Hand
Posts: 107
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

<jsp oBody /> and <jsp:invoke /> can only be invoked from tag files, never ordinary JSPs. Their purpose is to evaluate the action's body or a fragment attribute respectively.

<jsp:body> on the other hand is used to provide a <jsp:element> with body content, which is a completely different issue. <jsp:body> may be used in either JSPs or tag files



hey charles i did not understand the explanation...can you elaborate some more...
anybody else has some better links.i m giving exam tomorrow
 
Blueberry pie is best when it is firm and you can hold in your hand. Smell it. And smell this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic