Hi all!

I have a form (included below) where I set method="post", but for for a
specific action URL, it  arrived in the doGet method instead of the doPost
method.

I have a seervlet-mapping that pics up _all_ resquests to the context:

<url-pattern>/</url-pattern>

The unexpected behaviour comes when there is nothing after the context in
the action URL:

http://localhost:8080/mycontext

This arrives in doGet.

Putting something after the context works:

http://localhost:8080/mycontext/stuff

This arrives in doPost.

Is this correct behaviour?  I am using Opera as browser.  Should this make a
difference?


<html>
<head>
<title>Access Denied</title>
</head>
<body>
<h1 align=center>Access denied!</h1>
<div align="center">



</div>
<!-- Begin BOX 'Login'-->
<table border="2" align="center" width="1"><tr><td align="left">
<div align="left">
<h3>Login</h3>
</div>

<div align="center" border="1" width="1">
<form name="loginForm" method="post" enctype="multipart/form-data"
action="http://localhost:8080/espresso";>
<input type="hidden" name="formObjectID" value="-4">
<input type="hidden" name="tab"    value="General">
<input type="hidden" name="defcmd" value="Login">
<table cellspacing="0" cellpadding="0">
<tr><td class="EspressoLogin">Login</td><td><input class="EspressoLogin"
type="text" name="EspressoUID" value="root" size="10"></td>
<tr><td class="EspressoLogin">Password</td><td><input class="EspressoLogin"
type="password" name="EspressoPWD" value="" size="10"
nonChange='document.loginForm.submit()'></td>
<tr><td colspan="2" align="center" nowrap><input class="EspressoLogin"
type="submit" name="cmd" value="Login">
</td>
</tr></table></form><script type="text/JavaScript">if
(document.loginForm.EspressoUID.value.length == 0)
{document.loginForm.EspressoUID.focus();} else
{document.loginForm.EspressoPWD.focus();}</script>
</div></td></tr></table><!-- End BOX -->
</body>
</html>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to