为什么我的name获取是null
因為你傳給getParameter()方法的參數沒有獲取到值,所以name為null。你可以在web.xml中添加一個
<context-param>標簽,然後再給參數命名以及出參數的值。