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 )

Explain the Encapsulation principle.

Interview Question: Why aren't the Struts tags maintained as part of the Jakarta Taglibs project ?

What is transient variable?

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

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

What is Collection API?

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

What is the difference between JTS and JTA?

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

What is Deployment Descriptor?

Interview Question: Where can I get help with Struts?

Interview Question: Where can I get a copy of Struts?

Question: What is a Hidden Comment in JSP?

Interview Question: Write code of any Action Class?

What are all the different scope values for the tag?

Latest Articles (in Interview)