a
JSP tags
The AltioLive Smart Client applet can be launched from a JSP (Java Server Page) page. This enables dynamic substitution of parameters when the page is loaded.
Tags include:
resolve: takes a string and replaces any property references with their values from the server configuration.
foreachapp: can be used to list all applications, for example to allow users to select an application to log in to via a drop-down field (see the example below).
appid: Used within a foreachapp loop to insert the application ID of an application.
appdesc: Used within a foreachapp loop to insert a description of an application. This is currently the same as appid, but may change to a more descriptive version in a future release.
These two tags are only valid within a foreachapp loop.
<%@taglib uri="http://www.altio.com/taglib-2.2/altiotags.tld" prefix="altio" %>
<!-- The above line must appear at the top of any JSP that uses these JSP tags. -->
<!-- This example is taken from console.jsp - included in the AltioLive installation. The altio:resolve string is concatenated with other information required to load the applet. -->
var launch_me = "<altio:resolve string='${http.server.protocol}://${http.server.name}:${http.server.port}/${http.server.path}com.altio.'/>"+ app_name +"?USER_NAME="+ takeOutWS('app','user') +"&PASSWORD="+ takeOutWS('app','pass') +"&APP_ID="+ XSApp +"&TYPE="+ app_type +"&SOURCE=" + source;
launch(launch_me, curWidth, curHeight, winName, 'yes', 'yes', 'yes')
}
}
<%@taglib uri="http://www.altio.com/taglib-2.2/altiotags.tld" prefix="altio" %>
<!-- If you place this example as a JSP file in your webapps directory, it will display a drop-down field listing all the application IDs. -->
<HTML>
<TITLE>App ID test</TITLE>
<FORM ACTION="example">
<SELECT NAME="APP">
<altio:foreachapp>
<OPTION VALUE="<altio:appid />"> <altio:appdesc /> </OPTION>
</altio:foreachapp>
</SELECT>
</FORM>
</HTML>