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 )

Interview Question: What is the difference between Message Driven Beans and Stateless Session beans?

What are the services provided by a J2EE container?

Interview Question: What is re-entrant. Is session beans reentrant. Is entity beans reentrant?

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

How to define an Abstract class?

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

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

What is Collection API?

Interview Question: What is deployment descriptor?

Interview Question: What is Local client view in EJB?

Interview Question: What is local interface. How values will be passed?

Interview Question: What is abstract schema?

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

Question: What is an Expression tag in JSP?

What is JSP declaration?

Latest Articles (in Interview)