Added some content in the web application, to test that SPDY works.

This commit is contained in:
Simone Bordet 2012-02-15 00:21:42 +01:00
parent c6f83ec1b7
commit 2ed333d3a5
5 changed files with 46 additions and 2 deletions

View File

@ -0,0 +1,3 @@
<div>
<p>This paragraph has been retrieved via an AJAX call</p>
</div>

View File

@ -0,0 +1,3 @@
<div>
<p>This paragraph is an included content via &lt;jsp:include&gt;</p>
</div>

View File

@ -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> <html>
<head> <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> </head>
<body> <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> </body>
</html> </html>

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.6 KiB

View File

@ -0,0 +1,9 @@
body
{
font-family: Verdana, sans-serif;
}
#css
{
background: #0FF;
}