Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HTML variable using

 
ri gwang
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am reading one html source code. but I have a difficulty on understanding this source code.
there is a part as follows:

<div class="item" style="display: none" title="{$detail.ID}" id="{$detail.ID}"></div>
<div class="cls"><span class="left name">{$detail.name|strhtml}</span></div>

I can't understand what type {$detail.ID}, {$detail.name|strhtml} is.
if anyone know, please help me.
thnkx.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64847
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you sure that you copied those correctly? Are they really in the form {$whatever} rather than ${whatever}? If it's really the latter then please be more careful posting in the future. Please read AvoidRedHerrings.

Those have nothing at all to do with HTML. They are JSP EL (Expression Language) expressions. They are evaluated on the server by a Servlet/JSP container in order to add dynamic values to the HTML prior to it being sent to the browser.

How JSP works is described in this article.
 
ri gwang
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I copied correctly. Obviously it is. In that source, a src path is {$tpl}/js/jquery.js and it is written as <script type="javascript" src="{$tpl}/js/jquery.js"></script>.
help me. thnkx your attention.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64847
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If that's the syntax, then it's some other templating solution other than JSP. I have no way of knowing which. You'll need to ask whoever you got the files from.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic