request-map questions

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

request-map questions

Bilgin Ibryam
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