Meaningless Drivel is fun!*
The moose likes JSP and the fly likes page directive Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "page directive" Watch "page directive" New topic
Author

page directive

lakshmi v.samy
Ranch Hand

Joined: Feb 02, 2006
Posts: 30
Hi friends,

we are having some page directive attributes(language,info,import,buffer,extends...)

if we are creating any jsp page,it will be translated to servlet by jspContainer,so translated servlet will extend one class(I think JspBase,but I am not sure).If I am using page directive in my jsp page like

<%@page extends="myclass"%>

( myclass is my own class)
my doubt is
Translated servlet is already extending some class,again I am trying to extend one more "myclass",whether it will give error,otherwise we have to use another way.

please help me.
Kj Reddy
Ranch Hand

Joined: Sep 20, 2003
Posts: 1704
Translated servlet will extend your "myclass"
lakshmi v.samy
Ranch Hand

Joined: Feb 02, 2006
Posts: 30
Hi,

Thanks for reply.

If translated servlet is extending "myclass",whether we can use implicit objects in my jsp page.

Thanks in advance.
 
Consider Paul's rocket mass heater.
 
subject: page directive