| Author |
What is JSPFragment
|
Ravi Singh
Greenhorn
Joined: Jun 02, 2008
Posts: 26
|
|
I want to know about JSPFragment which is being passed to setJspBody() in SimpleTag
|
 |
Gopikrishna Kunisetty
Ranch Hand
Joined: Jun 12, 2008
Posts: 35
|
|
|
A JspFragment is an object. It encapsulates the body of a tag,that is invoked. Most of the time it is used to output the body content of tag to response. The content of JspFragment are not accessible directly.
|
- Krishna<br /> SCJP 1.4 SCWCD 5
|
 |
John Pearson
Ranch Hand
Joined: Oct 19, 2007
Posts: 51
|
|
|
In addition to the previous reply, it's important to note that a JspFragment must not contain scriptlets or scriptlet expressions. For more complete information on JspFragment, check out Sun's Servlet API docs.
|
 |
Kunal Jag
Ranch Hand
Joined: Jun 08, 2008
Posts: 31
|
|
I believe a common point of confusion among many exam aspirants is the difference between "JSP Segments" and "JSP Fragments". JSP Segments are incomplete code segments that are designed to be included in other files. JSP Fragments, on the other hand are the classes that implement the javax.servlet.jsp.tagext.JspFragment interface. This interface is a part of the tag extension API. Regards, [ June 12, 2008: Message edited by: Kunal Jag ]
|
Kunal Jaggi<br />Author of <a href="http://www.tatamcgrawhill.com/html/titleDetail.jsp?isbn=9780070249103.html" target="_blank" rel="nofollow">"SCWCD Exam Guide"</a>, SCWCD 5 (exam 310-083 and 310-084), <a href="http://www.tatamcgrawhill.com/html/titleDetail.jsp?isbn=9780070249103.html" target="_blank" rel="nofollow">McGraw-Hill</a><br /><a href="http://javaevangelist.com/" target="_blank" rel="nofollow">http://javaevangelist.com/</a><br /><a href="http://www.oreillynet.com/pub/au/2669" target="_blank" rel="nofollow">http://www.oreillynet.com/pub/au/2669</a>
|
 |
 |
|
|
subject: What is JSPFragment
|
|
|