Question: What is an Expression tag in JSP?

By: Guru Singh Printer Friendly Format    

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: What is lazy loading?

Explain garbage collection?

Interview Question: What is Struts?

Interview Question: What is ActionServlet?

Interview Question: What about JSTL and JavaServer Faces ?

Interview Question: Is there a particularly good IDE to use with Struts ?

Interview Question: Why are some of the class and element names counter-intuitive?

Interview Question: Do ActionForms have to be true JavaBeans?

Interview Question: What is EJB container?

Interview Question: What is Local client view in EJB?

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

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

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

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

Interview Question: Is Decorator an EJB design pattern?

Latest Articles (in Interview)

Comment on this tutorial