• Post Reply Bookmark Topic Watch Topic
  • New Topic

Servlet Shown only when Refreshed  RSS feed

 
Neha Sharma
Ranch Hand
Posts: 126
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I'm taking my control from an HTML page to a servlet. The servlet doesn't show when I press the submit button on the HTML page, while it shows when I just refresh the error page it had displayed. This is just a practice HTML -> so I'm not passing any parameters to the servlet. Just displayinh 'Hello'. Can anybody suggest anything.
Thanks
Neha
 
Neha Sharma
Ranch Hand
Posts: 126
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
the error it gives is HTTP 405 resource not allowed
 
Madhav Lakkapragada
Ranch Hand
Posts: 5040
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Try implementing both the doGet(...) and the
doPost(...) methods, if not already done so.
You could implement (put your stuff in) one and make
the other call the one you have implemented. Hope you
get the point when I say implement...
regds.
- satya
 
Neha Sharma
Ranch Hand
Posts: 126
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot Madhav you were right. I got it working!!
Thanks once again
Neha
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!