开发者

How can I access a Velocity template from a sub-subdirectory?

开发者 https://www.devze.com 2023-01-17 18:07 出处:网络
I have a velocity template rendering VXML that is located at /billing/billingQuestionsMenu_pp.vm then, in that template, I am forwarding to:

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')" />
0

精彩评论

暂无评论...
验证码 换一张
取 消