Hi Stefan

I think that the JSP tag libraries are intended to be used in
conjunction with an implementation.web component implementation type,
for example,

Composite
=========

<composite xmlns="http://docs.oasis-open.org/ns/opencsa/sca/200912";
           xmlns:tuscany="http://tuscany.apache.org/xmlns/sca/1.1";
           targetNamespace="http://samples";
           name="Helloworld">

    <component name="foo">
        <implementation.web web-uri=""/>
        <reference name="service" target="HelloworldComponent"/>
    </component>

    <component name="HelloworldComponent">
        <implementation.java class="sample.HelloworldServiceImpl"/>
    </component>

</composite>


JSP
===

<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://www.osoa.org/sca/sca_jsp.tld"; prefix="sca" %>

<sca:reference name="service" type="sample.HelloworldService" />

<html>
  <body >

    <h2>Apache Tuscany Helloworld JSP Sample</h2>

    Calling HelloworldService sayHello("world") returns:

    <p>

    <%= service.sayHello("world") %>

  </body>
</html>

Here the <sca:reference name="service"  refers to the reference of the
"foo" component which then goes on to specific the name of the target
component/service. So the target name can include a "/" without
affecting the name of the reference.

I believe Ant bought up support for this in our Tomcat integration.

Regards

Simon

Reply via email to