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 lazy loading?

What is difference between Java Bean and Enterprise Java Bean?

Interview Question: If the framework doesn't do what I want, can I request that a feature be added?

Interview Question: How many EJB Objects are created for a Bean?

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

Interview Question: Where can I get help with Struts?

Interview Question: What is Remote client view?

What is the difference between Session Bean and Entity Bean?

What are implicit Objects available to the JSP Page?

Interview Question: What is the difference between JavaBean and EJB?

Interview Question: What is Action Class?

What do you understand by a J2EE module?

What is expression in JSP?

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

Latest Articles (in Interview)