This post has been moved to a more appropriate forum.
org.apache.jasper.JasperException: Unable to compile class for JSP:
An error occurred at line: 1 in the jsp file: /jsp/sayhello.jsp
Syntax error on token "pageEncoding", VariableDeclaratorId expected after this token
1: <% @page pageEncoding="ISO-8859-1" contentType="text/html; charset=ISO-8859-1" %>
Peter Johnson wrote:(...) Looking at what you did post, line 9 has a typo, if line 13 had the same typo then I can see why it would misbehave.
Mario Alcantara wrote:(...)You can read the Head First Servlets & JSP by Bryan Basham, Kathy Sierra, Bert Bates second edition book. It´s clear and easy to understand
Jayesh A Lalwani wrote:GET and POST methods are part of the HTTP protocol which is the standard protocol for all communication on the web. The protocol defines how the client sends a request to the server and how the server responds to the request. What the J2EE web container does for you is hide the nitty gritty of the HTTP protocol from you. The J2EE server (tomcat/JBoss,etc) will take care of things like listening to incoming sockets from browsers, marshalloing the request and response, etc etc,and "wraps" the request and response in the HttpServletRequest and HttpServletResponse API.
The servlet that you implement execute inside the container, and whenever the container receives a request, it will parse the request and construct an HttpServletRequest and call your servlet. You servlet will perform the business logic and put the response in HttpServletResponse. After your method returns the container will marshal your response as a HTTP response and send it back to the client.