Standard tags

Standard tags perform common actions. The useBean, getProperty, and setProperty tags are all used with JavaBeans components. The useBean id attribute is the name of the bean and corresponds to the name attribute for getProperty and setProperty.

<jsp:useBean>

The useBean tag locates or instantiates a JavaBeans component:

<jsp:useBean id="labelLink" scope="session" class="LinkBean.labelLink" />

The bean class and classes required by the bean class must be deployed under a JavaCode base that is available to the Web Application where the JSP is installed. See “Java classes” for more information.

<jsp:getProperty>

The getProperty tag gets the value of a JavaBeans component property so that you can display it in a result page:

<jsp:getProperty name="labelLink" property="url" />

<jsp:setProperty>

The setProperty tag sets a property value or values in a JavaBeans component:

<jsp:setProperty name="labelLink" property="url" value="<%= labelLink.getURL() %>"/>

<jsp:include>

The include tag includes a static file or sends a request to a dynamic file:

<jsp:include page="/jsp/datafiles/ListSort.jsp" />

<jsp:forward>

The forward tag forwards a client request to an HTML file, JSP file, or servlet for processing:

<jsp:forward page="/jsp/datafiles/ListSort.jsp" />

<jsp:plugin>

The plugin tag downloads plug-in software to the Web browser to execute an applet or JavaBeans component:

<jsp:plugin type="applet" code="Calc.class"
		codebase="/utils/applets" >