I have a form with few filed. Once i submit the form the data is stored in database and i will return to the same page. Now, How to clear the fields in the form in jsp??
<form class="form-horizontal col-lg-8" action="addDonationCamp" method="GET">
<div class="form-group">
<label for="location" class="col-sm-3 control-label">Location</label>
<div class="col-sm-8">
<input type="text" name="location" class="form-control" id="location" placeholder="Location" value="${fn:escapeXml(param.location)}">
<label class="errorColor">${message.location}</label>
</div>
</div>
<div class="form-group">
<div class="form-group">
<label for="description" class="col-sm-3 control-label">Description</label>
<div class="col-sm-8">
<div class="form-group">
<div class="col-sm-offset-5 col-sm-10">
<button type="submit" class="btn btn-default">Submit</button>
</div>
</div>
</form>