Advanced JavaServer Pages by David Geary

By David Geary

Millions of builders have found that JavaServer Pages characterize the optimum resolution for cross-platform web-based improvement. Now that they have mastered the fundamentals of JSP, many are trying to find to deepen and enhance their services. In complex JavaServer Pages, best-selling Java writer and previous JavaSoft developer David Geary supplies the delicate enterprise-class recommendations they're looking for. Geary tackles JavaServer Pages 1.1 with an identical exhaustive, authoritative method that made his picture Java books such a success. He starts with a radical evaluation of JSP components, servlets, and JavaBeans; then introduces customized and physique tags; and gives subtle insights into JSP-based internet program layout. complex JavaServer Pages contains specified chapters on internationalization, protection, databases, electronic mail integration, and company JavaBeans. for each Java developer attracted to developing server-side courses with JavaServer Pages and Sun's servlet applied sciences

Show description

Read or Download Advanced JavaServer Pages PDF

Best java books

Professional Java Native Interfaces with SWT/JFace

Expert Java local Interfaces takes a solutions-based technique in displaying how SWT/JFace works, discussing each one universal part, supplying worthy, useful rules, guidance and methods to make the Java builders' paintings more uncomplicated. the writer offers proper and well timed examples, either stand-alone purposes and smaller code snippets that readers can include into their very own code.

JSTL in Action

The ebook was once precisely as defined. Is in nice and kept me a number of cash rather than purchasing it via my campus bookshop. supply used to be speedy. Will order from them back.

J2EE Design Patterns Applied

Using layout styles in J2EE functions is a thrilling new box, including to the present wealth of software program layout styles. despite the fact that those styles don't exist in isolation, and unavoidably they should be assembled to shape greater and extra advanced frameworks. opting for styles and turning them into genuine global recommendations isn't a simple job.

Additional resources for Advanced JavaServer Pages

Sample text

JSP and JavaScript are a powerful combination of client- and server-side technologies for creating flexible and complex web applications. Custom tags can encapsulate JSP and JavaScript functionality in a format familiar to web page authors. Nested Tags Top-level tags can communicate by storing objects in a particular scope through the page context, as outlined above. Nested tags can do the same, but they can also communicate directly with the static findAncestorWithClass(Tag, Class) method from TagSupport.

A. Form is created and stored in request scope. The jsp:setProperty action sets the bean's properties according to the request parameters. That bean is subsequently used to retrieve the name request parameter, in addition to selecting a radio button. jsp—that also uses the form bean to display the values of the textfield, text area, and the selected radio button. b. jsp at compile time. jsp would be evaluated on its own at runtime. jsp. a. = null ? = null ? equals(creditName) ? "checked" : ""; } return ""; } } The Form bean listed above has JavaBeans-compliant accessor methods that comply with the JavaBeans specification for the form's textfield (name), text area (comments), and radio buttons (credit).

In addition to making body content available to tag handlers, servlet containers also evaluate body content before it is made available to a tag handler. For example, the following use of the capitalize tag will result in the same output as shown in Figure 2-3 , because the JSP expression in the tag's body content is evaluated and the result of that evaluation—the string "capitalize this string"—is made available to the tag handler. 41 Advanced JavaServer Pages <%= "capitalize this string" %> The preceding code fragment listed above will produce the same output shown in Figure 2-3 as long as JSP, which is the default value, is specified for the tag's body content in the tag library descriptor, as follows.

Download PDF sample

Rated 4.95 of 5 – based on 11 votes