Programming Tutorials

Question: What is an Expression tag in JSP?

By: Guru Singh in Interview Tutorials on 2008-08-24  

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

 

 

 

 





Add Comment

* Required information
1000

Comments

No comments yet. Be the first!

Most Viewed Articles (in Interview )

Question: What is a Hidden Comment in JSP?

Question: What is an Expression tag in JSP?

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

How to define an Abstract class?

What is Collection API?

What is the difference between Session Bean and Entity Bean?

Interview Question: What about JSTL and JavaServer Faces ?

Explain the Encapsulation principle.

Name the containers which uses Border Layout as their default layout?

Explain the different forms of Polymorphism.

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

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

The output of System.out.println(5<<2) in Java

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

Question: Difference between forward and sendRedirect in JSP?

Latest Articles (in Interview)