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 )

What is Collection API?

What types of comments are available in the JSP?

What are all the different scope values for the tag?

Interview Question: How do I install Struts?

Interview Question: What is EJB client JAR file?

Question: How is the MVC design pattern used in Struts framework?

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

Interview Question: What is abstract schema?

Question: How would you go about analyzing performance of an application?

What are the call back methods in Session bean?

Interview Question: What is EJB container?

Interview Question: Is it possible to share an HttpSession between a JSP and EJB? What happens when I change a value in the HttpSession from inside an EJB?

What is the difference between JTS and JTA?

Tell me something about J2EE component?

What is the difference between Session Bean and Entity Bean?

Latest Articles (in Interview)