Skip to main content.

JSP Controls Tag Library

Navigation: JSP Controls | About

Implicit Variables

The library provides several scoped variables and constants that can be used for component development. These variables can be accessed from JSP or JSTL tags by their scoped name, or from Java scriptlets by Java constant name. All constants are defined in net.jspcontrols.util.Constants class, referred to as Constants in the tables below.

For example, jspcEvent scoped variable is defined in Constants class like this:

public final String JSPC_EVENT = "jspcEvent";

Component ID


Scope Scoped Name Java Constant Type Description
page jspcComponentId TODO String Contains the name of currently processed component. Set by a Component tag. Used by TabControl tag to obtain the state bean from the session. Therefore, component IDs should be unique throughout application.

Reload Address


Scope Scoped Name Java Constant Type Description
request
parameter
jspcReloadAddr Constants.JSPC_RELOAD_ADDR String Contains the reload address, used in non-Ajax mode. A request parameter with "jspcReloadAddr" name can be specified with <jsp:param> tag in a composite page, identifying the reload address. This approach can be used in Struts applications. This parameter is also automatically added to command links created with <jc:link> and to forms created with <jc:form> to ensure that reload location is known even after session times out.

Parent Address


Scope Scoped Name Java Constant Type Description
request jspcParentAddress TODO String Contains the address of composite page, used in non-Ajax mode. If reload address is specified as request parameter, then parent address is set to explicit reload address. Otherwise, parent address is calclulated and set by Reload, TabControl and Prerender tags.

Parent address is intended for internal use only.

Component Address


Scope Scoped Name Java Constant Type Description
request jspcComponentAddress TODO String Contains the address of the component. Set calclulated and set by Reload, TabControl and Prerender tags.

This variable should be used by components as address where input is submitted.

Selected View


Scope Scoped Name Java Constant Type Description
page or
request
jspcSelectedView Constants.SELECTED_VIEW_NAME String This variable is used by Render tag to choose a subview to render. The value of this variable identifying a subview should be set in the body of Prerender tag or anywhere between Prerender tag and Render tags.

Current Event


Scope Scoped Name Java Constant Type Description
request jspcEvent Constants.JSPC_EVENT String Intended for internal use only. Contains the name of event processed by an event handler. Set by a Handler tag that recognized an event in the request, or by TabControl tag.

Non-null value of this scoped variable contains last processed event, and identifies current request as input phase.

The value contains string "POSTBACK" for "eventless" submits with POST method.