• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

extend

 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Anyone knows how to use the "extend" in jsp <%page...I haven't used that before,is it the same as "import"?
Bill
 
Ranch Hand
Posts: 1072
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
no they are not the same.
The extend identifies the superclass to be used by the container when it is translating the JSP page into a Java Servlet, there is no default value for it and container is free to make its own choice of JSP Servlet class to choose when you don't define one ( the preferred way ). If you choose to define one you must use a superclass that implements javax.servlet.jsp.HttpJspPage for to handle HTTP protocols, or you must use a superclass that implements javax.servlet.jsp.JspPage for other protocols.Usually container providers put a lot of effort into their superclasses to tune them so your best bet is to stick with theirs.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic