当我尝试编辑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
我得到了这个(和以前一样):
为什么在更改index.html文件时,不会发生任何变化?
我正在使用:
谢谢
答案 0 :(得分:2)
浏览器将缓存HTML文件,除非您明确告诉浏览器刷新(ctrl + F5)。我猜你只是加载了HTML的缓存版本。