更改index.html拒绝在Web应用程序的实际运行中发生

时间:2012-08-04 12:47:22

标签: java html jsp web-applications servlets

当我尝试编辑index.html文件时,会发生一些非常奇怪的事情。

我正在使用Java中的jsp - 和servlets

当我尝试更新其中一个字段时,例如:

<!DOCTYPE html>
<html>
<head><title>Bank application</title>
<link rel="stylesheet"
      href="./css/styles.css"
      type="text/css"/>
</head>
<body>
<table class="title">
  <tr><th>Bank application</th></tr>
</table>

<br/>
<fieldset>
  <legend>Bank Account Balance</legend>
  <form action="show-balance">
    Customer ID (id001, idffffffffffffffffdsafds002, id003):
    <input type="text" name="cusdddddddddddddddddddddddddddtomerId"/><br/>
    <input type="submit" value="Sddddddddddddddddddddddddddddddddddddddhow Balance"/>
  </form>
</fieldset>

<br/>

// from here, the rest is the same as the above 

我得到了这个(和以前一样):

enter image description here

为什么在更改index.html文件时,不会发生任何变化?

我正在使用:

  1. Apache 7
  2. XAMPP
  3. 谢谢

1 个答案:

答案 0 :(得分:2)

浏览器将缓存HTML文件,除非您明确告诉浏览器刷新(ctrl + F5)。我猜你只是加载了HTML的缓存版本。