Thank you very much On Tue, May 8, 2012 at 10:06 PM, Robert G. [via OFBiz] < [email protected]> wrote:
> 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 > > > ------------------------------ > If you reply to this email, your message will be added to the discussion > below: > http://ofbiz.135035.n4.nabble.com/Ofbiz-url-tp4616949p4618010.html > To unsubscribe from Ofbiz url, click > here<http://ofbiz.135035.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4616949&code=bmlsZXNoX3BhdGlsQHR1ZGlwLmNvbXw0NjE2OTQ5fDM3OTM4ODgxNQ==> > . > NAML<http://ofbiz.135035.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml> > -- View this message in context: http://ofbiz.135035.n4.nabble.com/Ofbiz-url-tp4616949p4619742.html Sent from the OFBiz - User mailing list archive at Nabble.com.
