-1
<html>
<head>
<title>Registration form </title>
<script>
<form name="register" onsubmit="return validateForm()" action='register.jsp' method='get'>
<table>
<tr><td><font face="Times New Roaman">First Name*:</font></td><td><input type='text' name='fname' maxlength='30'></td></tr>
<tr><td><font face="Times New Roaman">Middle Name:</font></td><td><input type='text' name='mname' maxlength='30'></td></tr>
<tr><td><font face="Times New Roaman">Last Name*:</font></td><td><input type='text' name='lname' maxlength='30'></td></tr>
<tr><td><font face="Times New Roaman">Date of birth*</font></td>
<td><select name='date'>
<option value='0'>DD</option>
</select>
<select name='month'>
<option value='0'>MM</option>
</select>
<select name='year'>
<option value='0'>YYYY</option>
</select>
</td></tr>
<tr><td><font face="Times New Roaman">Mobile Number*</font></td><td><input type='text' name='mob' value='10 digit' onblur="if (this.value == '') {this.value = '10 digit';}"
onfocus="if (this.value == '10 digit') {this.value = '';}" maxlength='10'></td></tr>
<tr><td><font face="Times New Roaman">Email Address*</font></td><td><input type='text' name='email' value='[email protected]' onblur="if (this.value == '') {this.value = '[email protected]';}"
onfocus="if (this.value == '[email protected]') {this.value = '';}"></td></tr>
<tr><td><font face="Times New Roman">Address*</font></td><td><textarea rows="4" name="address"></textarea></td></tr>
<tr><td></td><td><input type='submit' value='submit'><input type='reset' value='reset'></td></tr>
</table>
</form>
</body>
</html>
不認爲這個代碼,當我進入jsp頁面被呼叫被叫register.jsp的是,代碼另一頁下面的值如何,我可以PSS它給出其中使用休眠程序時,我使用上述代碼它顯示比這個我們如何傳遞值到休眠如何從JSP值傳遞給hibernite