File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSP and the fly likes Inhertance in jsp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Inhertance in jsp" Watch "Inhertance in jsp" New topic

Inhertance in jsp

lrk naidu

Joined: Feb 04, 2005
Posts: 6
hi all,
How can i get the properties from one jsp file to another Jsp.

The ex:like Class A
public void display()
class B extends A
//we get the properties from A

what is the similar type in jsp?
anupa oru
Ranch Hand

Joined: Jan 15, 2005
Posts: 118
you can use something like
<%@ page extends="parentclassname"%>
Jeroen Wenting
Ranch Hand

Joined: Oct 12, 2000
Posts: 5093
But you shouldn't.
How often does it need to be repeated: do NOT use scriptlets in JSP.

For display code it's best to use some well designed dynamic includes.

I agree. Here's the link:
subject: Inhertance in jsp
jQuery in Action, 3rd edition