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

What is a tasks priority and how is it used in scheduling?

542


What is the highest-level event class of the event-delegation model?

568


What is the difference between system.out ,system.err and system.in?

594


What restrictions are placed on the values of each case of a switch statement?

535


To identify IDL language what mapping mechanism is used?

3411






Where can I find seam examples and documentation?

563


How would you detect a keypress in a jcombobox?

671


Should synchronization primitives be used on bean methods?

551


What is scalable, portability in the view of J2EE?

1869


AS a developer will u create a data source in connection pool? If so how will u do that, how to access the object from connection pool using IRAD tool?

1630


What modifiers may be used with an inner class that is a member of an outer class?

569


which book is better for jdbc ,servlets and jsp

1644


Explain how will the struts know which action class to call when you submit a form?

518


difference between  ejb,struts,hibernate,spring and jsp

2295


What is a policy?

1765