Two Laptop Bag*
The moose likes JSP and the fly likes jsp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "jsp" Watch "jsp" New topic


ram shyam ravi

Joined: Sep 20, 2002
Posts: 14
I want a sample example as how to use "extend" attribute of <%@page %> directive..And also pls explain me the scenario of extending a thread class in the extend attribute for a jsp file.
chanoch wiggers
Ranch Hand

Joined: May 24, 2001
Posts: 245
i wouldnt recommend it for the beginner. What I would consider it for is if you create a class that extends the default parent class for JSPs to add some specialised functionality that you need but this is
a) advanced and
b) becomes obvious when you get stuck with something on your project
An example might be when you have identical code in every one of your jsps (when using model 1, in model 2 its likely that you will be able to move it into your controller or model)

chanoch<p><a href="" target="_blank" rel="nofollow">Author of Professional Apache Tomcat</a></p>
I agree. Here's the link:
subject: jsp
Similar Threads
extending a class in jsp
JSP extending Servlet
What Is The Proper Way to Extend Another Class In JSP?
Forwarding to locale specific JSPs (I18N purpose)
extending jsp