【问题标题】:404 error on a page that I am not calling我没有调用的页面上出现 404 错误
【发布时间】:2015-03-27 16:27:27
【问题描述】:

在我的 html 页面上点击提交时出现此错误。它有一个文本框,我在其中输入一个 ID。我希望它把我重定向到一个名为Output 的jsp 页面。相反,它显示Success.html 未找到!

HTTP Status 404 - /Success.html
type Status report    
message /Success.html
description The requested resource is not available.

我的 HTML 页面有

     <!DOCTYPE html>
<html>
<head>
<style>
table {
    width: 100%;
}
</style>
<title>Bootstrap Example</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet"
    href="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
<script
    src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script
    src="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>
</head>
<body>
    <form action="Output" method="get">
        <div class="container">
            <div class="jumbotron" align="center">
                <h1>Lab Test 1 : Student Information System</h1>
                <table>
                    <tr>
                        <td><h2>Student Name: Divya Rao &nbsp; &nbsp; &nbsp;
                                &nbsp; &nbsp; &nbsp;</h2></td>
                        <td>
                            <h2>Roll No: MT2014032</h2>
                        </td>

                    </tr>
                </table>
            </div>
            <h1>Output Screen</h1>
            <table>
                <tr>
                    <td><h4>Student Id</h4></td>
                    <td><h4>Marks</h4></td>
                    <td><h4>Picture</h4></td>
                </tr>
                <tr>
                    <td><input type="text" name="id"></td>
                </tr>
                <tr>
                    <td>&nbsp;</td>
                </tr>
                <tr>
                    <td><input type="button" class="btn btn-success"        
                    ></td>
                </tr>
            </table>

        </div>
    </form>
</body>
</html>

我在整个工作区中搜索“成功”,但似乎没有在任何地方调用它。怎么了?

【问题讨论】:

  • 你能把完整的回复放上来吗?
  • @vernak2539 我刚刚编辑了我的帖子。但我得到的错误是。
  • 尝试将输入类型更改为“提交”,然后将操作更改为“/输出”,看看是否得到不同的结果。您可能还需要对操作进行扩展,具体取决于您使用的语言
  • @vernak2539 我试过你说的,没用。我有一个提交很好的输入表单。我不知道是什么在请求“Success.html”页面。它不存在!
  • 如果您尝试直接导航到“输出”页面会发生什么?我怀疑这会将您重定向到 /Success.html

标签: html apache redirect http-status-code-404


【解决方案1】:

我整晚都在尝试修复这个错误。我没有它重定向到的页面,也没有引用它。所以很累。 系统重启修复了它。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2017-01-23
    • 1970-01-01
    • 2023-03-11
    • 2011-02-04
    • 1970-01-01
    • 2019-09-10
    • 2013-08-04
    • 1970-01-01
    相关资源
    最近更新 更多