• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

HTML variable using

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Sheriff
Posts: 67747
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Sheriff
Posts: 67747
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic