Win a copy of TDD for a Shopping Website LiveProject this week in the Testing forum!
  • 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
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

What does template text mean ?

 
Ranch Hand
Posts: 114
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 ?
 
Ranch Hand
Posts: 115
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Prasad Shindikar
Ranch Hand
Posts: 114
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
to put it in other way.. "template text is something that goes to the response unchanged". would that be fine ?
 
Ranch Hand
Posts: 918
IntelliJ IDE Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 ]
 
James Mark
Ranch Hand
Posts: 115
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
All that thinking. Doesn't it hurt? What do you think about this tiny ad?
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
https://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic