Page 3 of 3 FirstFirst 123
Results 21 to 23 of 23

Thread: how can i start a web flow?

  1. #21

    Default

    Quote Originally Posted by InverseFalcon View Post
    Like I said, it kinda supports it. I know there have been conflicts between certain classes/packages between SWF 2 and Spring 3 (see this thread for more).

    SWF 3 is under development, and one of its tasks is to fully integrate with Spring 3 (see the JIRA for milestone 1).

    If I'm reading it correctly, M1 release is this coming Wednesday.
    I started messing around with urlrewrite.xml (I removed the red bit):
    Code:
    <urlrewrite default-match-type="wildcard">
    	<rule>
    		<from>/</from>
    		<to>/app/welcome</to>
    	</rule>
    	<rule>
    		<from>/**</from>
    		<to>/app/$1</to>
    	</rule>
    	<outbound-rule>
    		<from>/app/**</from>
    		<to>/$1</to>
    	</outbound-rule>	
    </urlrewrite>
    ...and something happened (I got an exception, yay!) when I tried navigating to myAppName/app/registration:

    Code:
    java.lang.IllegalArgumentException: Unsupported view type /WEB-INF/flows/registration/step1 only types supported by this FlowViewResolver implementation are [.jsp] and [.jspx]
    Extremly puzzling as step1.jsp most definately is a jsp and it is placed inside WEB-INF/flows/registration

    EDIT: I got it to work! I removed the red part from <view-state id="step1" view="steg"> in my -flow.xml and suddenly my first flow state loaded. Now I'll just have no figure out how to fix the urlrewrite so that it maps /registration to /app/registration. Thanks for all the help InverseFalcon!
    Last edited by Kristofer; Feb 20th, 2010 at 08:01 AM.

  2. #22

    Default

    Hmm...

    If I remove the * from the filter-mapping in web.xml I'm able to trigger the flow by adding app/registration to the base url, but then I also have to add app as a prefix whenever I call a controller. Not exactly what I wanted. :-(

    Code:
    <filter-mapping>
        <filter-name>UrlRewriteFilter</filter-name>
        <url-pattern>/*</url-pattern>
    </filter-mapping>
    Here are the rules in urlrewrite.xml:
    Code:
    <rule>
    		<from>/</from>
    		<to>/app/welcome</to>
    	</rule>
    	<rule>
    		<from>/**</from>
    		<to>/app/$1</to>
    	</rule>
    	<rule>
    		<from>/styles/**</from>
    		<to>/app/styles/$1</to>
    	</rule>
    	
    	<outbound-rule>
    		<from>/app/**</from>
    		<to>/$1</to>
    	</outbound-rule>
    Is there some smart expression I can use to remove the need to prefix every call with /app/ ?

  3. #23
    Join Date
    Feb 2010
    Posts
    3

    Default I've submitted the problem to JIRA

    Link ... and it seems to be already fixed. I guess we will see the fix in the next STS release.

    I wonder if there is any way to get the full fix description before that?

    Best
    Alex

Posting Permissions

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