aspose file tools*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes What does template text mean ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of JavaScript Promises Essentials this week in the JavaScript forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "What does template text mean ? " Watch "What does template text mean ? " New topic
Author

What does template text mean ?

Prasad Shindikar
Ranch Hand

Joined: Feb 18, 2007
Posts: 114
In Chapter 7 from HFJS, in the Question Answer sessions, they have used the word "Template Text" in some of the questions. I am unable to understand what does template text mean ?

Is it something like, html content or static content is called template text ?
James Mark
Ranch Hand

Joined: Jul 05, 2007
Posts: 115
It�s any HTML or XML (or indeed any type
of content at all) that you care to include in your JSP page. Template text is sent
unchanged to response output. This is not so with scripting elements: There are
several different sorts, and the JSP container works hard to turn these dynamic
elements into something else�usually a coherent string of HTML or XML.
Together with the template text, this completes the page response.


SCJP1.4(96%) SCWCD1.4(92%)
Prasad Shindikar
Ranch Hand

Joined: Feb 18, 2007
Posts: 114
to put it in other way.. "template text is something that goes to the response unchanged". would that be fine ?
Mihai Radulescu
Ranch Hand

Joined: Sep 18, 2003
Posts: 918

Hi people

James, nice definition.
Prasad, here is an example of a template text.


The "Hallo :" is the template text.

I had the same problem with you, I solve it by reading more than book.
That was not the first place where I need an extra book to solve the chapter questions.

Regards,
M
[ December 18, 2007: Message edited by: Mihai Radulescu ]

SCJP, SCJD, SCWCD, OCPJBCD
James Mark
Ranch Hand

Joined: Jul 05, 2007
Posts: 115
Hi Mihai,
The "Hallo :" is the template text.

I think
<html>
<body>
Hallo :request.getParamter("xxx");
</body>
</html>


whole page is the template text in the example above....
Directly send back to the Browser and brower will proceess it
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: What does template text mean ?