Oracle JSP Markup Language Syntax

Tag Description Syntax

Tag Library Name

   
<%@ taglib > Used to declare the JML tagset for use within this page or application. <%@ taglib uri="oracle.jsp.parse.OpenJspRegisterLib" prefix="jml" %>
     

Bean Binding Tags

   
<jml:useBean> Declares and instantiates (if necessary) a Bean with a specific name and scope. <jml:useBean id = "beanInstanceName" scope = "page | request | session | application"
{ class ="package.class" | type = "package.class" | class ="package.class" type = "package.class" |
beanName = " {package.class | <%= jmlExpression %> | $ jmlExpression}" type = "package.class" }
{ /> | > other tags </jml:useBean> }
<jml:useVariable> Declares and instantiates (if necessary) a Bean with the specific JML data type at scope. <jml:useVariable id = "beanInstanceName" scope = "page | request | session | application"
type = "string | boolean | number | fpnumber"
value = "{stringLiteral | <%= jmlExpression %> | $ jmlExpression}" />
<jml:useForm> Declares a JML data bean whose value is set from an incoming form/request parameter. <jml:useForm id = "beanInstanceName" scope = "page | request | session | application"
type = "string | boolean | number | fpnumber" param = "requestParameterName" />
<jml:useCookie> Declares a JML data bean whose value is set from an incoming cookie value. <jml:useCookie id = "beanInstanceName" scope = "page | request | session | application"
type = "string | boolean | number | fpnumber" cookie = "cookieName" />
<jml:remove> Removes an object from scope. <jml:remove id = "beanInstanceName" [ scope = "page | request | session | application" ] />
     

Bean Manipulation Tags

   
<jml:print> Outputs (prints) the value of the expression in the JSP page. <jml:print eval = "{jmlExpression | <%= jmlExpression %> | $ jmlExpression}" />
<jml:getProperty> Gets the value of a bean property so you can <jml:getProperty name = "beanInstanceName" property = "propertyName" />
<jml:setProperty> Sets a Bean's property value(s). <jml:setProperty name = "beanInstanceName"
{ property = " * " | property = "propertyName" [ param = "parameterName" ] |
property = "propertyName" value = " { stringLiteral | <%= jmlExpression %> | $ jmlExpression}" } />
<jml:set> Sets a Bean's property value(s). <jml:set name = "beanInstanceName.propertyName"
value = " { stringLiteral | <%= jmlExpression %> | $ jmlExpression}" } />
<jml:call> Calls a Bean's void method. <jml:call method = "beanInstanceName.methodName(parameters)" />
<jml:lock> Locks a bean. The code within this tag has synchronous access to the bean. <jml:lock name = "beanInstanceName" />

For More information about Oracle's JSP technology please visit:
http://technet.oracle.com/tech/java/

Oracle
Copyright © 1999 Oracle Corporation.

All Rights Reserved.