Steven D. Majewski pisze:
'cocoon:' is a pseudo-protocol ( as are some others like resource: &
zip: ) -- it is only
known internal to cocoon. Your browser knows how to http: or ftp: but it
doesn't know how
to cocoon: ( and AJAX is client side javascript. )
You can use the request input module to get scheme, serverName,
serverPort and contextPath
to build a base url in the sitemap and pass it as a parameter to be used
as a prefix to the URLs
in place of the 'cocoon:' .
See:
http://localhost:8080/cocoon/samples/modules/request.html
http://cocoon.apache.org/2.1/userdocs/concepts/modules.html
Hello Steven and Vaduvoiu.
Your solution is right but hey, wouldn't you like to let Cocoon do this dirty job of constructing proper url? Service-servlet framework
functionality gives you necessary tools to ask Cocoon exactly for this. See http://cocoon.zones.apache.org/daisy/cdocs-forms/g1/1351.html in
order to get idea how it works and simplifies things.
Ok, now you can be pretty sure that my e-mail is just plain advertisement for
Cocoon 2.2 features but I couldn't resist... :-)
--
Grzegorz Kossakowski
http://reflectingonthevicissitudes.wordpress.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]