What is expression in JSP?

By: Karthik Printer Friendly Format    


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()%>

Most Viewed Articles (in Interview )

Interview Question: Is there a particularly good IDE to use with Struts ?

Interview Question: What is Local client view in EJB?

Interview Question: What is the difference between find and select methods in EJB?

Interview Question: Who makes the Struts?

Interview Question: Why it is called Struts?

Interview Question: What is Action Class?

Interview Question: Write code of any Action Class?

Interview Question: What is Struts Validator Framework?

Interview Question: What is ActionForm?

Interview Question: Do you have to credit Struts on your own website?

Interview Question: What is ActionServlet?

Interview Question: What about JSTL and JavaServer Faces ?

Interview Question: Why are some of the class and element names counter-intuitive?

Interview Question: Do ActionForms have to be true JavaBeans?

Interview Question: What is EJB client JAR file?

Latest Articles (in Interview)

Comment on this tutorial