servlet 获取 input

    xiaoxiao2024-11-21  4

    <form name="form" method="post" action="gg.do?method=2" onSubmit="return addDiscuss()"></form>

    填action就完事

    @WebServlet(name="gg",urlPatterns = "/gg.do") req.getParameter("discussTitle")

    getParameter获取数据

    最新回复(0)