This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Servlet --> JSP
 
It's not a secret anymore!