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: Difference between forward and sendRedirect in JSP?

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

Explain garbage collection?

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

Differentiate between .ear, .jar and .war files.

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

What is Collection API?

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

What are all the different scope values for the tag?

What is the difference between interface and abstract class?

Interview Question: Write code of any Action Class?

What do you understand by Synchronization?

What is bean managed transaction?

What is the difference between Session Bean and Entity Bean?

Is Iterator a Class or Interface? What is its use?

Latest Articles (in Interview)