This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
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 Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "page directive" Watch "page directive" New topic

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

Thanks for reply.

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

Thanks in advance.
I agree. Here's the link:
subject: page directive
It's not a secret anymore!