Action Tags

In addition to the four tags seen in the previous sections, there is another special set of tags called the action tags. The use of the action tags was introduced primarily to make JSP more interactive with other components of a Web application. The use of action tags in your JSP makes writing a complete Web application easier.

There are six action tags available. The following sections discuss each of these in detail.

The usebean Action Tags

The usebean action tag is the most important action tag available:

<jsp:usebean attribute1name=attribute1value
							attribute2name=attribute2value ... />

Using the usebean tag, you can embed entire Java objects within the JSP file. This makes the JSP cleaner, since you can use the embedded Java ...

Get Sams Teach Yourself BEA WebLogic Server 7.0™ in 21 Days now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.