2011-05-11 82 views
2

我有映射問題在春季Webflow的2.3.0春Webflow的 - 問題與其他映射

我有錯誤,當我想EXCUTE:

http://localhost:8090/myWebApp/寄存器/其他

http://localhost:8090/myWebApp/verifyhttp://localhost:8090/myWebApp/register等作品

有人可以幫忙嗎?

<bean class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping"> 
     <property name="order"> 
      <value>1</value> 
     </property> 
     <property name="mappings"> 
      <value> 
       /register=flowController 
       /verify=flowController 
       /forgotPassword=flowController 
       /register/other=flowController  
      </value> 
     </property> 
     <property name="alwaysUseFullPath" value="true" /> 
    </bean> 

... 

<webflow:flow-registry id="flowRegistry" 
     flow-builder-services="flowBuilderServices"> 
     <webflow:flow-location id="verify" path="/WEB-INF/flows/verify.xml"></webflow:flow-location> 
     <webflow:flow-location id="register" path="/WEB-INF/flows/register.xml"></webflow:flow-location> 
     <webflow:flow-location id="changeLang" path="/WEB-INF/flows/changeLang.xml"></webflow:flow-location> 
     <webflow:flow-location id="forgotPassword" path="/WEB-INF/flows/forgotPassword.xml"></webflow:flow-location> 
     <webflow:flow-location id="register/other" path="/WEB-INF/flows/other.xml"></webflow:flow-location> 
    </webflow:flow-registry> 

我在運行時遇到錯誤:

http://localhost:8090/myWebApp/register/other

org.springframework.webflow.definition.registry.NoSuchFlowDefinitionException:無流定義 '其他' 找到

回答

2

Webflow的不寧靜 - 你正在尋找的是不可能的。例如,請參閱this topic 考慮使用彈簧mvc代替它,它具有muchmore用於構建寧靜應用程序的機會