How does the Jsp Expressions works ? What happens at the
back?

Answer Posted / vinoth mca

JSP expressions are a quick way to insert data into an HTML page. In Math, an expression is a way to represent a single value different ways. I could represent the number 6 with the expressions, (3+3) or (2*3). In JSP, the idea is the same. But instead of coming up with a mathimatical value, the result of an expression is converted to a string it can be displayed as part of an HTML Page.

An expression is enclosed in these tages: <%= %> For example, To add 2+2 and display the result, you would enter the following:

<%= 2+2 %>

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why do we use expression language in jsp?

556


What is meant by implicit objects and what are they?

580


What is jsp api?

560


Which attribute specifies a jsp page that should process any exceptions thrown but not caught in the current page? : Citibank

611


What is context in jsp?

558






How will you use jsp el in order to get the http method name?

576


How can we avoid direct access of jsp pages from client browser?

706


What is jsp technology?

599


How to include static files in a JSP page?

652


What is client side technology?

558


How does a servlet communicate with a jsp page?

625


What are directives in jsp?

597


Which one is better jsp or servlet?

567


How do you prevent the creation of a session in a jsp page and why? What is the difference between include directive & jsp:include action?

639


Is jsp server side or client side?

565