1) Narendhiran, thts not right. it will not get compiled everytime in case of include action. It gets compiled again only when header.jsp is changed otherwise it will just use the existing servlet and create a thread, execute it and return the results to including jsp(servlet).
its actually using the RequestDispatcher behind the scenes.
2) depends on your requirement, you could always say tht if the passed parameter is null then display the generic message tht you want for other jsp's.
Vinay
Narendhiran Nagarajan wrote:1)We know in first request in include standard action a runtime request is going to the header jsp which it complile and become a servlet. So what hapen in the second runtime request for the header jsp. Is it just allocate the thread already created header file servlet or is it do the whole header compilation thing again?
The include directive inserts the SOURCE of “Header.jsp”, at translation time.
But the <jsp:include /> standard action inserts the RESPONSE of “Header.jsp”, at runtime.
[Source: HFSJ]
The include directive gets compiled only once(On first Request).
But the include standard action gets compiled for every Request.
I m not clear with your second ques.Can you rephrase it.
SCDJWS 5.0, SCBCD 5.0, SCWCD 5.0, SCJP 5.0