Results 1 to 6 of 6
  1. #1
    prakash_sahoo is offline Member
    Join Date
    Aug 2008
    Posts
    3
    Rep Power
    0

    Default Disallow doPOST method in Sun Application server

    how to disallow doPOST method in Sun Application server. Only allow doGET and doPOST method in sun application server.....

  2. #2
    prakash_sahoo is offline Member
    Join Date
    Aug 2008
    Posts
    3
    Rep Power
    0

    Default

    please help me........

  3. #3
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,327
    Rep Power
    25

    Default

    disallow doPOST method in Sun Application server. Only allow doGET and doPOST
    Funny question. You seem to contradict yourself. disallow and allow.
    Is this a java programming problem? Or a server configuration problem?

  4. #4
    masijade is offline Senior Member
    Join Date
    Jun 2008
    Posts
    2,571
    Rep Power
    9

    Default

    Java Code:
    public void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        throw new HTTPException(405);  // 405 is the "Method Not Allowed" HTTP Status code.
    }

  5. #5
    prakash_sahoo is offline Member
    Join Date
    Aug 2008
    Posts
    3
    Rep Power
    0

    Default

    Quote Originally Posted by prakash_sahoo View Post
    how to disallow doPUT method in Sun Application server. Only allow doGET and doPOST method in sun application server.....
    Sorry for mistake, actually disallow PUT, TRACE, HEAD DELETE on sun application server..

  6. #6
    masijade is offline Senior Member
    Join Date
    Jun 2008
    Posts
    2,571
    Rep Power
    9

Similar Threads

  1. Application server problems
    By bbq in forum Advanced Java
    Replies: 3
    Last Post: 12-31-2010, 02:48 PM
  2. Application server
    By dmis in forum Enterprise JavaBeans (EJB)
    Replies: 0
    Last Post: 11-12-2007, 01:12 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •