Here are the controller methods;
protected Map referenceData(HttpServletR
Map formData = new HashMap();
formData.put("agreement", "1");
return formData;
}
protected ModelAndView onSubmit(Object command, BindException errors) throws Exception {
SubscriptionForm subscriptionForm = (SubscriptionForm) command;
String agreement = subscriptionForm.getAgreem
Map model = new HashMap();
model.put("agreement", agreement);
return new ModelAndView(getSuccessVie
}
Main Topics
Browse All Topics





by: stephaneeybertPosted on 2008-04-08 at 02:55:23ID: 21303708
Here is the velocity template:
ription.do ")' method='post'>
subscripti on.conditi ons.messag e") <a href="#springUrl("/html/co nditions.h tml")" title="" target="_blank">#springMes sage("subs cription.c onditions. click")</a >
'subscript ion.agreem ent.messag e')</label >"}) boxes('sub scriptionF orm.agreem ent' $agreementOptions '' 'tabindex="1"')
scription. continue") ' />
<form action='#springUrl("/subsc
<br/><br/>#springMessage("
#set( $agreementOptions = {"1" : "<label for='name'>#springMessage(
<br/><br/>#springFormCheck
<br/><br/><input type='submit' value='#springMessage("sub
</form>