• Post Reply Bookmark Topic Watch Topic
  • New Topic

extend  RSS feed

 
Bill Koo
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • 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
 
ersin eser
Ranch Hand
Posts: 1072
  • Mark post as helpful
  • send pies
  • 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.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!