ADBRITE ads links
You are here: CodeIdol.com > Java > The Java EE 5 Tutorial, Third Edition: For Sun Java System Application Server Platform > Scripting In JSP Pages
The Java EE 5 Tutorial, Third Edition: For Sun Java System Application Server Platform
| 8. Scripting in JSP Pages
JSP scripting elements allow you to use Java programming language statements in your JSP pages. Scripting elements are typically used to create and access objects, define methods, and manage the flow of control. Man...
|
|
| The Example JSP Pages
This chapter illustrates JSP scripting elements using webclient, a version of the hello1 example introduced in Chapter 2 that accesses a web service.
To deploy and run the webclient example using NetBeans 5.5, follow these...
|
|
| Using Scripting
JSP technology allows a container to support any scripting language that can call Java objects. If you wish to use a scripting language other than the default, java, you must specify it in the language attribute of the page directi...
|
|
| Disabling Scripting
By default, scripting in JSP pages is valid. Because scripting can make pages difficult to maintain, some JSP page authors or page authoring groups may want to follow a methodology in which scripting elements are not allowed....
|
|
| Declarations
A JSP declaration is used to declare variables and methods in a page's scripting language. The syntax for a declaration is as follows:
<%! scripting language declaration %>
When the scripting language is the Java programmin...
|
|
| Scriptlets
A JSP scriptlet is used to contain any code fragment that is valid for the scripting language used in a page. The syntax for a scriptlet is as follows:
<%
scripting language statements
%>
When the scripting language...
|
|
| Expressions
A JSP expression is used to insert the value of a scripting language expression, converted into a string, into the data stream returned to the client. When the scripting language is the Java programming language, an expression is trans...
|
|
| Programming Tags That Accept Scripting Elements
Tags that accept scripting elements in attribute values or in the body cannot be programmed as simple tags; they must be implemented as classic tags. The following sections describe the TLD elements ...
|
|
You are here: CodeIdol.com > Java > The Java EE 5 Tutorial, Third Edition: For Sun Java System Application Server Platform > Scripting In JSP Pages
|
|
Related tags
Popular Categories
Unix books and guides
AJAX popular information
C# language guides
Windows books and cookbooks
.......
|
|