btw. not your ftl file is responsible to redirect you to the page after
sending f.ex. a form...this does the controller.xml

there you find things like:

success, error and so on...so after a request is f.ex. successfully you can
define the view mapping after it.

in the controller.xml you see sth. like:

/  <request-map uri="login">
        <security https="true" auth="false"/>
        <event type="java" path="org.ofbiz.securityext.login.LoginEvents"
invoke="storeLogin"/>
        <response name="success" type="view" value="main"/>
        <response name="requirePasswordChange" type="view"
value="requirePasswordChange"/>
        <response name="error" type="view" value="login"/>
    </request-map>/

you see, that there is an event type. This is worked through, and the login
is stored in a session (I believe). If this was successfully, the java
method, or service returns a "success", so you will get the view with the
value "main" in this case. On an error you will get the view of the login
again...this can happen, if f.ex. the session is invalid, the user typed in
wrong login data and so on...

the view mapping is referring to the views, which are defined at the end of
the file (controller.xml). there is then defined another xml file to get the
content of the view /next page...

hope that helps you to understand the processes


--
View this message in context: 
http://ofbiz.135035.n4.nabble.com/Ofbiz-url-tp4616949p4618010.html
Sent from the OFBiz - User mailing list archive at Nabble.com.

Reply via email to