"Vjeran Marcinko" <[EMAIL PROTECTED]> writes:

>Hi.

>It seems to me that Turbine's URLs are not exactly friendly for J2EE
>declarative security, or also for any kind of URL path mappings, since these
>mappings usually require URLs that have folder structure ?

>For eg., I have admin and user pages/actions in my Turbine web app :
>http://server:8080/myapp/app/template/admin,Index.vm
>http://server:8080/myapp/app/action/admin.SomeAction
>and
>http://server:8080/myapp/app/template/user,Index.vm
>http://server:8080/myapp/app/action/user.SomeAction
>And not to mention how can URLs look like when you combine both actions and
>pages in URL.

>And I want to separate this 2 logical pieces (admin and user) of my web app
>by some maping. Usually all URL mapping (for setting Apache virtual hosts
>let's say) basically need URLs like:
>http://server:8080/myapp/app/admin/...all admin stuff
>http://server:8080/myapp/app/user/...all user stuff

>Has anybody resolved this problem somehow ?

The answer is simple: you can't do that. You will need two different
Turbine instances.

To clear this issue, you should think of

http://server:8080/myapp/app/template/admin,Index.vm
http://server:8080/myapp/app/action/admin.SomeAction

really being 

http://server:8080/myapp/app?template=admin,Index.vm
http://server:8080/myapp/app?action=admin.SomeAction

with the PATH_INFO writing just being a convenience for bookmarking
pages inside a Turbine application. Then it is clear why this does not
work.

        Regards
                Henning

-- 
Dipl.-Inf. (Univ.) Henning P. Schmiedehausen          INTERMETA GmbH
[EMAIL PROTECTED]        +49 9131 50 654 0   http://www.intermeta.de/

RedHat Certified Engineer -- Jakarta Turbine Development  -- hero for hire
   Linux, Java, perl, Solaris -- Consulting, Training, Development

"Fighting for one's political stand is an honorable action, but re-
 fusing to acknowledge that there might be weaknesses in one's
 position - in order to identify them so that they can be remedied -
 is a large enough problem with the Open Source movement that it
 deserves to be on this list of the top five problems."
                       -- Michelle Levesque, "Fundamental Issues with
                                    Open Source Software Development"

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

Reply via email to