• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Is there a tag jsp:import ?

 
Senthil Kumar
Ranch Hand
Posts: 264
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
while i am going thru mikali's notes i just saw the tag jsp:import is being
compared with c:import and i'm flabbergated.I have not seen this tagin spec.
Is this a XML compliant tag.
 
Daniel Dalton
Ranch Hand
Posts: 146
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No there's no jsp:import tag. You have 3 ways to import stuff:

1) The page directive: <%@page import file="bhah blah" />
2) The jsp:include element: <jsp:include page="blah blah" />
3) The JSTL c:import tag: <c:import url="blah blah" />

Oh and the RequestDispatcher include method.
 
Dinuka Arsakularatne
Ranch Hand
Posts: 198
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hey Daniel i think the first one should be <%@ include file="watever.jsp" %>
 
Daniel Dalton
Ranch Hand
Posts: 146
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Dinuka - you're absolutely right - sorry for causing confusion, too much haste at lunchtime is my only excuse!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic