commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marc DEXET <Marc.De...@dsi.cnrs.fr>
Subject [Jelly] Can a Tag get his own namespace ?
Date Tue, 05 Oct 2004 15:09:42 GMT
Hi.
Imagine I get a set of implementation library like 
<jelly xmlns:lib1="jelly:mylib:impl1" xmlns:lib2="jelly:mylib:impl2">
	<lib1:createSomething/>
	<lib2:createSomething/>
</jelly>

Each library implements the same interfaces.

in "createSomething" I would call a static factory method depending on each
implementation.

	public void doTag(XMLOutput output) throws
MissingAttributeException,
			JellyTagException {

		String createSomethingUri = {something};
		TagLibrary lib = (TagLibrary)
context.get(createSomethingUri);
		myObject = lib.getNewInstance();
			

	}

But I dont find the {something} method to get the right uri.
How can I do ?

Thanks.
-- 
Marc DeXeT

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message