• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Servlet Forward

 
eelangovan
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hai Friends,
Please help me in this regard:
I want to redirect to a servlet's POST method, but not GET methd( which is by default).
 
Madhav Lakkapragada
Ranch Hand
Posts: 5040
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

First I would like to restate the naming policy and that you have not foll. it. Pl. do follow, so it helps us.
Having said that, I would sugget that you perform a search
operations with the key word servlet forward. I found
abt 37 matches. I have reviewed abt five of them and found
some interesting stuff which would help you. Obviously, I
couldn't review all of them. Don't get me wrong,
but I was not sure how deep you wanted to go.
Regds.
- satya
 
maha anna
Ranch Hand
Posts: 1467
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Unless POST and GET operations are different in Servlet's doGet and doPost methods, we can make doGet(..) call doPost(..) instead. Inside doGet(..) make a call to doPost(..)
regds
maha anna
 
Sagar Surana
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
U can do one thing run the servlet using html file
write code in html file to invoke servlet
it will use the post method
------------------
Sagar Surana
optimist
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic