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()%>


Archived Comments

1. Brettkip
View Tutorial          By: Brettkip at 2017-08-01 15:08:43


Most Viewed Articles (in Interview )

Interview Question: How is the MVC design pattern used in Struts framework?

What is the difference between interface and abstract class?

What types of comments are available in the JSP?

Explain the Polymorphism principle.

What are the call back methods in Session bean?

What is the difference between Session Bean and Entity Bean?

Question: Explain the life-cycle methods in JSP?

Question: What is a Hidden Comment in JSP?

Interview Question: What is abstract schema?

Interview Question: What is deployment descriptor?

Interview Question: What is lazy loading?

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

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

Interview Question: What is Local client view in EJB?

Interview Question: How do I install Struts?

Latest Articles (in Interview)

Comment on this tutorial