2010-09-22 84 views
0

我有位於如何從子子目錄訪問Velocity模板?

/billing/billingQuestionsMenu_pp.vm 

那麼Velocity模板呈現VXML,在模板中,我轉發到:

<submit next="#springUrl('/billing/billingQuestions/billingQuestionsMenuOption1.vxml')" /> 

現在在我的控制,我有一個映射方法:

@RequestMapping(method = RequestMethod.GET) 
public String billingQuestionsMenuOption1(ModelMap model) { 
    logger.debug("billingQuestionsMenuOption1");  
    return "/billing/billingQuestions/firstBillMessage_pp"; 
} 

我想這個方法現在稱之爲

/templates/billing/billingQuestions/firstBillMessage_pp.vm 

但它沒有找到它。

現在如果我改變了是:

/templates/billing/firstBillMessage_pp.vm 

一切工作正常。

*我如何在子子目錄中創建我的模板? *

+0

怎麼你'ViewResolver'配置是怎樣的? – hleinone 2010-09-23 08:35:36

+0

「/> < property name =「viewClass」value =「com.comcast.ivr.agent.web.velocity.VelocityToolsView」/> 2010-09-23 11:59:56

回答

0

有一個工作周圍,似乎僅通過追加另外子目錄每個節點的工作:

<submit next="#springUrl('/SUBDIRECTORY/billing/billingQuestions/billingQuestionsMenuOption1.vxml')" />