-
Jul 24th, 2012, 08:34 AM
#21
imho it isn't hard... If you just follow the reference guide. The problem is you started with a webflow 1.0 project dumped in the webflow 2.0 jars and didn't work.
The steps on how to configure webflow (flow-executor and flow-registry) are described in chapter 10. How to do the integration with Spring MVC is described in chapter 11. The FlowHandlerMapping should also be the first mapping to be executed (order=0 as mentioned in the documentation).
You are only stating it doesn't work but what doesn't work? Please post errors/stacktraces.
Your sample includes a controller as well as a flow both do the same select the helloworld view to render.
A final suggestion is enable debug logging for org.springframeworkto see what is happening especially the mapping.
Another thing I noticed your servlet is mapped to *.html whereas it should be mapped to / or /*...
Last edited by Marten Deinum; Jul 24th, 2012 at 08:45 AM.
-
Jul 24th, 2012, 09:04 AM
#22
I am trying to do my best. once I see it work in a barebones example I will understand better.. below is the console messages I am getting now
2012-07-24 09:58:16,803 [tomcat-http--9] DEBUG org.springframework.web.servlet.DispatcherServlet - DispatcherServlet with name 'spring' processing GET request for [/MyHelloWorldFlow/helloworld]
2012-07-24 09:58:16,803 [tomcat-http--9] DEBUG org.springframework.webflow.mvc.servlet.FlowHandle rMapping - No flow mapping found for request with URI '/MyHelloWorldFlow/helloworld'
2012-07-24 09:58:16,804 [tomcat-http--9] WARN org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/MyHelloWorldFlow/helloworld] in DispatcherServlet with name 'spring'
2012-07-24 09:58:16,804 [tomcat-http--9] DEBUG org.springframework.web.servlet.DispatcherServlet - Successfully completed request
checkout the new war. I made alot of changes. please help me out.. once I see it working and can please with it I will understand.. I just nee do get page one displaying, click to page 2 and a click back to page 1.. please look at my war... you been great but just help me get this working..
https://www.dropbox.com/s/5mojqctfqk...oWorldFlow.war
-
Jul 24th, 2012, 09:21 AM
#23
I'm not planning on doing your work, I'll give you some pointers but it stops there. I do this in my spare time...
I suggest you take a look at the startup logging especially the FlowRegistry that gives you the id and with that the url under which your flows are mapped.
For more information I suggest you take a look at the webflow sample application (the hotel booking sample) which is basic flow with multiple screens. Nothing to fancy that way you get an idea. You also might want to take a look at [urlhttp://numberformat.wordpress.com/2009/11/09/spring-web-flow-2-hello-world/]this[/url] tutorial (it is for webflow 2.0 but should be almost a 1-on-1 for 2.3).
-
Jul 24th, 2012, 09:43 AM
#24
thanks.. I did not want you to do my work.. but thanks
-
Jul 24th, 2012, 11:39 AM
#25
Well I want to help you but I'm not going to change/fix your code, I will look at your configuration and setup and give the things I notice (and point you to some other resources). I think the last resource I mentioned (the tutorial) should help you to get started, also (but I'm biased on that one) I think our book also does a nice step-by-step introduction which explains all the steps. So basically if you have chapter 10 running you already have something which is more or less your hello world.
-
Jul 24th, 2012, 11:47 AM
#26
thanks.. your book did help and I think everyone should get a copy
Tags for this Thread
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