Results 1 to 3 of 3

Thread: launch flow without link (jsf-spring web flow)

  1. #1

    Default launch flow without link (jsf-spring web flow)

    Hello,

    I have been noticing that in the jsf-spring webflow examples, a flow is initiated by pushing a link. Is it possible to launch a flow by using a redirect in a jsp-page?

    For example, I love to use a index.jsp containing a redirect. We used to redirect towards a jsf page but now we wish to launch a flow immediately. Is this possible and what is the code snippet for this case?

    Thank you
    secutus

  2. #2

    Default

    Owkee got it:

    My faces servlet reacts on the following url-pattern:

    <servlet-mapping>
    <servlet-name>Faces Servlet</servlet-name>
    <url-pattern>*.jsf</url-pattern>
    </servlet-mapping>

    So I wrote in my index.jsp page the following:

    <%@ page session="false" contentType="text/html;charset=utf-8"%>
    <%
    response.sendRedirect("servlet.jsf?_flowId=myflowN ame-flow");
    %>

    Hope this helps somebody.

  3. #3
    Join Date
    Jul 2007
    Posts
    18

    Default

    Helped me! Thx!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •