Programming Tutorials

What is expression in JSP?

By: Karthik in Interview Tutorials on 2012-06-16  

Answer: Expression tag is used to insert Java values directly into the output. Syntax for the Expression tag is:

<%= expression %> 

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. The following expression tag displays time on the output:

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





Add Comment

* Required information
1000

Comments

No comments yet. Be the first!

Most Viewed Articles (in Interview )

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

Interview Question: What is EJB client JAR file?

What is Collection API?

Interview Question: How do I install Struts?

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

What do you understand by a container in J2EE?

What are types of J2EE clients?

Tell me something about J2EE component?

What is the difference between JTS and JTA?

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

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

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

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 types of comments are available in the JSP?

Interview Question: What is abstract schema?

Latest Articles (in Interview)