... requires that the classes in the java. lang, javax.servlet,
javax.servlet.jsp, and the javax.servlet.http packages are available by default
to scripting elements when Java is used as the scripting ... language=" ;java& quot; import=" ;java. util.*" %>
The language attribute specifies the scripting language used in the page. All containers are
required to support Java....
... for First Edition
I love to write and have always wanted to write a book someday. After getting a number of
articles about Java servlets and a couple of chapters for a server- side Java book ... or any additional
information. You can access this page at:
http://www.oreilly.com/catalog/jserverpages2/
To comment or ask technical questions about this book, send email to:
bookquestio...
... from a specified category to a page.
Table 7-1. Attributes for <ora:motd>
Attribute
name
Java
type
D
y
namic value
accepted
Description
category String
No
Mandatory. The message ... named category, used to select the type of
message you want. Let's get back to the " ;Java type" and "Dynamic value accepted" columns
at the end of this chapter.
Examp...
... maximum age of 0. This means that the cookies
expire immediately and will never be sent to this server again. If you want to send a cookie to
a browser that should be valid only until the user ... number (for instance, -1).
Table 12-5. Attributes for <ora:addCookie>
Attribute
name
Java
type
Dynamic
value
accepted
Description
name String
Yes Mandatory. The name of the coo...
... interface method implementations:
package com.ora.jsp.tags;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import javax.servlet.jsp.tagext.*;
import com.ora.jsp.util.*;
public ... maxAgeString) {
this.maxAgeString = maxAgeString;
}
The purpose of the custom action is to create a new javax.servlet.http.Cookie
object with the name, value, and maximum age values specifie...