Bear Bibeault wrote:Ulf, is right on the money. The days of dealing with JSPs as if they were Java classes, or even putting Java code in a JSP are long long passed. Let's all catch up to 2010 and forget about this type of outdated nonsense.
The code written inside the declaration tags been treated as members of the class..
So the classes defined in above JSP are treated as inner classes.
For extending a class in your Servlet... You have to implement Servlet and ServletConfig interfaces where you are not required to extend HTTPServlet, you can extend another class.
However can you give a requirement where you need to extend someother class in your servlet or jsp?
Is it not possible to do the things without extending a class?
Cheers!!!
Prabhakar