Added some content in the web application, to test that SPDY works.
This commit is contained in:
parent
c6f83ec1b7
commit
2ed333d3a5
|
@ -0,0 +1,3 @@
|
|||
<div>
|
||||
<p>This paragraph has been retrieved via an AJAX call</p>
|
||||
</div>
|
|
@ -0,0 +1,3 @@
|
|||
<div>
|
||||
<p>This paragraph is an included content via <jsp:include></p>
|
||||
</div>
|
|
@ -1,8 +1,37 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<title></title>
|
||||
<title>SPDY TEST PAGE</title>
|
||||
<link rel="stylesheet" href="stylesheet.css" />
|
||||
<script type="text/javascript">
|
||||
function submit()
|
||||
{
|
||||
var xhr = new XMLHttpRequest();
|
||||
xhr.open("POST", "/form.jsp", false);
|
||||
xhr.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
|
||||
xhr.send("param=1");
|
||||
window.document.getElementById("form").innerHTML = xhr.responseText;
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<h2>HELLO</h2>
|
||||
<h2>SPDY TEST PAGE</h2>
|
||||
<div>
|
||||
<p><span id="css">This paragraph should have a colored background, meaning that the CSS has been loaded.</span></p>
|
||||
</div>
|
||||
<div id="image">
|
||||
<p>Below there should be an image</p>
|
||||
<img src="${requestScope.contextPath}/logo.jpg" alt="logo" />
|
||||
</div>
|
||||
<div>
|
||||
<jsp:include page="included.jsp" />
|
||||
</div>
|
||||
<div>
|
||||
<p>Click on the button below to perform an AJAX call</p>
|
||||
<button type="button" onclick="submit()">
|
||||
PERFORM AJAX CALL
|
||||
</button>
|
||||
<p id="form"></p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 5.6 KiB |
|
@ -0,0 +1,9 @@
|
|||
body
|
||||
{
|
||||
font-family: Verdana, sans-serif;
|
||||
}
|
||||
|
||||
#css
|
||||
{
|
||||
background: #0FF;
|
||||
}
|
Loading…
Reference in New Issue