当我尝试编辑 index.html
文件时,发生了一些非常奇怪的事情。
我正在使用 Java 中的 jsp
-s 和 servlet
。
当我尝试更新其中一个字段时,例如:
<!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文件时没有发生任何变化?
我正在使用:
- Apache 7
- Xampp
谢谢
最佳答案
浏览器将缓存 HTML 文件,除非您明确告诉浏览器刷新 (ctrl + F5)。我猜您只是加载 HTML 的缓存版本。
关于java - 更改index.html拒绝在Web应用程序的实际运行中发生,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11808800/