>Using a html form with
action='servlet?par1=value1
>At the same time the form does a "post", of
ocurse, with the form variables.
>Now, can this lead to some strange behaviour,
i mean, is it ok to mix
>a GET and a POST in a single
request?
Actually, you are not mixing GET and POST, not in
the HTTP-request the browser sends. If the method in the <form>-tag is
set to "POST", it will POST to the the server.
Now, can you use the name-value-pairs in the
action URL along with the name-value-pairs in the POST? Well, technically yes,
but it is doPost() that will be called by the servlet engine, and it will be
the name-value-pairs of the <form> that will be served to you (unless I
have missed something). You will have to extract the name-value-pairs
from the action URL by yourself.
Now, should you do this? In my opinion, no. It is
a bad thing to mix, unless you have compelling reasons to do so. I have
implemented the mixing strategy, and it worked, but it also gave me code that
was difficult to maintain. Put the "par1=value1" in hidden <input>-tags
instead.
/O