Mazza2
12-03-2004, 22:02
<FORM method="post" name='forma' action=Formazione.jsp?att=document.forma.portiere.value>
Portiere: <INPUT type="text" name='portiere'></INPUT></br>
Difensore: <INPUT type="text" name='difensore'></INPUT></br>
Attaccante: <INPUT type="text" name='attaccante'></INPUT></br></br>
<INPUT type="submit" name='sottoponi1' size=200 value='sottoponi'></INPUT>
</FORM>
//codice jsp
<%@page contentType="text/html"%>
<html>
<head><title>Spero vada</title></head>
<body>
<% String c = request.("att"); %>
Hello, <%= c %>!
</body>
</html>
ho fatto i due codici che vedete sopra x iniziare ad imparare qualcosa su jsp e javascript.-.- facendo come ho fatto pero' la jsp mi visualizza "Hello document.forma.portiere.value!" questo xke nella chiamata crede che document.forma.portiere.value sia una stringa e nn il valore del textbox portiere! come faccio a fare stampare a video dalla jsp i valori dei textbox??
Portiere: <INPUT type="text" name='portiere'></INPUT></br>
Difensore: <INPUT type="text" name='difensore'></INPUT></br>
Attaccante: <INPUT type="text" name='attaccante'></INPUT></br></br>
<INPUT type="submit" name='sottoponi1' size=200 value='sottoponi'></INPUT>
</FORM>
//codice jsp
<%@page contentType="text/html"%>
<html>
<head><title>Spero vada</title></head>
<body>
<% String c = request.("att"); %>
Hello, <%= c %>!
</body>
</html>
ho fatto i due codici che vedete sopra x iniziare ad imparare qualcosa su jsp e javascript.-.- facendo come ho fatto pero' la jsp mi visualizza "Hello document.forma.portiere.value!" questo xke nella chiamata crede che document.forma.portiere.value sia una stringa e nn il valore del textbox portiere! come faccio a fare stampare a video dalla jsp i valori dei textbox??