• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

any exception without doget method

 
saikrishna cinux
Ranch Hand
Posts: 689
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
jp kavita
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
it will not give any exception doget() and dopost() vice versa
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65229
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What happened when you tried it?
 
Adeel Ansari
Ranch Hand
Posts: 2874
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is your servlet not extending HttpServlet or not implementing GenericServlet?
 
Rahul Bhattacharjee
Ranch Hand
Posts: 2308
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It will use the empty implementation from the super class and nothing will happen.
 
aman hindustani
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
cinux...what did you get..if you have requested..
 
saikrishna cinux
Ranch Hand
Posts: 689
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 65229
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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


 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65229
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which can be factored down into the expression:

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic