lundi 10 juillet 2017

send sentences(string) with form jsp

This "form" part is contained in a jsp file.

The variable risposte[j] is a string of this type: "L'altopiano della meseta", domandechiuse[i] is another sentence and I inserted, between the two sentences, the character: ";;" as separator.

When I send the form data to the servlet I can not receive (using request.getParameterValues) the full value of the string. Only I receive the first word of the first sentence, when it encounters space is as if it stopped sending.

The result should be : "L'altopiano della meseta;;Testo della domanda", but i receive only : "L'altopiano"

How can I receive the whole sentence?

<span>Risposta: </span>
<label>
<textarea rows="4" cols="40" id="domande" name="domande"><%out.print(risposte[j]);%></textarea>
<input type="checkbox" name="risposta" value=<%out.print(risposte[j]+";;"+domandechiuse[i]);%>><br/>
</label>>




Aucun commentaire:

Enregistrer un commentaire