I have a velocity template rendering VXML that is located at
/billing/billingQuestionsMenu_pp.vm
then, in that template, I am forwarding to:
<submit next="#springUrl('/billing/billingQuestions/billingQuestionsMenuOption1.vxml')" />
Now in my Controller, I have a 开发者_StackOverflowmapped method:
@RequestMapping(method = RequestMethod.GET)
public String billingQuestionsMenuOption1(ModelMap model) {
logger.debug("billingQuestionsMenuOption1");
return "/billing/billingQuestions/firstBillMessage_pp";
}
I want this method to now call
/templates/billing/billingQuestions/firstBillMessage_pp.vm
but it does not find it.
now If I change this to be:
/templates/billing/firstBillMessage_pp.vm
everything works fine.
* How can I have my templates in a sub-subdirectory? *
There is one work-around that seems to work by just appending the addition sub-directories for each node:
<submit next="#springUrl('/SUBDIRECTORY/billing/billingQuestions/billingQuestionsMenuOption1.vxml')" />
精彩评论