This week's book giveaway is in the Cloud/Virtualizaton forum.
We're giving away four copies of Mesos in Action and have Roger Ignazio on-line!
See this thread for details.
Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to access other than doGet and doPost

 
Seetharaman Venkatasamy
Ranch Hand
Posts: 5575
Eclipse IDE Java Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
in myJsp.jsp:
i am using HEAD method
<form action="servlet" method="HEAD">

...so when i click submit button .. it have to go servlet's doHead method ..in my servlet class i define two methods called doGet and doHead but only doGet is getting called...what about doHead?

even if i give <form action="servlet" method="seetharaman">...

doGet is getting called
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13062
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HTML only permits GET and POST in form tags.

Are you just experimenting or do you really have a need?

Bill
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The JavaScript XMLHttpRequest object can generate requests using the other methods, as can Java client libraries like Apache HttpClient.
 
Seetharaman Venkatasamy
Ranch Hand
Posts: 5575
Eclipse IDE Java Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by William Brogden:
Are you just experimenting or do you really have a need?



experimenting .. Thanks William and ULF
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic