Question: What is an Expression tag in JSP?

By: Guru Singh  

Question: What is an Expression tag in JSP?

Answer: 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. Because the value of an expression is converted to a String, you can use an expression within text in a JSP file. 

Like
<%= someexpression %>

<%= (new java.util.Date()).toLocaleString() %>

You cannot use a semicolon to end an expression

 

 

 

 



Most Viewed Articles (in Interview )

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

Explain the new Features of JDBC 2.0 Core API?

What types of comments are available in the JSP?

How to define an Abstract class?

Interview Question: What is Message Driven Bean?

Types of Interviews

Getting started with Interview

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

Interview Question: Is it possible to share an HttpSession between a JSP and EJB? What happens when I change a value in the HttpSession from inside an EJB?

Interview Question: What is the difference between JavaBean and EJB?

Interview Question: What is abstract schema?

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

Interview Question: What is lazy loading?

Interview Question: How many EJB Objects are created for a Bean?

Interview Question: Is Decorator an EJB design pattern?

Latest Articles (in Interview)

Comment on this tutorial