Howdy, After a few servlet experiences I set my rule of thumb about which one to use and when.
doGet - Data is going OUT ONLY (I'm not putting anything into a database or file..) - I have encapsulated several functions and i'd like them to respond to the same url but accept different arguments. - servlet might lend itself to being bookmarked or is the direct content generator(keeping it's arguments defines the content)
doPost - Data is going in (into a database or file). - or anytime I simply don't want stuff in the url
That's how I decide on which one to use... Hope that helps you identify what you need.
**<br />Still trying to code myself out of this wet paper bag...
Joined: Dec 16, 2005
is that only way to use is to call the doPost in doGet??
whati need to do, i need to send XML file to a server to get results using the doPost while at the moment i have doGet it send URL so i need to change the methodologey... i hope you understand what i need to do.
thanks for your reply and i wish you can reply to this reply