hi folks,
i have the following code:
when i execute this
servlet, why the doGet()method is always invoked even though this method is not explicitly called? I know when a form is submitted, a method attribute value is set either GET or POST that makes either doGet() or doPost() being called accordingly. but when GET or POST is not explicitly called like i execute a above servlet, what makes the doGet() method of the servlet invoked and why not doPost()?
please clarify me this mechanism.
And Also, why does setContentType("text/html") have to be present? can't we do without it? I tried running above servlet without it, bud didn't see any problem?When does it cause a problem without it?
thanks.
[ September 09, 2003: Message edited by: Namaste Sathi ]
[ September 13, 2003: Message edited by: Jim Yingst ]