Package com.webhydra.slug.tld

Slug's JSP Tag Library.

See:
          Description

Class Summary
ClassDefTagHandler Genrates all Slug related JavaScript Classes.
SlugMgrTagHandler Generates SlugMgr JavaScript instance.
 

Package com.webhydra.slug.tld Description

Slug's JSP Tag Library.


To Description

Package Specification


To Description

Package Dependencies

This package uses SimpleTag, which is available in JSP 2.0 API.
To Description

Session Considerations

Provided tags utilize AJAX calls that are repeated in specified frequency for the period of the SluggishProcess live time. As a result application session will be kept “alive” until monitored process is not completed.
To Description

JavaScript Objects


To Description

JSP Tags overview

script tag

This tag is required in all pages that use Slug's JSP Tags. It includes all required JavaScript Objects.
The tag can bue used in tho different modes - internal and external. When used in its internal form the tag generates all JavaScript Objects localy in current page. When used in its external form the tag generates only a script link to an external JavaScript file provided by the src patameter.

ParameterTypeDefaultDescriptionModeIs required
srcString URL to a JavaScript file providing all Slug JavaScript Objects. If present script tag is swithced to external mode.externalNo
xmlFormatbooleanfalseSpecify where produced script tag will be in HTML 4.1 (false) or XHTML (true) compatible.internalNo
rawScriptbooleanfalseSpecify where script tag should be omited in during script's generation. If set to true it would ommit the enclosing scritp tag.internalNo

Examples:


To Description

manage

This tag generates a SlugMgr Object and puts its instance in to service.
The tag allows users to define their onw event code that will be called upon update received from the server. This thag operates in two modes - inline or function call. In the inline mode user's event processing code is entered directly in the tag's body while in the function call more of operation only a reference to external, already defined, JavaScript function is provided.

ParameterTypeDefaultDescriptionModeIs required
nameString Name of the SlugMgr instance.bothYes
pidString SlugProcess PID.bothYes
updateFunctionString User defined ervent handler. Required functions signature is updateHndlr(SlugMgr, ProcessStaus).function callYes, if no body is provided.
urlString URL to the Slut Servlet.bothYes
translatorStringDefault translator in the config fileTransaltor's name as defined in Slug's config.bothNo
runnerStringDefault runner in the config fileRunner's name as defined in Slug's config.bothNo
refreshint500 (1/2 second)Specify where script tag should be omited in during script's generation. If set to true it would ommit the enclosing scritp tag.bothNo
errorFunctionStringalert ('Error server status: ' + status);Error processing hanler. Required function signature is errorHndlr(respStatus), where respStatus is HTTP response status code.bothNo

Examples:


To Description