Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Linux Archive
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-27-2008, 09:48 AM
Member
 
Join Date: Aug 2008
Posts: 3
prakash_sahoo is on a distinguished road
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.....
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 08-27-2008, 09:49 AM
Member
 
Join Date: Aug 2008
Posts: 3
prakash_sahoo is on a distinguished road
please help me........
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 08-27-2008, 04:29 PM
Norm's Avatar
Senior Member
 
Join Date: Jun 2008
Location: Heredia, Costa Rica
Posts: 2,225
Norm is on a distinguished road
Quote:
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?
Bookmark Post in Technorati
Reply With Quote
  #4 (permalink)  
Old 08-27-2008, 08:23 PM
Senior Member
 
Join Date: Jun 2008
Posts: 551
masijade is on a distinguished road
Code:
public void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { throw new HTTPException(405); // 405 is the "Method Not Allowed" HTTP Status code. }
Bookmark Post in Technorati
Reply With Quote
  #5 (permalink)  
Old 08-28-2008, 08:06 AM
Member
 
Join Date: Aug 2008
Posts: 3
prakash_sahoo is on a distinguished road
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..
Bookmark Post in Technorati
Reply With Quote
  #6 (permalink)  
Old 08-28-2008, 08:54 AM
Senior Member
 
Join Date: Jun 2008
Posts: 551
masijade is on a distinguished road
As above, but for those methods.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
JBoss Application Server (IV) JavaForums Java Blogs 0 04-01-2008 03:20 PM
JBoss Application Server (III) JavaForums Java Blogs 0 04-01-2008 03:20 PM
JBoss Application Server (I) JavaForums Java Blogs 0 04-01-2008 03:20 PM
Application server dmis Enterprise JavaBeans 0 11-12-2007 03:12 PM
Application server problems bbq Advanced Java 2 07-04-2007 10:10 AM


All times are GMT +3. The time now is 09:59 AM.


VBulletin, Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org