Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

include directive and Servlet - Major Doubt ??

 
Sandeep Vaid
Ranch Hand
Posts: 392
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
Rancy Chadha
Ranch Hand
Posts: 135
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Sandeep,

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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic