anchor.diff:  <%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %>
   
   <form:form cssClass="form-horizontal" commandName="chatroom">
  +
   	<c:if test="${param.success}">
   		<div class="form-group">
   			<div class="col-sm-6">
  
positive.code: 			</div>
  		</div>
  	</c:if>
  
  	<form:errors path="name" />
  	<div class="form-group">
  
negative.code: 	</div>
  	<div class="form-group">
  		<div class="col-sm-5">
  			<input type="submit" class="btn btn-primary btnSubmit" />
  		</div>
  	</div>
  </form:form>
  
  <script type="text/javascript">
  	$(document).ready(function() {
  		$(".btnSubmit").click(function(e) {
  			if(! $("#name").val()) {
  				e.preventDefault();
  				$(".errorMsg").show();
  			}
  		});
  	});
  </script>
  
  
  <jsp:include page="layout/footer.jsp" />