|
Struts example source code file (viewBundle.ftl)
The Struts viewBundle.ftl source code<html> <head> <title>${bundle.symbolicName!} <link rel="stylesheet" type="text/css" href="<@s.url value="/static/css/main.css" />" /> <link rel="stylesheet" type="text/css" href="<@s.url value="/static/css/redmond/jquery-ui-1.7.1.custom.css" />" /> <script src="<@s.url value="/static/js/jquery-1.3.2.min.js" />"> <script src="<@s.url value="/static/js/jquery-ui-1.7.1.custom.min.js" />"> <script type="text/javascript"> $(function() { $("#tabs").tabs(); }); </script> </head> <body> <div class="menu"> <div style="float:left;"> <#if action.isAllowedAction(bundle, "start")> <a href="bundle_${bundle.symbolicName}!start.action" class="ui-state-default ui-corner-all fg-button fg-button-icon-left"> <span class="ui-icon ui-icon-play"> Start </a> </#if> <#if action.isAllowedAction(bundle, "stop")> <a href="bundle_${bundle.symbolicName}!stop.action" class="ui-state-default ui-corner-all fg-button fg-button-icon-left"> <span class="ui-icon ui-icon-stop"> Stop </a> </#if> <#if action.isAllowedAction(bundle, "update")> <a href="bundle_${bundle.symbolicName}!update.action" class="ui-state-default ui-corner-all fg-button fg-button-icon-left"> <span class="ui-icon ui-icon-refresh"> Update </a> </#if> </div> <div style="float:right;"> <@s.url var="bundlesUrl" namespace="/osgi/admin" action="bundles" includeParams="none" /> <@s.url var="osgiShellUrl" namespace="/osgi/admin" action="shell" includeParams="none" /> <a href="${bundlesUrl}" class="ui-state-default ui-corner-all fg-button fg-button-icon-left"> <span class="ui-icon ui-icon-bullet"> Bundles </a> <a href="${osgiShellUrl}" class="ui-state-default ui-corner-all fg-button fg-button-icon-left"> <span class="ui-icon ui-icon-transferthick-e-w"> OSGi Shell </a> </div> </div> <@s.actionerror /> <div id="tabs" class="tabs"> <ul> <li>OSGi Metadata <li>Resgistered Services <li>Services in Use <li>Packages <li>Headers </ul> <div id="tabs-1"> <table class="properties"> <tr> <td class="name">Id |
<td>${bundle.bundleId!}
</tr>
<tr>
<td class="name">Name
<td>${bundle.symbolicName!}
</tr>
<tr>
<td class="name">Location
<td>${bundle.location!}
</tr>
<tr>
<td class="name">Status
<td>${action.getBundleState(bundle)}
</tr>
</table>
</div>
<div id="tabs-2">
<#list (bundle.registeredServices)! as service>
<table class="properties">
<#list (service.propertyKeys)! as key >
<tr>
<td class="name">${key}
<td>${action.displayProperty(service.getProperty(key))}
</tr>
</#list>
</table>
<br/>
</#list>
</div>
<div id="tabs-3">
<#list (bundle.servicesInUse)! as service>
<table class="properties">
<#list (service.propertyKeys)! as key >
<tr>
<td class="name">${key}
<td>${action.displayProperty(service.getProperty(key))!}
</tr>
</#list>
</table>
<br/>
</#list>
</div>
<div id="tabs-4">
<#list packages! as pkg>
<table class="properties">
<tr>
<td class="name">Name
<td>${pkg.name}
</tr>
<tr>
<td class="name">Actions
<td>
<ul>
<#list (pkg.actionConfigs.keySet())! as name >
<li>${name}
</#list>
</ul>
</td>
</tr>
</table>
<br/>
</#list>
</div>
<div id="tabs-5">
<table class="properties">
<#list headerKeys as header>
<tr>
<td class="name">${header}
<td>
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.