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
What is the map interface?
What is the purpose of the finally clause of a try-catch-finally statement?
What is the purpose of the wait(), notify(), and notifyall() methods?
Why use POJO when I can use hashmap
What is chat area? Explain.
A user of a web application sees a jsessionid argument in the URL whenever a resource is accessed. What does this mean? a. The form must have the field jsessionid b. URL rewriting is used as the session method c. Cookies are used for managing sessions
how to make a index.jsp for running the site in internet and find an error for connection with weblogic server and java that give an error invalid object name.and how to maintain session.
Why use a datasource when you can directly specify a connection details?
For which statements does it make sense to use a label?
How a component can be placed on Windows?
Why are some of the class and element names counter-intuitive?
How task's priority is used in scheduling?
what are getters and setters in Java with examples?
Explain what is synchronization?
Explain about local interfaces.