大神幫忙??!
我在做驗證用戶登錄的操作。用重定向就可以執(zhí)行網(wǎng)頁操作,但用請求轉(zhuǎn)發(fā)就會報500錯誤
request.response cannot be resolved or is not a field(
請求。響應(yīng)無法解決或不是一個領(lǐng)域),這是怎么一回事??????
我在做驗證用戶登錄的操作。用重定向就可以執(zhí)行網(wǎng)頁操作,但用請求轉(zhuǎn)發(fā)就會報500錯誤
request.response cannot be resolved or is not a field(
請求。響應(yīng)無法解決或不是一個領(lǐng)域),這是怎么一回事??????
2015-10-02
舉報
2016-07-02
? ?request.getRequestDispatcher("login_success.jsp").forward(request, response);檢查一下代碼有沒有錯誤
2015-12-19
轉(zhuǎn)發(fā)代碼錯了吧,試試這個request.getRequestDispatcher("login_success.jsp").forward(request, response);