Anybody who read the book "Head First
Servlet & JSP". In Chapter 3 "Hands on MVC"
they prepare the first website with
JSP & servlet. I write the exact code written in book
Upto version 2 servlet the code runs fine. But in version 3 servlet when JSP introduced
the final codes become as follows:
------BeerSelect.java---------
But during run when submitting query, it opens the link "http://localhost:8080/Beer-v2/SelectBeer.do"
but with following error
HTTP Status 500 -
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: java.lang.NoClassDefFoundError: javax/el/ELResolver
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:274)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
com.example.web.BeerSelect.doPost(BeerSelect.java:21)
javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
and so the error continues .......
Can you please tell me what is the error? I have done everything exactly written in book.
Thanks in advance.
[BSouther: Added
UBB CODE tags]
[ November 11, 2007: Message edited by: Ben Souther ]