jQuery in Action, 3rd edition
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

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
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: http://aspose.com/file-tools
subject: Inhertance in jsp
It's not a secret anymore!