相关疑难解决方法(0)

HTTP状态405 - 此URL URL servlet不支持HTTP方法POST

我无法让页面工作.我有我的表单方法发布和我的servlet实现doPost().但是,它一直向我显示我不支持POST方法.

我只是想做一个简单的网站,并将值插入我的MySQL数据库.

*type Status report
message HTTP method POST is not supported by this URL
description The specified HTTP method is not allowed for the requested resource (HTTP method POST is not supported by this URL).*
Run Code Online (Sandbox Code Playgroud)

静态页面:

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN"
        "http://www.wapforum.org/DTD/xhtml-mobile10.dtd" >

<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <title>XHTML Mobile Profile Document</title>
        <!-- 
            Change href="style.css" below to the file name and
            relative path or URL of your external style sheet.
          --> 
        <link …
Run Code Online (Sandbox Code Playgroud)

java servlets

22
推荐指数
2
解决办法
14万
查看次数

标签 统计

java ×1

servlets ×1