Expression Examples in Static Text - Result

This section provides output result of a tutorial example with different Rvalue expressions embedded in static text: literal data, variables, implicit objects, user defined objects, collection elements, object properties, nested properties.

Here is the output of my EL expression example JSP page, ExpExample.jspx:

EL Expression in Static Text Examples:

1. true
2. 2
3. 0.3333333333333333
4. 0.3333333333333333
5. false

6. Hi there!
7. message
10. GET
12. GET

15. GET
16. GET

22. E5753AA9621203B3AC480E0E3891880D
23. javax.servlet.http.Cookie@1d60834

26. javax.servlet.http.Cookie@1d60834



34. true
35. false
36. false

37. 1152816698019

Do you have any surprises when you compare your guess with the output? I have some explanations on the output to help you:

Exercise: Write an example JSP page to show how to create a JavaBean object, and how to access the properties of this object with EL expressions.

Last update: 2012.

Table of Contents

 About This Book

 JSP (JavaServer Pages) Overview

 Tomcat 7 Installation on Windows Systems

 JSP Scripting Elements

 Java Servlet Introduction

 JSP Implicit Objects

 Syntax of JSP Pages and JSP Documents

 JSP Application Session

 Managing Cookies in JSP Pages

 JavaBean Objects and "useBean" Action Elements

 Managing HTTP Response Header Lines

 Non-ASCII Characters Support in JSP Pages

 Performance of JSP Pages

EL (Expression Language)

 What is EL (Expression Language)?

 EL Expression Types and Usage

 Literal Data and Named Variables

 Basic Operators and Operations

 Predefined Implicit Objects

 Collection Elements and Object Properties

 Expression Examples in Static Text

Expression Examples in Static Text - Result

 EL Variables Are pageContext Attributes

 Overview of JSTL (JSP Standard Tag Libraries)

 JSTL Core Library

 JSP Custom Tags

 JSP Java Tag Interface

 Custom Tag Attributes

 Multiple Tags Working Together

 File Upload Test Application

 Outdated Tutorials


 PDF Printing Version