Ciao a tutti,
ho un form in una pagina jsp dalla quale mi piacerebbe inviare un bean al servlet invece di lasciare al servlet stesso la raccolta dei dati dalla request.
Qualcuno mi può illustrare sul codice quì sottostante quello che devo scrivere.
Grazie
Codice PHP:
<form action="<%= request.getContextPath() %>/account?task=new" method="post" onsubmit="return checkForm(this);">
<fieldset>
<legend></legend>
[b]marked fields are obbligatory[/b]
<label for="companyName">Company name or name and surname</label>
<input id="companyName" name="companyName" type="text" />
[img]<%= request.getContextPath() %>/images/application/required.jpg[/img]
<label for="firstAddress">First address</label>
<input id="firstAddress" name="firstAddress" type="text" />
<input class="submit" type="submit" value="Submit" />
</fieldset>
</form>