|
Struts example source code file (viewBundles.ftl)
The Struts viewBundles.ftl source code<html> <head> <title>OSGi Bundles <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" />"> </head> <body> <div class="menu"> <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> <table class="properties" style="clear:both; width:700px"> <thead> <tr> <th>Name <th>Status <th>Struts Bundle <th>Actions </tr> </thead> <tbody> <#list bundles as bundle> <tr> <td> <a href="bundle_${bundle.symbolicName}!view.action">${bundle.symbolicName} </td> <td>${action.getBundleState(bundle)} |
<td>${action.isStrutsEnabled(bundle)?string("yes", "no")}
<td style="width:200px">
<#if action.isAllowedAction(bundle, "start")>
<a href="bundle_${bundle.symbolicName}!start.action" class="ui-state-default ui-corner-all fg-button-small 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-small 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-small fg-button-icon-left">
<span class="ui-icon ui-icon-refresh">
Update
</a>
</#if>
</td>
</tr>
</#list>
</tbody>
</table>
</body>
</html>
... 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.