What is expression in JSP?

By: Karthik  

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 )

Explain the new Features of JDBC 2.0 Core API?

How to define an Abstract class?

Interview Question: Can i map more than one table in a CMP?

Interview Question: Is Decorator an EJB design pattern?

What do you understand by JSP Actions?

What is the difference between jsp:include page and @ include file?

Interview Question: What is lazy loading?

Interview Question: What is the difference between EAR, JAR and WAR file?

Interview Question: What is the difference between ejbCreate() and ejbPostCreate?

Interview Question: Can I invoke Runtime.gc() in an EJB?

Interview Question: What are the optional clauses in EJB QL?

Interview Question: Why does EJB needs two interfaces(Home and Remote Interface)?

Explain garbage collection?

Interview Question: What is difference between EJB 1.1 and EJB 2.0?

Interview Question: What is the difference between sessioncontext and entitycontext?

Latest Articles (in Interview)

Comment on this tutorial