Your screen have to be in the package com.yourcompany.modules.admin and not
in the package com.yourcompany.admin.modules.
this is because Turbine concats the modules package name with the name of
the screens you ask.
Herv�
----- Original Message -----
From: Colin Chalmers <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, August 31, 2000 4:10 PM
Subject: DynamicURI / admin screens
> Hi,
>
> I'm playing around with my "own" version of an Admin screen for adding a
> user. This is based largely on the sample code. However it is more a way
> to get use to how Turbine works than anything else. If earlier I
> understand this, the earlier I may be able to contribute to the Turbine.
>
> Basically I've got a screen which consists of a Form for inputting
> data, no problem. This works fine.
> Now I'm trying to post the data to Turbine in order to process the
> form. Unfortunately something appears to be going wrong here.
>
> The command I'm triying to use is:
>
> String screen = "DefaultScreen";
>
> Form form = new Form ( new DynamicURI ( data, screen,
> TurbineResources.getString("admin.AddUser",
> "admin.AddUser"), true).toString()
> , Form.POST );
>
> Which translates to the following URL:
>
>
http://localhost:81/servlet/Turbine/screen/DefaultScreen/action/admin.AddUse
r
>
> The error code I get is
>
> Requested Action not found: admin.AddUser
> Turbine looked in the following modules.packages path:
> [com.maxware.test.modules, com.maxware.test.admin,
> org.apache.turbine.modules]
>
> The directory structure is as follows
>
> com
> ===>maxware
> ===========>test
> ==============>admin
> ===================>screens
> =========================>UserAdd
> ===================>actions
> =========================>UserAdd
>
> I'm sure I'm overlooking something simple.
>
> Colin
>
>
>
> ------------------------------------------------------------
> To subscribe: [EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
> Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
> Problems?: [EMAIL PROTECTED]
>
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?: [EMAIL PROTECTED]