File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes Servlet --> JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Servlet --> JSP" Watch "Servlet --> JSP" New topic
Author

Servlet --> JSP

JiaPei Jen
Ranch Hand

Joined: Nov 19, 2000
Posts: 1309
I have two servlet classes: one is CatalogPage.java and the other is ITBooksPage.java.
The CatalogPage.java is an abstract class and the first line of code after "package" and "import" is
public abstract class CatalogPage extends HttpServlet {}
The ITBooksPage.java extends the CatalogPage.java, and the first line of code after "package" is
public class ITBooksPage extends CatalogPage {}
First: When I convert CatalogPage.java to JSP, what do I have to do with public abstract class CatalogPage extends HttpServlet {} ? Can I simply leave it out in CatalogPage.jsp?
Second: Do I write <%@ page extends="CatalogPage" %> in ITBooksPage.jsp to replace
public class ITBooksPage extends CatalogPage {} in ITBooksPage.java?
Thank you in advance.
 
 
subject: Servlet --> JSP
 
Similar Threads
why creating an Object of an servlet and calling it isn't possible
What Is The Proper Way to Extend Another Class In JSP?
calling sub class' method from super class
opening database in servlet
Why I don't have the import javax.servlets.http.*?