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 )

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

Question: Difference between forward and sendRedirect in JSP?

What is Collection API?

Explain garbage collection?

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

Interview Question: What is the difference between Message Driven Beans and Stateless Session beans?

What are Access Specifiers available in Java?

What is the difference between jsp:include page and @ include file?

What are all the different scope values for the tag?

Interview Question: Write code of any Action Class?

What is the difference between interface and abstract class?

What are the contents of web module?

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

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

What do you understand by a J2EE module?

Latest Articles (in Interview)