I am seeing a wierd problm when i tried to deploy the servlet. I am able to see the form.html with out any problm ... but when i click the Submit, i am getting a FileDownload box which says that
"You have chosen to download a file from this location
SelectBeer.do from localhost"
and then it gives me an option to either "open the file from the current location" or "save it to the disk". When I have chose the former option it gave me another dialog with a list of applications that can be used to open the file ... I have selected Internet Explorer and then it brought up a page which displayed the following
Beer Selection Advice <br> <br>Got Beer Color dark
I am not sure why this is happenning ... I am new to all this web stuff ... I really appreciate it much if some can help me understand thsi problem ...
Thanks and Regards Kavya
Peter Du
Greenhorn
Joined: Oct 29, 2004
Posts: 14
posted
0
Can you show the contents of your wen.xml, and you can try the following web.xml :
I had mistyped the arg for setContentType method in my doPost metohd. Instead of "text/html", i had "type/html". Once i changed that, things started working great ...