[Yanel-dev] Proposal to introduce the webapp protocol

Michael Wechner michael.wechner at wyona.com
Mon Aug 3 21:46:16 CEST 2009


Hi

I have noticed that there is a protocol

yanelhtdocs:/foo.bar

but it's not clear to me where this has been implemented (I can only 
find rtyanelhtdocs)?

Any pointers are welcome.

Thanks

Michael

Michael Wechner schrieb:
> Hi
>
> Currently various global file locations are hard-coded (like for 
> example the login-screen XSLT)
>
> src/webapp/src/java/org/wyona/yanel/servlet/security/impl/DefaultWebAuthenticatorImpl.java 
>
>
> File xsltLoginScreen = 
> org.wyona.commons.io.FileUtil.file(realmDir.getAbsolutePath(), "src" + 
> File.separator + "webapp" + File.separator + xsltLoginScreenDefault);
>                if (!xsltLoginScreen.isFile()) xsltLoginScreen = 
> org.wyona.commons.io.FileUtil.file(servletContextRealPath, 
> xsltLoginScreenDefault);
>
> I would suggest that we introduce a "webapp" protocol, whoch would 
> then allow something like
>
> href="webapp:/xslt/login-screen.xsl"
>
> (which would be resolved to 
> ..../local/apache-tomcat-5.5.20/webapps/yanel/xslt/login-screen.xsl)
>
>
> WDYT?
>
> Cheers
>
> Michi



More information about the Yanel-development mailing list