This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JSP and the fly likes jsp parent class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "jsp parent class" Watch "jsp parent class" New topic
Author

jsp parent class

shruti patel
Ranch Hand

Joined: Mar 10, 2008
Posts: 52
which is a Parent class of JSP?

[edited subject to use a meaningful subject - was "interview question"]
[ May 18, 2008: Message edited by: Jeanne Boyarsky ]
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30068
    
149

Shruti,
Welcome to JavaRanch! Please try to use a meaningful subject line. I see at least three threads by you with identical subject lines. This makes it hard to remember which is which. I've edited the subjects for you this time to avoid confusion.
[ May 18, 2008: Message edited by: Jeanne Boyarsky ]

[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30068
    
149

Now on to your question. At some point up the hierarchy, the parent class of a JSP is a servlet. It's extremely poor practice to put code in a JSP, so in a real application, I would be hard pressed to find a reason to know the name of the parent class. I would explain this to an interviewer and offer to look it up.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: jsp parent class
 
Similar Threads
JAAS & JSF
Question Regarding Instance Member Hiding
InnerClasses
protected
differce between jsp and servlet