cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Gerzabek" <michael.gerza...@at.efp.cc>
Subject Howto: call an internal pipeline from a component
Date Tue, 12 Feb 2002 15:31:37 GMT

Hello!

I need to call an internal pipeline from a component that's working
in the background.
try {
  String source = "cocoon://i-post-XRFC/" + conf.getAttribute("name") + "/"
+ conf.getAttribute("type") + "/" + id;
  URLFactory urlFactory = (URLFactory)manager.lookup(URLFactory.ROLE);
  URL url = this.urlFactory.getURL(source);
  ...

and then I get
java.net.MalformedURLException: unknown protocol: cocoon
	at java.net.URL.<init>(URL.java:480)
	at java.net.URL.<init>(URL.java:376)
	at java.net.URL.<init>(URL.java:330)
	at
org.apache.cocoon.components.url.URLFactoryImpl.getURL(URLFactoryImpl.java:6
6)

Is there a way to do so?

- Michael


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message