There is no requirement that there be a matching screen class or action class to simply display a vm so it may not generate an error log entry.
Check to see if you have setup your packages.
For example if your class directory structure was WEB-INF/classes/com/mycompany/admin/screens, or WEB-INF/classes/com/mycompany/admin/actions then you might setup the following within TurbineResources.properties.
module.packages=com.mycompany.admin
If you have setup your packages then check to see if you have another add.java class for the same app within another sub-directory. If you do it may be calling that one instead.
Even though it is looking for ./screens/admin/add.vm the class loader will use the first add.class that it comes across within the packages that you have setup.
Does add.java extend VelocityScreen?
----- Original Message ----- From: "Marty Phee" <[EMAIL PROTECTED]>
To: "Turbine Users List" <[EMAIL PROTECTED]>
Sent: Thursday, October 07, 2004 7:30 AM
Subject: Re: Problem with Screen Classes in Subdirectories
What was in the log file? Did velocity say it couldn't find the screen or was
there an exception because it couldnt't find the class?
On Thursday 07 October 2004 03:44 am, clinton lopez wrote:In my case, it seems that the screen classes corresponding to the velocity
templates are not being called when they are in subdirectories. They work
fine when they are in their root directories.
For example:
in templates/.../screens/: index.vm admin/ add.vm
in classes/.../screens/: index.java admin/ add.java
index.java was executed before index.vm but add.java was not when add.vm
was called (through $link.setPage("admin,add.vm")) I assumed it should work
this way. The layout and navigation parts worked fine.
Is there anything I missed?
Thanks!
--------------------------------- Do you Yahoo!? vote.yahoo.com - Register online to vote today!
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
