<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>read file jsp</title>
</head>
<body>
<%
// The "out" variable is of type javax.servlet.jsp.JspWriter.
out.println("helloweb\n");
out.println("<br \\>");
%>
<br \>
<%
java.util.Date date = new java.util.Date();
out.println( String.valueOf( date ));
out.println("<br \\>");
out.println( "Your Server Address " + request.getRemoteHost() );
%>
<%@ page import="java.util.*,java.text.*"
%>
<%@ include file="msg.txt" %>
<% /* Right click on the WebContent folder in eclipse Navigator
New -> File -> either create a new name for a file or "link to a filesystem file"
Rebuild/Run the Project
Modify the file and refresh http://localhost:8080/helloweb/index.jsp (HTML tags too!)
*/
%>
<!-- form method="POST" action="index.jsp">
user:<input type="text" name="username" size="20">
<input type="submit" value="Submit">
<%= request.getParameter("username")%>
</form -->
</body>
</html>