What is expression in JSP?

By: Karthik Viewed: 153176 times    

Answer: Expression tag is used to insert Java values directly into the output. Syntax for the Expression tag is: 
<%= expression %>
An expression tag contains a scripting language expression that is evaluated, converted to a String, and inserted where the expression appears in the JSP file. The following expression tag displays time on the output:
<%=new java.util.Date()%>

Most Viewed Articles (in Interview )

Latest Articles (in Interview)

Comment on this tutorial