|
INTERVIEW QUESTIONS
J2EE
JSP
DETAILS
Question: 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
Answer: 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.
|
|
|
Category |
JSP Interview Questions & Answers -
Exam Mode /
Learning Mode
|
Rating |
(0.3) By 6739 users |
Added on |
7/17/2011 |
Views |
68541 |
Rate it! |
|
|
Question:
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
Answer:
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. Source: CoolInterview.com
If you have the better answer, then send it to us. We will display your answer after the approval.
Rules to Post Answers in CoolInterview.com:-
- There should not be any Spelling Mistakes.
- There should not be any Gramatical Errors.
- Answers must not contain any bad words.
- Answers should not be the repeat of same answer, already approved.
- Answer should be complete in itself.
|
|
Related Questions |
View Answer |
|
How to check the value in the text field is not a number
|
View Answer
|
|
What is the diff. b/n declaring members in and declaraing in jspinit() method ?
|
View Answer
|
|
How to generate BAR & PIE Graphs using JSP code...?
|
View Answer
|
|
When jsp is compiled into servlet, where the servlet is actually stored(storage location)?
|
View Answer
|
|
Why should we setContentType() in servlet ?what is the use of that method?
|
View Answer
|
|
What is the difference between servlet session and jsp session?
|
View Answer
|
|
What is the architecture of JSP?
|
View Answer
|
|
How to call EJB from JSP.
|
View Answer
|
|
Can a single JSP page be considered as a J2EE application?
|
View Answer
|
|
What is JSP?
|
View Answer
|
|
What are advantages of JSP?
|
View Answer
|
|
What is the difference between include directive & jsp:include action?
|
View Answer
|
|
What are Custom tags. Why do you need Custom tags. How do you create Custom tag?
|
View Answer
|
|
What are the implicit objects in JSP & differences between them?
|
View Answer
|
|
What is jsp:use bean. What are the scope attributes & difference between these attributes?
|
View Answer
|
|
What is difference between scriptlet and expression?
|
View Answer
|
|
What is Declaration?
|
View Answer
|
|
How do you connect to the database from JSP?
|
View Answer
|
|
How do you call stored procedures from JSP?
|
View Answer
|
|
How do you restrict page errors display in the JSP page?
|
View Answer
|