Hi,
im trying to use JSP Pages with my application now. I got this running with the
taglib for components with one service with no problems yet.
Though im wondering how i can do this if a component offers two or more
services.
Consider this scenario:
- a base composite which includes a component that offers 2 services:
<composite name="Solution">
<component name="ShopComposite">
...
</component>
ShopComposite exposes 2 services:
<service name="CatalogService" promote="CatalogComponent/CatalogService"/>
<service name="ShoppingCartService"
promote="ShoppingCartComponent/ShoppingCartService"/>
Now take a look at the JSP-File:
<sca:reference name="ShopComposite/ShoppingCartService"
type="shop.cart.ShoopingCartService"/>
<html>
<head>
<title>SCA Shop</title>
</head>
<body>
<img src="header.png" alt="Shop Header">
<!-- Liste zum auswählen, Button Zahlungsart, Button pay, ergebis mit
verfügbarkeit -->
<%= ???.invokeSomething() %> // How can i use the reference here???
</body>
</html>
If i reference the service correctly it has to be
ShopComposite/ShoppingCartService.
But how can i use this reference name then?
ShopComposite/ShoppingCartService.xxx() should probably not work as this isnt
allowed as var name in jsp?!
If it just had one service ShoppingCartService i could have just referenced the
Component ShopComposite
and invoke some Method through ShopComposite.xxx() as i did successfully.
Any suggestions?
Regards
Stefan
___________________________________________________________
WEB.DE DSL: Internet, Telefon und Entertainment für nur 19,99 EUR/mtl.!
http://produkte.web.de/go/02/