alvinalexander.com | career | drupal | java | mac | mysql | perl | scala | uml | unix  
<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>
${bundle.headers.get(header)}
</tr> </#list> </table> </div> </div> </body> </html>

Other Struts examples (source code examples)

Here is a short list of links related to this Struts viewBundle.ftl source code file:

Struts example source code file (viewBundle.ftl)

This example Struts source code file (viewBundle.ftl) is included in the DevDaily.com "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

Java - Struts tags/keywords

actions, bundles, headers, id, name, name, osgi, osgi, services, services, shell, start, status, update

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
... this post is sponsored by my books ...

#1 New Release!

FP Best Seller

 

new blog posts

 

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.