Can i include a servlet in a JSP using a include directive? I Know i can do this with <jsp:include /> standard action..
Moreover what is the thumb rule behind this as both JSP & servlets are dynamic ? [ May 07, 2007: Message edited by: Sandeep Vaid ]
posted 10 years ago
I don't think it is possible to include servlet using include directive. The reason I think it is not possible is that, it includes the content of the file at the translation time so the content from included file is merely copied in the calling jsp. Hence it is not possible. But in case I am incorrect please let me know. [ May 07, 2007: Message edited by: Rancy Chadha ]