How to determine if a parameter has been “posted” or “geted” from Java?

前端 未结 7 1682
离开以前
离开以前 2021-01-02 04:32

In ASP, there\'s request.form and request.queryString attributes, but in Java. It seems like we have only one collection, which can be accessed via

相关标签:
7条回答
  • 2021-01-02 05:12

    I did this inside my Filter so maybe someday someone can use this.

    public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse,FilterChain filterChain) throws IOException, ServletException {
        HttpServletRequest sreq = (HttpServletRequest)servletRequest;
        System.out.println(sreq.getMethod());
    }
    
    0 讨论(0)
提交回复
热议问题