課程
/后端開發(fā)
/Java
/JAVA遇見(jiàn)HTML——Servlet篇
為什么,誰(shuí)說(shuō)明一下
2015-09-24
源自:JAVA遇見(jiàn)HTML——Servlet篇 1-8
正在回答
? ? public void doPost(HttpServletRequest request, HttpServletResponse response)
? ? ? ? ? ? throws ServletException, IOException {
}
? ? public void doGet(HttpServletRequest request, HttpServletResponse response)
? ? }
在myeclipse中新建一個(gè)Servlet,可以看到自動(dòng)生成的代碼中會(huì)拋出ServletException和IOException
doGet和doPost拋出的異常類型是一樣的
? ? ?* @throws ServletException if an error occurred
? ? ?* @throws IOException if an error occurred
什么為什么。。。
慕斯卡4106679
舉報(bào)
本門課程在JSP課程的基礎(chǔ)上,深入介紹Servlet的基礎(chǔ)知識(shí)
1 回答不明白為什么選A
2 回答能詳細(xì)的說(shuō)一說(shuō)從RegServlet跳轉(zhuǎn)到userinfo的路徑為什么是../userinfo嗎?
1 回答這個(gè)地方為什么上下不一致
2 回答請(qǐng)問(wèn)一下為什么我運(yùn)行userinfo.jsp會(huì)亂碼呢?
1 回答能不能具體解釋一下為什么這樣做
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號(hào)-11 京公網(wǎng)安備11010802030151號(hào)
購(gòu)課補(bǔ)貼聯(lián)系客服咨詢優(yōu)惠詳情
慕課網(wǎng)APP您的移動(dòng)學(xué)習(xí)伙伴
掃描二維碼關(guān)注慕課網(wǎng)微信公眾號(hào)
2016-03-22
? ? public void doPost(HttpServletRequest request, HttpServletResponse response)
? ? ? ? ? ? throws ServletException, IOException {
}
? ? public void doGet(HttpServletRequest request, HttpServletResponse response)
? ? ? ? ? ? throws ServletException, IOException {
? ? }
在myeclipse中新建一個(gè)Servlet,可以看到自動(dòng)生成的代碼中會(huì)拋出ServletException和IOException
doGet和doPost拋出的異常類型是一樣的
? ? ?* @throws ServletException if an error occurred
? ? ?* @throws IOException if an error occurred
2016-01-04
什么為什么。。。