You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by Bilgin Ibryam <bi...@iguanait.com> on 2008/04/25 12:44:24 UTC

request-map questions

Hi all,

Almost every controller.xml file has the following request-maps:

    <request-map uri="view">
        <security https="false" auth="false"/>
        <response name="success" type="view" value="main"/>
        <response name="error" type="view" value="error"/>
    </request-map>
    
    <request-map uri="authview">
        <security https="true" auth="true"/>
        <response name="success" type="view" value="main"/>
        <response name="error" type="view" value="error"/>
    </request-map>
    
    <request-map uri="changeDelegator">
        <event type="java" path="org.ofbiz.webapp.event.CoreEvents"
invoke="changeDelegator"/>
        <response name="success" type="view" value="main"/>
        <response name="error" type="view" value="error"/>
    </request-map>

1) In which situations is used the "view" request?
It has auth="false"  (why?), which allows not authenticated users to see
the main screen.
If auth="false" is required, then response should be <response
name="success" type="request" value="main"/>, but not with type="view"

2)Is "changeDelegator" request used somewhere? I can't see where it is
used.

3) What about adding all of them to common-controller.xml?

Thanks,
Bilgin