views:

75

answers:

3

I read a book a while back (I don't know which one) that referred to these characters as "corn holders" or something clever. What do you call these characters across different web technologies that escape into code blocks with <% %>?

+1  A: 

I recall Jeff Atwood calling them "bee stings" in a past Stackoverflow Podcast, but I'm not sure if that only applies to the .NET versions

HTH Alex

AlexDuggleby
milkfilk
A: 

They are called scriptles tags on JSP, they will be coding as the following too :

<jsp:scriptlet> 
</jsp:scriplet>

and an example of use (JSP) :

<body>
<%! int j= 15; %>
<% for (int i = 0; i < j; i++)
    out.println("Hello World!<br/>"); %>
<%-- Im a comment --%>
<%= "Bye" %>
</body>

there are more of those "bee things" in the above snippet :

<%! %>  or <jsp:declaration> </jsp:declaration> 
<%-- --%> 
<%=  %> or <jsp:expression> </jsp:expression>
Angel Escobedo
Actually, no, Their **content** is a scriptlet, not the tags themselves.
ChssPly76
A: 

I've heard them called "nuggets" but I think that is non-universal, unaccepted slang. I like it though.

jeffamaphone