Meaningless Drivel is fun!*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Directives/standard actions Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Directives/standard actions" Watch "Directives/standard actions" New topic
Author

Directives/standard actions

Deepti Padiyar
Ranch Hand

Joined: Apr 27, 2006
Posts: 31
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} ?


Regards,<br />Deepti.
Charles Lyons
Author
Ranch Hand

Joined: Mar 27, 2003
Posts: 836
<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 ]

Charles Lyons (SCJP 1.4, April 2003; SCJP 5, Dec 2006; SCWCD 1.4b, April 2004)
Author of OCEJWCD Study Companion for Oracle Exam 1Z0-899 (ISBN 0955160340 / Amazon Amazon UK )
Biren shah
Ranch Hand

Joined: Apr 13, 2005
Posts: 107
<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


Biren Shah<br />scjp 93%<br />scwcd 1.4 92%
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Directives/standard actions
 
Similar Threads
Passing date and time using Timestamp.
how to get number of months between two given dates in java
how to use timer for displaying images
javascript
java.util.Date