Actually, I was wondering about this posting, too. IMHO, opening a file with normal java.io in a "virtual file system" such as an unpacked war environment "should work", else it is IMHO not an J2EE compliant container. But as I deploy mainly on tomcat, I haven't actually tested.
Regards Henning On Wed, 2003-06-18 at 16:26, Geir Magnusson Jr. wrote: > Doesn't the webapp loader deal with this?? You can't know when you are > expanded or not, so having the system modify it's behavior is > impossible, AFAIK. > > geir > > On Wednesday, June 18, 2003, at 08:22 AM, Konstantin Priblouda wrote: > > > > > --- "Henning P. Schmiedehausen" <[EMAIL PROTECTED]> > > wrote: > >> Konstantin Priblouda <[EMAIL PROTECTED]> writes: > >> > >>> Hi all, > >> > >>> I noticed that velocity does not provide convenient > >>> way of loading templates packed in .war files. > >> > >> There is the jar loader, which I use all the time. > >> You roll up your > >> templates in a jar which you can then put into a > >> .war > > > > This is not very convenient. JSP have one advantage > > over velocity - it's damn convenient. > > They work from expanded war the same ways as from > > packed, just throw them in the directory and you are > > fine. > > > > I like to have resource loader to have the same > > flexibility. like: > > if it's a expanded behave like file resource loader, > > if not like classpath one. > > > > And producing yet another jar to be packed is not very > > convenient if you have maven build environment. > > ( and complicates ant setup ) > > > > regards, > > > > ===== > > ----[ Konstantin Pribluda ( ko5tik ) ]---------------- > > Zu Verstärkung meines Teams suche ich ab Sofort einen > > Softwareentwickler[In] für die Festanstellung. > > Arbeitsort: Mainz > > Skills: Programieren, Kentnisse in OpenSource-Bereich > > ----[ http://www.pribluda.de ]------------------------ > > > > __________________________________ > > Do you Yahoo!? > > SBC Yahoo! DSL - Now only $29.95 per month! > > http://sbc.yahoo.com > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > -- Dipl.-Inf. (Univ.) Henning P. Schmiedehausen -- Geschaeftsfuehrer INTERMETA - Gesellschaft fuer Mehrwertdienste mbH [EMAIL PROTECTED] Am Schwabachgrund 22 Fon.: 09131 / 50654-0 [EMAIL PROTECTED] D-91054 Buckenhof Fax.: 09131 / 50654-20 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]