Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

include tag ???

 
Naresh Babu
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
can we include a servlet class in a jsp using include tag
just as we can include another jsp or html file.
Thanks
 
vaibhav punekar
Ranch Hand
Posts: 134
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i think we can not include dynamic part using "include tag".I may wrong in saying this.Please correct me if so.But as I remember we can include static pages only.So if your servlet has no "dynamic part" there should be no problem.Else you will have to import servlet class and use it wherever you want by instanciating it.Am I right?Please correct me if I m wrong.
 
Phil Hanna
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
With <jsp:include>, yes. With <%@ include %>, no.
------------------
Phil Hanna
Author of :
JSP: The Complete Reference
Instant Java Servlets
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic