Click here to Skip to main content
16,008,010 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am developing a web based project using eclipse in jsp. Now i need to extends one class to another.

I wrote the following code to extend a class in jsp

<%@ page extends="packagename.sample" %>
<%= sum(10,20)%>


But it is showing error as follows


An error occurred at line: 22 in the generated java file
The method getServletConfig() is undefined for the type First_jsp

An error occurred at line: 23 in the generated java file
The method getServletConfig() is undefined for the type First_jsp


Can anybody suggest how to extend one class into another using eclipse.....
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900