tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Frank W. Zammetti" <>
Subject Re: Newbee question on servlet and html - Really frustated with this problem.
Date Tue, 11 Oct 2005 03:28:13 GMT
Two questions...

(1) Does your servlet implement a doPost() method?  Since you are 
POSTing the form, you need to do that.

(2) Is there a typo in your form there?  I see:

<form method=3D"POST" action=3D"BeerSelect">

That's not proper... my guess is you want:

<form method="3DPOST" action="3DBeerSelect">


Developer Developer wrote:
> does anybody know how to fix this problem.
>   Invocation of servlet prompts a messagebox posing a questions " do you
> want to save this ?" instead of executing it and returing the output in the
> html document.
>  :(
>  On 10/10/05, Developer Developer <> wrote:
>>I wrote my first html and servlet and deployed it on tomcat 5.5. The html
>>works okay when I call it from the browser. The servlet too works okay
>>I call its doget() method by invoking it from the browser. EG:.
>>However, when i try to invoke the servlet from an html form I get a
>>box - (file download security warning) - Do you want to save this file ?
>>It has a
>>funny number suffixed to the my servlet name.
>>Not sure what is happening.
>>Here is my HTML code snippet.
>><h1 align =3D "center">Beer selecton Page </h1>
>><form method=3D"POST" action=3D"BeerSelect">
>><p>Select Beer Characteristics</p>
>>Thanks !

Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
AIM: fzammetti
Yahoo: fzammetti

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message