沒有用user.username和user.password 為啥也能運行成功
<form action="loginAction.action" >
? ? 用戶名:<input type="text" name="username"/><br>
? ? 密碼:<input type="password" name="password"/><br>
? ? <input type="submit" value="登錄"/>
? ?</form>
<form action="loginAction.action" >
? ? 用戶名:<input type="text" name="username"/><br>
? ? 密碼:<input type="password" name="password"/><br>
? ? <input type="submit" value="登錄"/>
? ?</form>
2018-03-17
舉報
2018-03-18
因為你只有一個用戶啊,多個用戶的時候就要加了,不然很多用戶的時候信息就會亂了