Hi Friends,
I tried to
test usage of
servlet init parameters inside
jsp pages using the tags explained in K & B Head First JSP & Servlets book (in chapter 7).
I tried different ways but when I try to access the relevant JSP page, it gives me "servlet class not found" error. Please see the below
codes and help me to identify the what is the error I am doing here.
Please note that I have removed all the servlet init parameter related stuffs in these codes mentioned in below [wanted to create a basic working example which uses jsp-file tag].
Web.xml file
Exception I am getting when accessing this jsp using /TestParams,
For the JSP page, I tried with several jsp pages including a one which contains only html tags.
like this,
When I tried to access the JSP page directly (using
http://localhost:8080/ch7-1/TestParams.jsp), it shows the JSP page without any error.
It gives me this error when I am using url defined in servlet to access this (using
http://localhost:8080/ch7-1/TestParams).
I am using
Tomcat 7 for testing my web apps.
Thanks & Regards,
Manjula