This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach 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 Murach's Java Servlets and JSP this week in the Servlets 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
Similar Threads
A simple doubt in jsp
JSP extending Servlet
page directive
What Is The Proper Way to Extend Another Class In JSP?
Please can any body explain me Extends page directive in Jsp page?