Content
<head>
<meta http-equiv=”content-type” content=”text/html; charset=UTF-8″>
<title>Web Application Starter Project</title>
<link type=”text/css” rel=”stylesheet” href=”Sample.css”>
<script type=”text/javascript” language=”javascript”
src=”sample/sample.nocache.js”>
</script>
</head>
<body>
<iframe src=”javascript:”” id=”__gwt_historyFrame” tabIndex=’-1′
style=”position: absolute; width: 0; height: 0; border: 0″></iframe>
<!– RECOMMENDED if your web app will not function without JavaScript enabled –>
<noscript>
<div
style=”width: 22em; position: absolute; left: 50%; margin-left: -11em; color: red; background-color: white; border: 1px solid red; padding: 4px; font-family: sans-serif”>
Your web browser must have JavaScript enabled in order for this
application to display correctly.</div>
</noscript>
</body>
</html>
o In the /war directory is the Sample.html file.
o The key feature in this file is:
<script type=”text/javascript” language=”javascript”
src=”sample/sample.nocache.js”>
</script>
o This will load the javascript file called sample.nocache.js
o The file is located in the generated directory /war/sample
o That’s the main generated javascript which will determine the
browser code to use via javascript implementation
o Generate GWT application, Rich Internet Applications (RIA), which
are cross-browser compliant
o Other features in this html file is the css file to use and
basic generated GWT iframe and <noscript> code