john pfeiffer
  • Home
  • Categories
  • Tags
  • Archives

jsp helloweb.jsp

<%@ 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>

  • « drupal migrate backup export download import to different web hosting
  • Iptables redirect 8080 to port 80 »

Published

Jan 10, 2011

Category

java-servlet

~121 words

Tags

  • helloweb.jsp 1
  • java-servlet 61
  • jsp 5