首先完成DAO层的代码 对应service层代码因为要在service中接收 所以需要写入形参 然后修改jsp,首先给添加加个id写入script代码 编写资源文件 addBrand.jsp编写web层 servlet代码 处理乱码问题