Skip to content

Instantly share code, notes, and snippets.

@detsam
Created June 30, 2011 11:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save detsam/1056039 to your computer and use it in GitHub Desktop.
Save detsam/1056039 to your computer and use it in GitHub Desktop.
@RequestMapping(method=RequestMethod.GET)
public String sendForm() {
Model model = new Model("sendForm");
model.addObject("sendingRequest", new MessageSendingRequest());
return "sendForm";
}
<form:form modelAttribute="sendingRequest" method="POST" action="/mail" >
Email: <form:input path="to" type="text" />
<br />
Subject: <form:input path="subject" type="text" name="subject" />
<br />
Text: <form:textarea path="body" rows="20" cols="100" />
<br />
Batch: <form:checkbox path="properties" value="is_batch" />
<input type="submit" value="create session />
</form:form>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment