Posts

Showing posts from February, 2014

Simple Example of Servlet and JSP

Just try out this basic servlet and JSP code. Follow the snippets below. default.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>Insert title here</title> </head> <body> <form action="Login" method="post"> <table border=0> <tr><td><p>Username</p></td><td><input type="text" name="name"></td></tr> <tr><td><p>Password</p></td><td><input type="password" name="pass"></td></tr> <tr><td></td><td><input...