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


Win a copy of Spring in Action this week in the Spring forum!
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.
 
Consider Paul's rocket mass heater.
 
subject: Servlet --> JSP