Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Template Text

 
Vineela Devi
Ranch Hand
Posts: 191
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Can anyone pls tell me what is template text?

Thanks in Advance
Vineela
 
Kumar J
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Things that are not within any of the < > (less than and greater than) are temlate texts.
So that exclude all html tags,EL's,action elements,JSTL's,custom tags

got it !!!

 
Vineela Devi
Ranch Hand
Posts: 191
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,


Do u mean to say tht "Welcome to JavaRanch" is template text in the above code?
Correct me if Iam wrong

Vineela
 
Venkatraman Kandaswamy
Ranch Hand
Posts: 120
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

This is a template text. Now ${greeting} can take any value :
welcome to javaranch
welcome to micro$oft
 
Kumar J
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Refer to the JSP 2.0 specs...

...JSP.2.2.2 Expressions and Template Text
The EL can be used directly in template text, be it inside the body of a custom or
standard actions or in template text outside of any action...

...JSP.1.9 Template Text Semantics
The semantics of template (or uninterpreted) Text is very simple: the template
text is passed through to the current out JspWriter implicit object, after applying the
substitutions of Section JSP.1.6, �Quoting and Escape Conventions�...


Apart from what I told,you can have EL as part of template text.


Kumar V
 
Gavin Zhao
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
except java code,else is template text
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic