%@ taglib prefix="c" uri="http://java.sun.com/jstl/ea/core" %>
In EcmaScript, the () operator is used to invoke functions. The () operator evaluates each of the operands and then invokes the function specified by the first operand
Here is an example:
<% request.setAttribute("myString", new String ("Harrison Ford")); %>Function Call | Result | Description |
---|---|---|
String.italics() | Make the specified string italic | |
String.bold() | Make the specified string bold | |
new String("Hello there") | create a new EcmaScript string | |
Math.randon() | Random value | |
Math.abs(-5) | Absolute value | |
Math.round(57.55) | Round to the nearest integer | |
Math.sin(5) | Sine value |