課程
/后端開發(fā)
/Java
/JAVA遇見HTML——Servlet篇
為什么我獲得是空值,求解
2016-11-19
源自:JAVA遇見HTML——Servlet篇 2-1
正在回答
確實需要注意加上引號,謝謝各位提醒:
this.setUsername(this.getInitParameter("username"));
this.setPassword(this.getInitParameter("password"));
public void init() throws ServletException {
super.init();//需要加上這條語句就好啦
}
加了啊
是不是username和password沒有加雙引號啊
你是不是同時用了config的初始化?
舉報
本門課程在JSP課程的基礎(chǔ)上,深入介紹Servlet的基礎(chǔ)知識
2 回答請教!覺得isAccept肯定是空啊 根本沒獲取 求解答
2 回答這里報空求解
1 回答獲得鍵的集合有什么用?
1 回答我獲取到的都是null值,怎么回事呢?
3 回答為什么跳轉(zhuǎn)的是空白頁?
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網(wǎng)安備11010802030151號
購課補貼聯(lián)系客服咨詢優(yōu)惠詳情
慕課網(wǎng)APP您的移動學(xué)習(xí)伙伴
掃描二維碼關(guān)注慕課網(wǎng)微信公眾號
2017-09-30
確實需要注意加上引號,謝謝各位提醒:
this.setUsername(this.getInitParameter("username"));
this.setPassword(this.getInitParameter("password"));
2017-02-23
public void init() throws ServletException {
super.init();//需要加上這條語句就好啦
this.setUsername(this.getInitParameter("username"));
this.setPassword(this.getInitParameter("password"));
}
2016-11-21
加了啊
2016-11-21
public void init() throws ServletException {
this.setUsername(this.getInitParameter("username"));
this.setPassword(this.getInitParameter("password"));
是不是username和password沒有加雙引號啊
2016-11-20
你是不是同時用了config的初始化?