This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan 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


Win a copy of Android Security Essentials Live Lessons this week in the Android 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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Servlet --> JSP
 
Similar Threads
opening database in servlet
What Is The Proper Way to Extend Another Class In JSP?
Why I don't have the import javax.servlets.http.*?
calling sub class' method from super class
why creating an Object of an servlet and calling it isn't possible