diff between jsp include directive and jsp action include?

Answer Posted / vijaykumar venkatappa davanag

both are functioning same,
but (<%@ include file="/relative path" %> )directive includes the file contents at Traslation phase, if one or more number of files included in a jsp,all will traslated and create one single servlet class file.
In case of (<%jsp:include page="" %>)jsp:include includes the file contents at Request Processing phase, that means container is going create RequestDispatcher and calls the include() method. here each and every included jsp files converted into seperate servlet class files.

Is This Answer Correct ?    14 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can I have an action without a form?

861


Is it possible to stop the execution of a method before completion in a sessionbean?

842


Why use a datasource when you can directly specify a connection details? (in a J2EE application)

3883


How to determine SGA site?

2180


What is a modular application? What does module-relative mean?

778


Explain about thread synchronization inside a monitor?

2254


How to pass parameters in RMI?

1993


Difference between new operator and class.forname().newinstance()?

850


What is the RMI and Socket?

832


Can I run seam with jdk 1.4 and earlier?

759


Difference between hashmap and hashtable?

861


What are the sequence of steps to write pub or sub model kind of application?

2242


Difference between loadclass and class.forname?

819


What is mdb and what is the special feature of that?

828


What is colon_pkg_prefixes and what is its use?

2233