*
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 Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Inhertance in jsp" Watch "Inhertance in jsp" New topic
Author

Inhertance in jsp

lrk naidu
Greenhorn

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
Hi,
you can use something like
<%@ page extends="parentclassname"%>
Thanks
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.


42
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Inhertance in jsp
 
Similar Threads
Trying to reach an object inside other
reading properties to get connection
implicit objects from page context
Servelet Context
session.getAttribute give null when retreiving session Data in jsps