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 )

What is the difference between Session Bean and Entity Bean?

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

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

Explain the different forms of Polymorphism.

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 re-entrant. Is session beans reentrant. Is entity beans reentrant?

What is expression in JSP?

Interview Question: What is Struts?

Interview Question: Write code of any Action Class?

Interview Question: What are the optional clauses in EJB QL?

Interview Question: Can i map more than one table in a CMP?

What is difference between Java Bean and Enterprise Java Bean?

What is transient variable?

What is similarities/difference between an Abstract class and Interface?

Latest Articles (in Interview)