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. 

<%= someexpression %>

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

You cannot use a semicolon to end an expression





Add Comment

* Required information


No comments yet. Be the first!

Most Viewed Articles (in Interview )

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

What are implicit Objects available to the JSP Page?

Explain the Polymorphism principle.

Interview Question: What is Deployment descriptor?

Interview Question: What are the call back methods in Entity bean?

What is similarities/difference between an Abstract class and Interface?

Interview Question: What is the difference between find and select methods in EJB?

Getting started with Interview

What do you understand by a J2EE module?

What is J2EE Connector architecture?

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

Can Entity Beans have no create() methods?

Interview Question: What is deployment descriptor?

What is the difference between Session Bean and Entity Bean?

Interview Question: Is Decorator an EJB design pattern?

Latest Articles (in Interview)