Re: Classpath leading slash question (codebehind)

2008-07-01 Thread Jeromy Evans
Musachy Barroso wrote: I think that if the resource name starts with a "/", then the class loader will use it as an absolute path (taking the web app root as root). If the resource name is relative, the classloader tries all the entries in the classpath(including jars), as roots, using the resour

Re: [OT] Re: environment awareness (project stage in JSF)

2008-07-01 Thread Ralf Fischer
Hi List, what a unusually excessive thread for this list! Most times I agree with Al. I'll just add up my $0.02 to participate in this rally ... * The code itself should IMO know as little as possible about the environment it's running in. If I see stuff like "if ( testMode ) { ", which for me s