-
Nov 12th, 2007, 05:15 AM
#1
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
-
Nov 12th, 2007, 06:45 AM
#2
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.
-
Mar 14th, 2008, 09:13 AM
#3
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules