wood burning stoves 2.0*
The moose likes Servlets and the fly likes any exception without doget method Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "any exception without doget method" Watch "any exception without doget method" New topic
Author

any exception without doget method

saikrishna cinux
Ranch Hand

Joined: Apr 16, 2005
Posts: 689
i am using get as as action in form tag in html form and i am submitting it to one servlet
where the servlet has dopost method only(there is no doget method)

now will it calls the dopost method or it will give any runtime exception?


A = HARDWORK B = LUCK/FATE If C=(A+B) then C=SUCCESSFUL IN LIFE else C=FAILURE IN LIFE
SCJP 1.4
jp kavita
Ranch Hand

Joined: Nov 16, 2006
Posts: 39
it will not give any exception doget() and dopost() vice versa
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61095
    
  66

What happened when you tried it?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Adeel Ansari
Ranch Hand

Joined: Aug 15, 2004
Posts: 2874
Is your servlet not extending HttpServlet or not implementing GenericServlet?
Rahul Bhattacharjee
Ranch Hand

Joined: Nov 29, 2005
Posts: 2308
It will use the empty implementation from the super class and nothing will happen.


Rahul Bhattacharjee
LinkedIn - Blog
aman hindustani
Ranch Hand

Joined: Jun 15, 2006
Posts: 57
cinux...what did you get..if you have requested..
saikrishna cinux
Ranch Hand

Joined: Apr 16, 2005
Posts: 689
Originally posted by aman hindustani:
cinux...what did you get..if you have requested..


why dont you try it ? :roll:

You know that i am a Lazy person
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61095
    
  66

Originally posted by saikrishna cinux:


why dont you try it ? :roll:

You know that i am a Lazy person


That will get you nowhere in these forums.

The people who answer questions here are volunteers who take time out of their own schedules to help out others. They have better things to do than do your work for you because you are lazy.
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Originally posted by saikrishna cinux:


why dont you try it ? :roll:

You know that i am a Lazy person



A = HARDWORK B = LUCK/FAITH
If C=(A+B)
then C=SUCCESSFUL IN LIFE
else C=FAILURE IN LIFE




Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61095
    
  66

Which can be factored down into the expression:

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: any exception without doget method