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

Directives/standard actions

 
Deepti Padiyar
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • 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} ?
 
Charles Lyons
Author
Ranch Hand
Posts: 836
  • Mark post as helpful
  • send pies
  • 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 ]
 
Biren shah
Ranch Hand
Posts: 107
  • Mark post as helpful
  • send pies
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic