What is the use of extends in jsp...we we want to import a class in current jsp file which i am working how can i do that ...if i use extnds for that means how can i do that...pls explain me this

Questions by kavin

Showing Answers 1 - 2 of 2 Answers

Aarya

  • May 8th, 2006
 

I think JSP is a Scripting Language,with partially in java.so there is no extends concept.if we want to extends the class we simply declared as

<%@ page import="package 1","package2 "%>

  Was this answer useful?  Yes

krishna

  • May 9th, 2006
 

extends="package.class"

The fully qualified name of the superclass of the Java class file this JSP file will be compiled to. Use this attribute cautiously, as it can limit the JSP container's ability to provide a specialized superclass that improves the quality of the compiled file.

import="{package.class | package.* }, ..."

 A comma-separated list of Java packages that the JSP file should import. The packages (and their classes) are available to scriptlets, expressions, and declarations within the JSP file. If you want to import more than one package, you can specify a comma-separated list after import or you can use import more than once in a JSP file.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions