日期:2014-05-17  浏览次数:20611 次

JSP 用户名密码传值错误,帮忙看下。。~~
articleFlat.jsp
Java code

<form action="checklogin.jsp" method="post">
                        <input type="hidden" name="action" value="login" />
                        <div class="fastlg cl">
                            <div class="y pns">
                                <table cellspacing="0" cellpadding="0">
                                    <tbody>
                                        <tr>
                                            <td>
                                                <label for="username">
                                                    用户名
                                                </label>
                                            </td>
                                            <td>
                                                <input type="text" name="username" />
                                            </td>
                                            <td class="fastlg_l">
                                                <label for="ls_cookietime">
                                                    <input type="checkbox" name="cookietime" id="ls_cookietime"
                                                        class="pc" value="2592000" tabindex="903">
                                                    自动登录
                                                </label>
                                            </td>

                                        </tr>
                                        <tr>
                                            <td>
                                                <label>
                                                    <label for="password">
                                                          密码
                                                    </label>
                                                </label>
                                            </td>
                                            <td>
                                                <input type="password" name="password" />
                                            </td>
                                            <td class="fastlg_l">
                                                <button type="submit" class="pn pnc vm" tabindex="904">
                                                    <em>登录</em>
                                                </button>
                                            </td>
                                            <td class="cl">
                                                <a href="register.jsp" class="reglink xi2 xw1"><span>立即注册</span>
                                                </a>
                                            </td>
                                        </tr>
                                    </tbody>
                                </table>
                                <input type="hidden" name="quickforward" value="yes">
                                <input type="hidden" name="handlekey" value="ls">
                            </div>
                        </div>
                    </form>



checklogin.jsp
Java code

                    香港全能空间 免费试用15天,送网站加速30M