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