Do you access it using the comma notation like "email,main.vm" or do you try using '/'?
sv On Wed, 11 Feb 2004, Gerry Duprey wrote: > Howdy, > > As our application gets a bit bigger, we are starting to use a number of > subdirectories in the modules/screens directory. However, whenever I put a > screen in a subdirectory, an attempt to access that screen throughs an > exception in the PageLoader class. > > For example, if I have a screen called > > /usr/local/templates/modules/screens/email/main.vm > > I'll get an exception like this > > Requested Page not found: Default > Turbine looked in the following modules.packages path: > [SOpen.common.turbine.modules, org.apache.turbine.modules] > > at org.apache.turbine.modules.PageLoader.getInstance(PageLoader.java:207) > at org.apache.turbine.modules.PageLoader.exec(PageLoader.java:136) > at org.apache.turbine.Turbine.doGet(Turbine.java:796) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) > ... etc > > If I move "main.vm" up a level (into .../modules/screens), things > work fine. Right now, there is no code behind the main.vm template > (everything is being accessed via pull services). > > It's almost seems like I have to create a Default page loader if I want to use > subdirectories? But that doesn't seem right. As I understand it, Turbine > will look in SOpen.common.turbine.modules.screens.email.main, then look for > the default, etc, etc and eventually drop back to the normal default page > (VelocityPage). > > Can someone shed any light on this? If I keep all the heirarchies "flat", > everything works (but things get messy). I'm hoping I'm just missing > something really obvious :-) > > Gerry > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
