I have a form created with bootstrap and I use spring MVC. I don't use spring security here.
<form role="form">
<fieldset>
<div class="form-group">
<input class="form-control" placeholder="Username" name="name" type="text" autofocus>
</div>
<div class="form-group">
<input class="form-control" placeholder="Password" name="password" type="password">
</div>
<a href="<c:url value="welcome"/>" class="btn btn-lg btn-success btn-block">Login</a>
</fieldset>
</form>
I want to send the username and password to the welcome url. How can I do that.
Now, when I use @RequestParam("name")
annotation, it gives an
Required String parameter 'name' is not present
error.