Paul van Hoven schrieb:
> http://www.mypage.com/[email protected]&password=12345
I assume that you use password as an example and that you're not
passing confidential informations in a way that everybody and
his dog is able to read that.
> then on the server side the following servlet should be called:
>
> public class ConfirmationHandler extends HttpServlet {
>
> private static final long serialVersionUID = 1L;
>
>
> public void doPost( HttpServletRequest request , HttpServletResponse
> response ) {
> /*do some stuff with the parameters here*/
> }
Implementing doPost means, that you expect data being sent by
clients using the POST-method.
> Now, if i want to call this servlet manually by typing
>
> http://localhost:8888/mypage.Index/ConfirmationHandler
...leading to a GET-request (not POST).
> i get the error
... fully correct error-...
> message:
> -----------------------
> HTTP Status 405 - HTTP method GET is not supported by this URL
[...]
> What am i doing wrong here?
You're not implementing doGet, if you want to support both methods
adding
public void doGet( HttpServletRequest request , HttpServletResponse
response ) {
doPost(request, response);
}
should be enough to make you happy.
You're right, this is a question that has nothing to do with GWT,
so you might consider changing the group to something else, like
comp.lang.java.help or comp.lang.java.programmer.
Regards, Lothar
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---