Controller
@RequestMapping(value = "/image/{imageId}/{imageTitle}/comments", method =
RequestMethod.POST)
public String newComment(
@PathVariable("imageId") Integer imageId,
@PathVariable("imageTitle") String title,
@RequestParam("comments") String text, HttpSession session)
Html
th:action="'/image/'+ ${
image.id} + '/' + ${image.title} + '/comments'">