How to POST to database through URL
===

I'm writing a web application in Spring/Hibernate that handles basic voting functionality. I want to have a link to /vote/{gameId} which will add that vote to the database for that specific ID. I'm really at a loss as for how to accomplish this though. Here's what I've tried in my controller:

	@RequestMapping(value="/vote/{gameId}", method = RequestMethod.POST)
	public String addVote(@PathVariable("gameId")
	Integer gameId) {
		
		Vote vote = new Vote();
		vote.setGameId(gameId);
		
		voteService.addVote(vote);
		return "redirect:/games/wanted.html";
	}

Here's where the link shows up in a jsp:

    <c:if test="${!empty games}">
    	<table>
    		<tr>
    			<th>Game Title</th>
    			<th>Votes</th>
    			<th>&nbsp;</th>
    		</tr>
    
    		<c:forEach items="${games}" var="game">
    			<tr>
    				<td><c:out value="${game.title}"/></td>
    				<td>Placeholder</td>
    				<td><a href="vote/${game.id}">Vote!</a></td>
    			</tr>
    		</c:forEach>
    	</table>
    </c:if>

When I try this though I just get a 404 error. Any insight would be great.
