恢复会议上,我希望用户在点击恢复按钮被带到最后访问的网页。我将ID传给控制器。与上次访问
<input type="button" value="Resume" onclick="window.location.href='/wizard/submission/resume/${submission.id}'" />
控制器逻辑如下
def resume = {
def id = params.id
def test = (getDomainObjectType() as Class).get(id)
session[getSessionObjectName()] = test;
LOG.debug("resuming ${test}")
redirect(action: "wizard");
}
和向导逻辑如下:(其只要现在)
nextView = (int) postProcessedValues.next;
if (nextView == null) {
redirect(action: "index");
//nextView = 0; //question is what to do here. Maybe redirect back to the index page instead...
}
帮我在这里实现逻辑。
请让我知道,如果你需要我的其他代码... – Techie 2011-12-20 15:44:51