(A) One reason that your screens are not found 
is that use the wrong path encoding.
Screens use the comma (",") and actions the
dot notation to point to their right packages:

        $link.setPage("package,MyScreen.vm").setAction("package.MyAction")

If you are using the $link tool the comma's get url-encoded properly.

There was a in-depth explanation on the turbine site,
but i cant find it anymore. 

(B) I am not quiet sure if there is such thing like "the" default screen.
theres default layouts, and default screens coressponding to certain actions.
(session init, login, error handling, etc).
someone may point me to the right direction if i am wrong.

hth,

-- 
' 
 Heiko Braun <[EMAIL PROTECTED]>
 Java, Open Source
 

On Wed, 23 Jan 2002 12:50:24 -0800
"Will Glass-Husain" <[EMAIL PROTECTED]> wrote:

  | Hi,
  | 
  | Apologies for reposting this message, but I'm having trouble with what seems
  | to be a rather basic issue.
  | 
  | I can't seem to get Turbine to (A) load screen classes for directories or
  | (B) load a default screen class when a matching screen class doesn't exist.
  | 
  | Is there a place in the docs I should be reading where I missed this?
  | 
  | Thanks, WILL
  | 
  | 
  | 
  | -----Original Message-----
  | From: Will Glass-Husain [mailto:[EMAIL PROTECTED]]
  | Sent: Tuesday, January 22, 2002 5:35 PM
  | To: [EMAIL PROTECTED]
  | Subject: Finding default classes
  | 
  | 
  | Hi,
  | 
  | I'm setting up my first Turbine app (servlet using velocity) and am having
  | trouble getting the system to find my classes.  I've been poring over the
  | the documentation and have found it to be rather confusing on how and where
  | to put files. (I've been working mostly with the Velocity HowTo)
  | 
  | I've set up the TDK, and have left most settings at the default.
  | 
  | My template directory structure is
  |     templates/app/screens/page1.vm
  |     templates/app/screens/filemanager/page2.vm
  |     templates/app/screens/filemanager/page3.vm
  | 
  | I made classes (subclasses of VelocityScreen)
  |     com.forio.turbine.modules.screens.Default
  |     com.forio.turbine.modules.screens.Page1
  |     com.forio.turbine.modules.screens.filemanager.Default
  |     com.forio.turbine.modules.screens.filemanager.Page2
  | 
  |      (no Page3 intentionally)
  | 
  | My Turbine properties says:
  |     module.packages=com.forio.turbine.modules,org.apache.turbine.modules
  |     services.VelocityService.file.resource.loader.path = /templates/app
  | 
  | The results...
  |     http://localhost:8080/simadmin/servlet/simadmin/template/Page1.vm
  |             works fine
  | 
  | 
  | http://localhost:8080/simadmin/servlet/simadmin/template/filemanager/Page2.v
  | m
  | 
  | http://localhost:8080/simadmin/servlet/simadmin/template/filemanager/Page3.v
  | m
  |             both give the error:
  | 
  |             Horrible Exception: java.lang.ClassNotFoundException:
  |                     Requested Screen not found:
  |     Turbine looked in the following modules.packages path:
  |     [com.forio.turbine.modules, org.apache.turbine.modules]
  | 
  | How can I make these last two URL's work properly?  I want to (A) have a
  | default class rather than a class for every vm page, and (B) have some
  | templates in subdirectories.  What do I need to do?
  | 
  | Thanks in advance, WILL
  | 
  | 
  | 
  | --
  | To unsubscribe, e-mail:
  | <mailto:[EMAIL PROTECTED]>
  | For additional commands, e-mail:
  | <mailto:[EMAIL PROTECTED]>
  | 
  | 
  | --
  | To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
  | For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
  | 

 


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to